From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: [nf-next:mmap-netlink 62/68] net/netlink/af_netlink.c:545:6: sparse: symbol 'netlink_ring_setup_skb'
Date: Thu, 12 Jul 2012 23:46:56 +0000 [thread overview]
Message-ID: <20120712234656.GC5608@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 2003 bytes --]
Hi Patrick,
There are new sparse warnings show up in
tree: git://150.214.188.80/nf-next mmap-netlink
head: c7e7243d0b69e2323dde057c28f1102d00e5a3c6
commit: 23c9e8b9464cfbf148b3ba911f5a67b16bc94aa8 [62/68] netlink: add mmap'ed netlink helper functions
All sparse warnings:
net/netlink/af_netlink.c:201:39: sparse: incorrect type in return expression (different modifiers)
net/netlink/af_netlink.c:201:39: expected struct page [pure] *
net/netlink/af_netlink.c:201:39: got struct page *
net/netlink/af_netlink.c:203:24: sparse: incorrect type in return expression (different modifiers)
net/netlink/af_netlink.c:203:24: expected struct page [pure] *
net/netlink/af_netlink.c:203:24: got struct page *
net/netlink/af_netlink.c:404:38: sparse: incorrect type in assignment (different modifiers)
net/netlink/af_netlink.c:404:38: expected struct page *page
net/netlink/af_netlink.c:404:38: got struct page [pure] *
+ net/netlink/af_netlink.c:545:6: sparse: symbol 'netlink_ring_setup_skb' was not declared. Should it be static?
net/netlink/af_netlink.c:999:56: sparse: incorrect type in argument 1 (different address spaces)
net/netlink/af_netlink.c:999:56: expected void const *<noident>
net/netlink/af_netlink.c:999:56: got struct listeners [noderef] <asn:4>*listeners
net/netlink/af_netlink.c:812:38: sparse: dereference of noderef expression
net/netlink/af_netlink.c:422:13: warning: 'netlink_frame_flush_dcache' defined but not used [-Wunused-function]
vim +545 net/netlink/af_netlink.c
542 return (struct nl_mmap_hdr *)(skb->head - NL_MMAP_HDRLEN);
543 }
544
> 545 void netlink_ring_setup_skb(struct sk_buff *skb, struct sock *sk,
546 struct netlink_ring *ring, struct nl_mmap_hdr *hdr)
547 {
548 unsigned int size;
Please consider folding the attached diff :-)
---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com> Intel Corporation
[-- Attachment #2: make-it-static-23c9e8b.diff --]
[-- Type: text/x-diff, Size: 533 bytes --]
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 801eeec..a64011d 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -542,7 +542,7 @@ static struct nl_mmap_hdr *netlink_mmap_hdr(struct sk_buff *skb)
return (struct nl_mmap_hdr *)(skb->head - NL_MMAP_HDRLEN);
}
-void netlink_ring_setup_skb(struct sk_buff *skb, struct sock *sk,
+static void netlink_ring_setup_skb(struct sk_buff *skb, struct sock *sk,
struct netlink_ring *ring, struct nl_mmap_hdr *hdr)
{
unsigned int size;
reply other threads:[~2012-07-12 23:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20120712234656.GC5608@localhost \
--to=fengguang.wu@intel.com \
--cc=kernel-janitors@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox