Skip to contentSkip to conversation

ip_conntrack build warning

DISCUSSION Stephen Hemminger 2 participants 3 messages Mar 15, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

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)

#1 lore raw
Quoted 7 lines · Stephen Hemminger

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)

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).

#2 lore raw
Quoted 4 lines · Patrick McHardy

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.

That should read "only called".