lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1487064240-28417-1-git-send-email-albert008.xu@gmail.com>
Date:   Tue, 14 Feb 2017 17:24:00 +0800
From:   maomao xu <albert008.xu@...il.com>
To:     gregkh@...uxfoundation.org, imre.deak@...il.com,
        emil.gedda@...lgedda.se, dan.carpenter@...cle.com,
        bhumirks@...il.com, jrodbar@...oo.es, devel@...verdev.osuosl.org,
        linux-kernel@...r.kernel.org
Cc:     maomao xu <albert008.xu@...il.com>
Subject: [PATCH] staging: gdm724x: Fix sparse warnings

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@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ