All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ip_conntrack section mismatch warning fix
@ 2006-04-04 18:32 Stephen Hemminger
  2006-04-05 14:30 ` Patrick McHardy
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2006-04-04 18:32 UTC (permalink / raw)
  To: netfilter-devel

This is a bit of a hack. It eliminates the section mismatch warning from
latest linker. What happens is the init_or_cleanup code gets called
from cleanup() hook and the linker thinks it will reference __initdata
because of it's limited static analysis.  By asking compiler to
inline, it can eliminate that dead code. It does the __init text
section to grow, but then the space can be reclaimed.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>


--- test-2.6.orig/net/ipv4/netfilter/ip_conntrack_standalone.c
+++ test-2.6/net/ipv4/netfilter/ip_conntrack_standalone.c
@@ -783,7 +783,7 @@ static ctl_table ip_ct_net_table[] = {
 EXPORT_SYMBOL(ip_ct_log_invalid);
 #endif /* CONFIG_SYSCTL */
 
-static int init_or_cleanup(int init)
+static inline int init_or_cleanup(int init)
 {
 #ifdef CONFIG_PROC_FS
 	struct proc_dir_entry *proc, *proc_exp, *proc_stat;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-05 15:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-04 18:32 [PATCH] ip_conntrack section mismatch warning fix Stephen Hemminger
2006-04-05 14:30 ` Patrick McHardy
2006-04-05 15:23   ` Harald Welte
2006-04-05 15:28     ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.