* [PATCH net-next 1/2] netfilter: resolve warnings about missing prototypes
@ 2017-05-19 16:29 Stephen Hemminger
2017-05-19 16:29 ` [PATCH net-next 2/2] netfilter: nf_tables: make local functions static Stephen Hemminger
2017-05-29 9:34 ` [PATCH net-next 1/2] netfilter: resolve warnings about missing prototypes Pablo Neira Ayuso
0 siblings, 2 replies; 4+ messages in thread
From: Stephen Hemminger @ 2017-05-19 16:29 UTC (permalink / raw)
To: pablo, fw; +Cc: netfilter-devel, Stephen Hemminger
Missing include file causes:
net/netfilter/nf_dup_netdev.c:26:6: warning: no previous prototype for ‘nf_fwd_netdev_egress’ [-Wmissing-prototypes]
net/netfilter/nf_dup_netdev.c:40:6: warning: no previous prototype for ‘nf_dup_netdev_egress’ [-Wmissing-prototypes]
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
---
net/netfilter/nf_dup_netdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/netfilter/nf_dup_netdev.c b/net/netfilter/nf_dup_netdev.c
index c9d7f95768ab..f4a566e67213 100644
--- a/net/netfilter/nf_dup_netdev.c
+++ b/net/netfilter/nf_dup_netdev.c
@@ -13,6 +13,7 @@
#include <linux/netfilter.h>
#include <linux/netfilter/nf_tables.h>
#include <net/netfilter/nf_tables.h>
+#include <net/netfilter/nf_dup_netdev.h>
static void nf_do_netdev_egress(struct sk_buff *skb, struct net_device *dev)
{
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH net-next 2/2] netfilter: nf_tables: make local functions static
2017-05-19 16:29 [PATCH net-next 1/2] netfilter: resolve warnings about missing prototypes Stephen Hemminger
@ 2017-05-19 16:29 ` Stephen Hemminger
2017-05-29 9:35 ` Pablo Neira Ayuso
2017-05-29 9:34 ` [PATCH net-next 1/2] netfilter: resolve warnings about missing prototypes Pablo Neira Ayuso
1 sibling, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2017-05-19 16:29 UTC (permalink / raw)
To: pablo, fw; +Cc: netfilter-devel, Stephen Hemminger
Resolves warnings:
net/netfilter/nft_rt.c:26:6: warning: no previous prototype for ‘nft_rt_get_eval’ [-Wmissing-prototypes]
net/netfilter/nft_rt.c:75:5: warning: no previous prototype for ‘nft_rt_get_init’ [-Wmissing-prototypes]
net/netfilter/nft_rt.c:106:5: warning: no previous prototype for ‘nft_rt_get_dump’ [-Wmissing-prototypes]
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
---
net/netfilter/nft_rt.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/net/netfilter/nft_rt.c b/net/netfilter/nft_rt.c
index d3eb640bc784..c7383d8f88d0 100644
--- a/net/netfilter/nft_rt.c
+++ b/net/netfilter/nft_rt.c
@@ -23,9 +23,9 @@ struct nft_rt {
enum nft_registers dreg:8;
};
-void nft_rt_get_eval(const struct nft_expr *expr,
- struct nft_regs *regs,
- const struct nft_pktinfo *pkt)
+static void nft_rt_get_eval(const struct nft_expr *expr,
+ struct nft_regs *regs,
+ const struct nft_pktinfo *pkt)
{
const struct nft_rt *priv = nft_expr_priv(expr);
const struct sk_buff *skb = pkt->skb;
@@ -72,9 +72,9 @@ const struct nla_policy nft_rt_policy[NFTA_RT_MAX + 1] = {
[NFTA_RT_KEY] = { .type = NLA_U32 },
};
-int nft_rt_get_init(const struct nft_ctx *ctx,
- const struct nft_expr *expr,
- const struct nlattr * const tb[])
+static int nft_rt_get_init(const struct nft_ctx *ctx,
+ const struct nft_expr *expr,
+ const struct nlattr * const tb[])
{
struct nft_rt *priv = nft_expr_priv(expr);
unsigned int len;
@@ -103,8 +103,8 @@ int nft_rt_get_init(const struct nft_ctx *ctx,
NFT_DATA_VALUE, len);
}
-int nft_rt_get_dump(struct sk_buff *skb,
- const struct nft_expr *expr)
+static int nft_rt_get_dump(struct sk_buff *skb,
+ const struct nft_expr *expr)
{
const struct nft_rt *priv = nft_expr_priv(expr);
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next 1/2] netfilter: resolve warnings about missing prototypes
2017-05-19 16:29 [PATCH net-next 1/2] netfilter: resolve warnings about missing prototypes Stephen Hemminger
2017-05-19 16:29 ` [PATCH net-next 2/2] netfilter: nf_tables: make local functions static Stephen Hemminger
@ 2017-05-29 9:34 ` Pablo Neira Ayuso
1 sibling, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2017-05-29 9:34 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: fw, netfilter-devel, Stephen Hemminger
On Fri, May 19, 2017 at 09:29:41AM -0700, Stephen Hemminger wrote:
> Missing include file causes:
>
> net/netfilter/nf_dup_netdev.c:26:6: warning: no previous prototype for ‘nf_fwd_netdev_egress’ [-Wmissing-prototypes]
> net/netfilter/nf_dup_netdev.c:40:6: warning: no previous prototype for ‘nf_dup_netdev_egress’ [-Wmissing-prototypes]
Applied to nf-next, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next 2/2] netfilter: nf_tables: make local functions static
2017-05-19 16:29 ` [PATCH net-next 2/2] netfilter: nf_tables: make local functions static Stephen Hemminger
@ 2017-05-29 9:35 ` Pablo Neira Ayuso
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2017-05-29 9:35 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: fw, netfilter-devel, Stephen Hemminger
On Fri, May 19, 2017 at 09:29:42AM -0700, Stephen Hemminger wrote:
> Resolves warnings:
> net/netfilter/nft_rt.c:26:6: warning: no previous prototype for ‘nft_rt_get_eval’ [-Wmissing-prototypes]
> net/netfilter/nft_rt.c:75:5: warning: no previous prototype for ‘nft_rt_get_init’ [-Wmissing-prototypes]
> net/netfilter/nft_rt.c:106:5: warning: no previous prototype for ‘nft_rt_get_dump’ [-Wmissing-prototypes]
Also applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-05-29 9:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-19 16:29 [PATCH net-next 1/2] netfilter: resolve warnings about missing prototypes Stephen Hemminger
2017-05-19 16:29 ` [PATCH net-next 2/2] netfilter: nf_tables: make local functions static Stephen Hemminger
2017-05-29 9:35 ` Pablo Neira Ayuso
2017-05-29 9:34 ` [PATCH net-next 1/2] netfilter: resolve warnings about missing prototypes Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).