mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-28 11:40:17 +00: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 <behlendorf1@llnl.gov> Signed-off-by: Shengqi Chen <harry-chen@outlook.com> Closes #16871
This commit is contained in:
parent
22259fb24d
commit
acda137d8c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user