All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gcc4 fixes ip_conntrack_core.c/nf_conntrack.h.
@ 2005-04-22 14:57 Pawel Sikora
  2005-04-24 19:05 ` Carl-Daniel Hailfinger
  0 siblings, 1 reply; 2+ messages in thread
From: Pawel Sikora @ 2005-04-22 14:57 UTC (permalink / raw)
  To: Netfilter Developers

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]

Hi,

Attached patches fix build issues exposed by gcc4.
Please review and apply.

Regards,
Pawel.

-- 
/* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */

                           #define say(x) lie(x)

[-- Attachment #2: nf_conntrack.h-gcc4-unimplemented-inlining.patch --]
[-- Type: text/x-diff, Size: 1617 bytes --]


  CC [M]  net/ipv4/netfilter/ip_conntrack_core.o
  net/ipv4/netfilter/ip_conntrack_core.c: In function 'destroy_conntrack':
    include/linux/netfilter_ipv4/ip_conntrack.h:353:
    sorry, unimplemented: inlining failed in call to 'ip_conntrack_free':
    function body not available
  net/ipv4/netfilter/ip_conntrack_core.c:299:
    sorry, unimplemented: called from here

Index: include/linux/netfilter/nf_conntrack.h
===================================================================
--- include/linux/netfilter/nf_conntrack.h	(wersja 5865)
+++ include/linux/netfilter/nf_conntrack.h	(kopia robocza)
@@ -218,7 +218,7 @@
 }
 
 /* decrement reference count on a conntrack */
-extern inline void nf_ct_put(struct nf_conn *ct);
+extern void nf_ct_put(struct nf_conn *ct);
 
 /* call to create an explicit dependency on nf_conntrack. */
 extern void need_nf_conntrack(void);
Index: include/linux/netfilter_ipv4/ip_conntrack.h
===================================================================
--- include/linux/netfilter_ipv4/ip_conntrack.h	(wersja 5866)
+++ include/linux/netfilter_ipv4/ip_conntrack.h	(kopia robocza)
@@ -350,9 +350,9 @@
 extern struct ip_conntrack *ip_conntrack_alloc(struct ip_conntrack_tuple *,
 					       struct ip_conntrack_tuple *);
 
-extern inline void ip_conntrack_free(struct ip_conntrack *ct);
+extern void ip_conntrack_free(struct ip_conntrack *ct);
 
-extern inline void ip_conntrack_insert(struct ip_conntrack *ct);
+extern void ip_conntrack_insert(struct ip_conntrack *ct);
 
 extern struct ip_conntrack_expect *
 __ip_conntrack_expect_find(const struct ip_conntrack_tuple *tuple);

[-- Attachment #3: ip_conntrack_core.c-gcc4-declared-inline-after-being-called.patch --]
[-- Type: text/x-diff, Size: 1176 bytes --]


  CC [M]  net/ipv4/netfilter/ip_conntrack_core.o
  include/linux/netfilter_ipv4/ip_conntrack.h:353: warning:
    'ip_conntrack_free' declared inline after being called
  include/linux/netfilter_ipv4/ip_conntrack.h:353: warning:
    previous declaration of 'ip_conntrack_free' was here

Index: net/ipv4/netfilter/ip_conntrack_core.c
===================================================================
--- net/ipv4/netfilter/ip_conntrack_core.c	(wersja 5866)
+++ net/ipv4/netfilter/ip_conntrack_core.c	(kopia robocza)
@@ -247,6 +247,13 @@
 	ip_ct_remove_expectations(ct);
 }
 
+inline void
+ip_conntrack_free(struct ip_conntrack *conntrack)
+{
+	atomic_dec(&ip_conntrack_count);
+	kmem_cache_free(ip_conntrack_cachep, conntrack);
+}
+
 static void
 destroy_conntrack(struct nf_conntrack *nfct)
 {
@@ -559,13 +566,6 @@
 	return conntrack;
 }
 
-inline void
-ip_conntrack_free(struct ip_conntrack *conntrack)
-{
-	atomic_dec(&ip_conntrack_count);
-	kmem_cache_free(ip_conntrack_cachep, conntrack);
-}
-
 /* Allocate a new conntrack: we return -ENOMEM if classification
    failed due to stress.  Otherwise it really is unclassifiable. */
 static struct ip_conntrack_tuple_hash *

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

end of thread, other threads:[~2005-04-24 19:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-22 14:57 [PATCH] gcc4 fixes ip_conntrack_core.c/nf_conntrack.h Pawel Sikora
2005-04-24 19:05 ` Carl-Daniel Hailfinger

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.