Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp765841pxb; Wed, 18 Aug 2021 13:42:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyywncHRfBGr0UiOtxQ0kcRayfTMoJfxmmQzHCEelf0z5m+MT4aIlC8bVQLSM+Iouxw5Tep X-Received: by 2002:a17:907:2cf0:: with SMTP id hz16mr11614848ejc.218.1629319365507; Wed, 18 Aug 2021 13:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629319365; cv=none; d=google.com; s=arc-20160816; b=LlXGlMhnuJxkVkYTe1WRyhExwbHbG4kerT4+kLUTVxwiJaLh59XU44+5Xddt706rEA YEQ33NySe/mdIwFIpcIgIbip5pGYmsy9Xn0hzDAr3fLe6Nop7my95giJD//zN+FKKt8t 2m2B1d5+g+aLjY9bi07f70wukBTBOFwERelnoubnMjZBOBDFE6lWBuBAQxwL73jCuq9R wiw8qmenK1Lc69nrpgIc12cpADphMALrFfSy5eN+oE9DOsqV6RoxjZTNqncETMF99ebi fNIf6n8vV+v67R8ZunC8G9n4ws+ew7AtqKkfCl0GgEOT4ejj/AWzwDhJrCmt7nrhkD6t bwjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=x70V+4ZjeAlSkJvpZiVnFWS5nutWU2fjGAmHIKHkxZg=; b=vvTMPGrhvEp4Dl2LAMdJv4QwyuSCyaNv2JgzY4kFYj2tRQxdd+UhUGgY8iSj5mCH07 jQf9vBWIJBqG06yxyZpsV6gqZejCRQKpKKv0krzWY3P+/iizF7b6SPFZNPweVUZp1Vuu uFbGxSH8IrVnM7Hrcc4cHanU8IUNrHOizdOQ3QoW2bRzGwEP5OVJvnYIRkKSuOk9Mf/v J8PM2EOPgJ2H5H6V6NngpuvdaoUsCd50B19SEvU/+LGyQQ78TMHrHVNd9C/8yivEiquR ZQryPt0OMFg28GceucQA7AX+Z5ERNODNOLWGIQ7wlEDJgpIj5PFYpk4xBxUvTw7hrhjO AUCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VdcITPKr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d23si993169ejb.8.2021.08.18.13.42.19; Wed, 18 Aug 2021 13:42:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VdcITPKr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233305AbhHRUlZ (ORCPT + 99 others); Wed, 18 Aug 2021 16:41:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:33012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233153AbhHRUlZ (ORCPT ); Wed, 18 Aug 2021 16:41:25 -0400 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8a3fca82d9ec5dde9e42d40f0268a324cc87ebc6.1629301854.git.aakashhemadri123@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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