From: Ying Xue <ying.xue@windriver.com>
To: <steffen.klassert@secunet.com>, <davem@davemloft.net>
Cc: <dborkman@redhat.com>, <netdev@vger.kernel.org>
Subject: [PATCH net-next] net: xfrm6: silence sparse warning
Date: Wed, 8 Jan 2014 10:56:40 +0800 [thread overview]
Message-ID: <1389149801-29011-1-git-send-email-ying.xue@windriver.com> (raw)
Fix below sparse warning:
net/ipv6/xfrm6_state.c:66:26: error: cannot size expression
Signed-off-by: Ying Xue <ying.xue@windriver.com>
---
net/ipv6/xfrm6_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv6/xfrm6_state.c b/net/ipv6/xfrm6_state.c
index 3fc9701..0c10dff 100644
--- a/net/ipv6/xfrm6_state.c
+++ b/net/ipv6/xfrm6_state.c
@@ -63,7 +63,7 @@ __xfrm6_sort(void **dst, void **src, int n, int (*cmp)(void *p), int maxclass)
int class[XFRM_MAX_DEPTH];
int count[maxclass];
- memset(count, 0, sizeof(count));
+ memset(count, 0, sizeof(int) * maxclass);
for (i = 0; i < n; i++) {
int c;
--
1.7.9.5
next reply other threads:[~2014-01-08 2:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 2:56 Ying Xue [this message]
2014-01-08 3:43 ` [PATCH net-next] net: xfrm6: silence sparse warning David Miller
2014-01-08 5:55 ` Ying Xue
2014-01-08 5:56 ` David Miller
2014-01-09 23:04 ` Stephen Hemminger
2014-01-10 2:53 ` Ben Hutchings
2014-01-10 5:30 ` Stephen Hemminger
2014-01-08 20:46 ` Ben Hutchings
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=1389149801-29011-1-git-send-email-ying.xue@windriver.com \
--to=ying.xue@windriver.com \
--cc=davem@davemloft.net \
--cc=dborkman@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
/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;
as well as URLs for NNTP newsgroup(s).