Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752646AbcLJFtf (ORCPT ); Sat, 10 Dec 2016 00:49:35 -0500 Received: from smtprelay0131.hostedemail.com ([216.40.44.131]:44468 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751454AbcLJFte (ORCPT ); Sat, 10 Dec 2016 00:49:34 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1381:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:4321:5007:6691:10004:10400:10848:11026:11232:11658:11914:12043:12048:12555:12740:12760:12986:13069:13311:13357:13439:14181:14659:14721:21080:21324:21433:21434:21451:30034:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: shape11_8d53b58048f21 X-Filterd-Recvd-Size: 1860 Message-ID: <1481348968.5946.48.camel@perches.com> Subject: Re: [PATCH] scsi/qla2xxx: label endian-ness for many fields From: Joe Perches To: "Michael S. Tsirkin" , qla2xxx-upstream@qlogic.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Himanshu.Madhani@cavium.com, Bart.VanAssche@sandisk.com Date: Fri, 09 Dec 2016 21:49:28 -0800 In-Reply-To: <20161209224216-mutt-send-email-mst@kernel.org> References: <20161209224216-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 935 Lines: 30 On Fri, 2016-12-09 at 22:45 +0200, Michael S. Tsirkin wrote: > This adds endian-ness labels for lots of qla structs. > Doing this cuts down number of sparse warnings from ~1700 to ~1400. > Will help find and resolve some of real issues down the road. > > Signed-off-by: Michael S. Tsirkin > > --- > > Compile-tested only. > > diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h > index 73b12e4..a4d3071 100644 > --- a/drivers/scsi/qla2xxx/qla_def.h > +++ b/drivers/scsi/qla2xxx/qla_def.h > @@ -1159,28 +1159,28 @@ typedef struct { > */ > uint8_t firmware_options[2]; > > - uint16_t frame_payload_size; > - uint16_t max_iocb_allocation; > - uint16_t execution_throttle; > + __le16 frame_payload_size; > + __le16 max_iocb_allocation; > + __le16 execution_throttle; Shouldn't all these _not_ have the leading __? Perhaps the uint8_t uses should be converted to u8 as well. [etc...]