ip_conntrack build warning
Recent kernels in -mm warn about init section usage in ip_conntrack. The problem is the init_or_cleanup() style makes it impossible to compile time checking hard.
WARNING: net/ipv4/netfilter/ip_conntrack.o - Section mismatch:
reference to .init.text:ip_conntrack_init from .text.init_or_cleanup after 'init_or_cleanup' (at offset 0x12)
Quoted 7 lines · Stephen Hemminger
Recent kernels in -mm warn about init section usage in
ip_conntrack. The problem is theinit_or_cleanup()style makes it impossible to compile time checking hard.WARNING:
net/ipv4/netfilter/ip_conntrack.o- Section mismatch:
reference to .init.text:ip_conntrack_init from .text.init_or_cleanup after 'init_or_cleanup' (at offset0x12)
The code should be fine, although I'm not a big fan of these functions either. ip_conntrack_init is marked __init and is called from init_or_cleanup, which is not marked, but only on the init path.
I'd happily take a patch which cleans up these functions (we have lots of them in the netfilter code).
Quoted 4 lines · Patrick McHardy
The code should be fine, although I'm not a big fan of these functions either.
ip_conntrack_initis marked__initand is called frominit_or_cleanup, which is not marked, but only on the init path.
That should read "only called".