mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
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. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Shengqi Chen <[email protected]> Closes #16871
This commit is contained in:
1 parent
22259fb24d
commit
acda137d8c
1 file changed
+2
@@ -132,8 +132,10 @@ simd_stat_kstat_data(char *buf, size_t size, void *data)
|
||||
#if defined(__arm__) || defined(__aarch64__)
|
||||
off += SIMD_STAT_PRINT(simd_stat_kstat_payload,
|
||||
"kernel_neon", HAVE_KERNEL_NEON);
|
||||
#if defined(CONFIG_KERNEL_MODE_NEON)
|
||||
off += SIMD_STAT_PRINT(simd_stat_kstat_payload,
|
||||
"kernel_mode_neon", CONFIG_KERNEL_MODE_NEON);
|
||||
#endif /* CONFIG_KERNEL_MODE_NEON */
|
||||
off += SIMD_STAT_PRINT(simd_stat_kstat_payload,
|
||||
"neon", zfs_neon_available());
|
||||
off += SIMD_STAT_PRINT(simd_stat_kstat_payload,
|
||||
|
||||
Reference in new issue
Block a user