From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22E7572 for ; Wed, 18 Aug 2021 20:40:50 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 2F849610FE; Wed, 18 Aug 2021 20:40:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629319249; bh=5tva/r9Oj0UN/sp05F4nzM/MGgwTGTX7IE9UMourYXU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VdcITPKrE0bBE3TiHA/Q3+5HDAfoqXbDQWtuid/rwPLd1IKqT+WWma5fdxulLtuJZ BM3LlBiCapRxMv2a01i2ll4V7JcuqC9KiK6ci4WTeigum3IyQdxQ0N+swNxxX06BgA obnZ9tDmC72NXvvcHvX6mvNg2rthYw7l5TthRoF8= Date: Wed, 18 Aug 2021 22:40:47 +0200 From: Greg Kroah-Hartman To: Aakash Hemadri Cc: Larry Finger , Phillip Potter , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Bjorn Helgaas , Shuah Khan Subject: Re: [PATCH] staging: r8188eu: clean up endianness issues Message-ID: References: <8a3fca82d9ec5dde9e42d40f0268a324cc87ebc6.1629301854.git.aakashhemadri123@gmail.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8a3fca82d9ec5dde9e42d40f0268a324cc87ebc6.1629301854.git.aakashhemadri123@gmail.com> On Wed, Aug 18, 2021 at 09:22:36PM +0530, Aakash Hemadri wrote: > Fix these sparse warnings: > > > rtw_br_ext.c:73:23: warning: restricted __be16 degrades to integer > > Here tag->tag_len is be16, use ntohs() > > > rtw_br_ext.c:601:57: warning: incorrect type in assignment (different base types) > > rtw_br_ext.c:601:57: expected unsigned short > > rtw_br_ext.c:601:57: got restricted __be16 [usertype] > > > rtw_br_ext.c:664:45: warning: cast to restricted __be16 > > rtw_br_ext.c:771:84: warning: incorrect type in argument 3 (different base types) > > rtw_br_ext.c:771:84: expected unsigned int [usertype] len > > Cast MAGIC_CODE as unsigned short > > > rtw_br_ext.c:771:84: got restricted __be16 [usertype] payload_len > > rtw_br_ext.c:773:110: warning: incorrect type in argument 2 (different base types) > > rtw_br_ext.c:773:110: expected int len > > rtw_br_ext.c:773:110: got restricted __be16 [usertype] payload_len > > > rtw_br_ext.c:836:54: warning: cast to restricted __be32 > > Unnecessary double cast? > > > rtw_br_ext.c:839:70: warning: restricted __be16 degrades to integer > > rtw_br_ext.c:845:70: warning: invalid assignment: |= > > rtw_br_ext.c:845:70: left side has type unsigned short > > rtw_br_ext.c:845:70: right side has type restricted __be16 > > dhcp->flag is u16 That is a lot of different things all at once. Please break this up into one-logical-change at a time and send a patch series. thanks, greg k-h