Skip to content

Commit

Permalink
simd_stat: fix undefined CONFIG_KERNEL_MODE_NEON error on armel
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Harry-Chen authored Dec 16, 2024
1 parent 22259fb commit acda137
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/zcommon/simd_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit acda137

Please sign in to comment.