Skip to content

Commit 6556927

Browse files
committed
simd_stat: fix undefined CONFIG_KERNEL_MODE_NEON error on armel
CONFIG_KERNEL_MODE_NEON depends on CONFIG_NEON. Neither is defined on armel. Add a guard to avoid compilation errors. ZFS-CI-Type: Quick Signed-off-by: Shengqi Chen <[email protected]>
1 parent 22259fb commit 6556927

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

module/zcommon/simd_stat.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ simd_stat_kstat_data(char *buf, size_t size, void *data)
132132
#if defined(__arm__) || defined(__aarch64__)
133133
off += SIMD_STAT_PRINT(simd_stat_kstat_payload,
134134
"kernel_neon", HAVE_KERNEL_NEON);
135+
#if defined(CONFIG_KERNEL_MODE_NEON)
135136
off += SIMD_STAT_PRINT(simd_stat_kstat_payload,
136137
"kernel_mode_neon", CONFIG_KERNEL_MODE_NEON);
138+
#endif /* CONFIG_KERNEL_MODE_NEON */
137139
off += SIMD_STAT_PRINT(simd_stat_kstat_payload,
138140
"neon", zfs_neon_available());
139141
off += SIMD_STAT_PRINT(simd_stat_kstat_payload,

0 commit comments

Comments
 (0)