zfs/include/os/linux/kernel/linux
Shengqi Chen 9ecd112dc1 compact: workaround for GPL-only symbols on riscv from Linux 6.2
Since Linux 6.2, the implementation of flush_dcache_page on riscv
references GPL-only symbol `PageHuge`, breaking the build of zfs.

This patch uses existing mechanism to override flush_dcache_page,
removing the call to `PageHuge`. According to comments in kernel,
it is only used to do some check against HugeTLB pages, which only
exist in userspace. ZFS uses flush_dcache_page only on kernel pages,
thus this patch will not introduce any behaviour change.

See also: torvalds/linux@d33deda, openzfs/zfs@589f59b

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Closes #14974 
Closes #15627
2024-01-16 13:27:29 -08:00
..
blkdev_compat.h Linux 6.5 compat: blkdev changes 2023-09-19 08:50:01 -07:00
compiler_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
dcache_compat.h compact: workaround for GPL-only symbols on riscv from Linux 6.2 2024-01-16 13:27:29 -08:00
kmap_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
mod_compat.h Finally drop long disabled vdev cache. 2023-06-09 12:40:55 -07:00
page_compat.h Linux 5.9 compat: NR_SLAB_RECLAIMABLE 2020-08-29 20:57:45 -07:00
percpu_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
simd.h Add SHA2 SIMD feature tests for Linux 2023-03-02 13:52:04 -08:00
simd_aarch64.h Linux 6.2 compat: add check for kernel_neon_* availability 2024-01-12 12:38:27 -08:00
simd_arm.h Linux 6.2 compat: add check for kernel_neon_* availability 2024-01-12 12:38:27 -08:00
simd_powerpc.h Refactor CONFIG_SPE check on Linux/powerpc 2023-03-15 10:30:42 -07:00
simd_x86.h Avoid save/restoring AMX registers to avoid a SPR erratum 2023-08-27 08:25:42 -07:00
utsname_compat.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
vfs_compat.h Linux 6.6 compat: generic_fillattr has a new u32 request_mask added at arg2 2023-11-08 12:15:41 -08:00
xattr_compat.h Linux 6.3 compat: idmapped mount API changes 2023-04-10 14:15:36 -07:00