From: maomao xu <albert008.xu@gmail.com>
To: gregkh@linuxfoundation.org, imre.deak@gmail.com,
emil.gedda@emilgedda.se, dan.carpenter@oracle.com,
bhumirks@gmail.com, jrodbar@yahoo.es, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Cc: maomao xu <albert008.xu@gmail.com>
Subject: [PATCH] staging: gdm724x: Fix sparse warnings
Date: Tue, 14 Feb 2017 17:24:00 +0800 [thread overview]
Message-ID: <1487064240-28417-1-git-send-email-albert008.xu@gmail.com> (raw)
drivers/staging/gdm724x/gdm_lte.c:311:39: warning: incorrect type in assignment (different base types)
drivers/staging/gdm724x/gdm_lte.c:311:39: expected restricted __sum16 [addressable] [assigned] [usertype] icmp6_cksum
drivers/staging/gdm724x/gdm_lte.c:311:39: got int
Signed-off-by: maomao xu <albert008.xu@gmail.com>
diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c
index a3e046c..ddec6d0 100644
--- a/drivers/staging/gdm724x/gdm_lte.c
+++ b/drivers/staging/gdm724x/gdm_lte.c
@@ -308,7 +308,7 @@ static int gdm_lte_emulate_ndp(struct sk_buff *skb_in, u32 nic_type)
memcpy(icmp_na + sizeof(struct icmp6hdr), &na,
sizeof(struct neighbour_advertisement));
- icmp6_out.icmp6_cksum = icmp6_checksum(&ipv6_out,
+ icmp6_out.icmp6_cksum = (__force __sum16)icmp6_checksum(&ipv6_out,
(u16 *)icmp_na, sizeof(icmp_na));
} else {
return -1;
--
1.7.9.5
reply other threads:[~2017-02-14 9:24 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=1487064240-28417-1-git-send-email-albert008.xu@gmail.com \
--to=albert008.xu@gmail.com \
--cc=bhumirks@gmail.com \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=emil.gedda@emilgedda.se \
--cc=gregkh@linuxfoundation.org \
--cc=imre.deak@gmail.com \
--cc=jrodbar@yahoo.es \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®