From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752239AbdCDRVW (ORCPT ); Sat, 4 Mar 2017 12:21:22 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35525 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751963AbdCDRVU (ORCPT ); Sat, 4 Mar 2017 12:21:20 -0500 Date: Sat, 4 Mar 2017 18:20:50 +0100 From: Andrea Ghittino To: devel@driverdev.osuosl.org, david.kershner@unisys.com, gregkh@linuxfoundation.org, sparmaintainer@unisys.com, linux-kernel@vger.kernel.org Subject: [PATCH] staging: unisys: fix sparse warnings Message-ID: <20170304172038.GA952@myhd3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse generates two warnings related to incorrect type in assignment. This patch changes the types in the struct defined in unisys Signed-off-by: Andrea Ghittino --- Compile tested only iochannel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/include/iochannel.h b/drivers/staging/unisys/include/iochannel.h index 54f4900..41e5b4e 100644 --- a/drivers/staging/unisys/include/iochannel.h +++ b/drivers/staging/unisys/include/iochannel.h @@ -308,8 +308,8 @@ struct net_pkt_xmt { u8 valid; /* 1 = struct is valid - else ignore */ u8 hrawoffv; /* 1 = hwrafoff is valid */ u8 nhrawoffv; /* 1 = nhwrafoff is valid */ - u16 protocol; /* specifies packet protocol */ - u32 csum; /* value used to set skb->csum at IOPart */ + __be16 protocol; /* specifies packet protocol */ + __wsum csum; /* value used to set skb->csum at IOPart */ u32 hrawoff; /* value used to set skb->h.raw at IOPart */ /* hrawoff points to the start of the TRANSPORT LAYER HEADER */ u32 nhrawoff; /* value used to set skb->nh.raw at IOPart */