From: Pawel Sikora <pluto@pld-linux.org>
To: Netfilter Developers <netfilter-devel@lists.netfilter.org>
Subject: [PATCH] gcc4 fixes ip_conntrack_core.c/nf_conntrack.h.
Date: Fri, 22 Apr 2005 16:57:37 +0200 [thread overview]
Message-ID: <200504221657.37760.pluto@pld-linux.org> (raw)
[-- 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 *
next reply other threads:[~2005-04-22 14:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-22 14:57 Pawel Sikora [this message]
2005-04-24 19:05 ` [PATCH] gcc4 fixes ip_conntrack_core.c/nf_conntrack.h Carl-Daniel Hailfinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200504221657.37760.pluto@pld-linux.org \
--to=pluto@pld-linux.org \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.