All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Tom Herbert <tom@herbertland.com>
Cc: kbuild-all@01.org, davem@davemloft.net, netdev@vger.kernel.org,
	jesse@nicira.com, linville@tuxdriver.com, kernel-team@fb.com
Subject: [PATCH] geneve: fix noderef.cocci warnings
Date: Wed, 9 Dec 2015 04:45:25 +0800	[thread overview]
Message-ID: <20151208204525.GA85727@athens> (raw)
In-Reply-To: <1449599238-4094072-4-git-send-email-tom@herbertland.com>

drivers/net/geneve.c:371:6-12: ERROR: application of sizeof to pointer

 sizeof when applied to a pointer typed expression gives the size of
 the pointer

Generated by: scripts/coccinelle/misc/noderef.cocci

CC: Tom Herbert <tom@herbertland.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 geneve.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/geneve.c
+++ b/drivers/net/geneve.c
@@ -368,7 +368,7 @@ static int geneve_udp_encap_recv(struct
 
 	if (geneveh->rco && (gs->flags & GENEVE_F_REMCSUM_RX)) {
 		geneveh = geneve_remcsum(skb, geneveh,
-					 sizeof(geneveh) + opts_len,
+					 sizeof(*geneveh) + opts_len,
 					 !!(gs->flags &
 					    GENEVE_F_REMCSUM_NOPARTIAL));
 		if (unlikely(!geneveh))

  parent reply	other threads:[~2015-12-08 20:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08 18:27 [PATCH net-next 0/3] geneve: Add support for Remote Checksum Offload Tom Herbert
2015-12-08 18:27 ` [PATCH net-next 1/3] rco: Clean up casting errors Tom Herbert
2015-12-08 18:27 ` [PATCH net-next 2/3] geneve: UDP checksum configuration via netlink Tom Herbert
2015-12-08 19:27   ` John W. Linville
2015-12-08 18:27 ` [PATCH net-next 3/3] geneve: Remote Checksum Offload support Tom Herbert
2015-12-08 19:31   ` John W. Linville
2015-12-08 19:59     ` Tom Herbert
2015-12-08 23:58       ` Jesse Gross
2015-12-09  0:11         ` Tom Herbert
2015-12-09  1:13           ` Jesse Gross
2015-12-09  2:20           ` David Miller
2015-12-08 20:45   ` kbuild test robot [this message]
2015-12-08 20:45   ` kbuild test robot

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=20151208204525.GA85727@athens \
    --to=lkp@intel.com \
    --cc=davem@davemloft.net \
    --cc=jesse@nicira.com \
    --cc=kbuild-all@01.org \
    --cc=kernel-team@fb.com \
    --cc=linville@tuxdriver.com \
    --cc=netdev@vger.kernel.org \
    --cc=tom@herbertland.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 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.