nf_register_hook has been removed in kernel 4.13.8
thiemel opened this issue · comments
See https://gitlab.collabora.com/martyn/linux/commit/cf56c2f892a8a1870a8358114ad896772da7543a
shaper linux-4.13.8-gentoo # make
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
CHK kernel/config_data.h
CC drivers/net/imq.o
drivers/net/imq.c:765:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.validate = imq_validate,
^
drivers/net/imq.c:765:14: note: (near initialization for ‘imq_link_ops.validate’)
drivers/net/imq.c: In function ‘imq_init_hooks’:
drivers/net/imq.c:778:8: error: implicit declaration of function ‘nf_register_hooks’ [-Werror=implicit-function-declaration]
ret = nf_register_hooks(imq_ops, ARRAY_SIZE(imq_ops));
^
drivers/net/imq.c: In function ‘imq_unhook’:
drivers/net/imq.c:915:2: error: implicit declaration of function ‘nf_unregister_hooks’ [-Werror=implicit-function-declaration]
nf_unregister_hooks(imq_ops, ARRAY_SIZE(imq_ops));
^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:303: drivers/net/imq.o] Error 1
make[1]: *** [scripts/Makefile.build:561: drivers/net] Error 2
make: *** [Makefile:1019: drivers] Error 2
OK, I found a patch for 4.13 kernel