From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933088AbdCGVsa (ORCPT ); Tue, 7 Mar 2017 16:48:30 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:36158 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbdCGVs1 (ORCPT ); Tue, 7 Mar 2017 16:48:27 -0500 Date: Tue, 7 Mar 2017 22:48:03 +0100 From: Andrea Ghittino To: Dan Carpenter Cc: devel@driverdev.osuosl.org, david.kershner@unisys.com, gregkh@linuxfoundation.org, sparmaintainer@unisys.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: unisys: fix sparse warnings Message-ID: <20170307214802.GA4199@myhd3> References: <20170304172038.GA952@myhd3> <20170307201736.GA11171@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170307201736.GA11171@mwanda> 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 On Tue, Mar 07, 2017 at 11:17:36PM +0300, Dan Carpenter wrote: > On Sat, Mar 04, 2017 at 06:20:50PM +0100, Andrea Ghittino wrote: > > Sparse generates two warnings related to incorrect type in assignment. > > This patch changes the types in the struct defined in unisys > > Can you post the Sparse warning? Otherwise when I'm reviewing this > code I have to re-run Sparse to see what you're talking about. > > regards, > dan carpenter Here you can find sparse warnings: drivers/staging/unisys/visornic/visornic_main.c:844:50: warning: incorrect type in assignment (different base types) drivers/staging/unisys/visornic/visornic_main.c:844:50: expected unsigned short [unsigned] [usertype] protocol drivers/staging/unisys/visornic/visornic_main.c:844:50: got restricted __be16 [usertype] protocol drivers/staging/unisys/visornic/visornic_main.c:855:46: warning: incorrect type in assignment (different base types) drivers/staging/unisys/visornic/visornic_main.c:855:46: expected unsigned int [unsigned] [usertype] csum drivers/staging/unisys/visornic/visornic_main.c:855:46: got restricted __wsum [usertype] csum andrea