From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 506D4C433F5 for ; Tue, 25 Jan 2022 09:28:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7E27A6B0080; Tue, 25 Jan 2022 04:28:28 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 791BB6B0081; Tue, 25 Jan 2022 04:28:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 680E26B0083; Tue, 25 Jan 2022 04:28:28 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0224.hostedemail.com [216.40.44.224]) by kanga.kvack.org (Postfix) with ESMTP id 5927C6B0080 for ; Tue, 25 Jan 2022 04:28:28 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 041888249980 for ; Tue, 25 Jan 2022 09:28:28 +0000 (UTC) X-FDA: 79068283896.28.9742564 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by imf19.hostedemail.com (Postfix) with ESMTP id 016D61A004E for ; Tue, 25 Jan 2022 09:28:26 +0000 (UTC) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 289C720009; Tue, 25 Jan 2022 09:28:23 +0000 (UTC) Date: Tue, 25 Jan 2022 10:28:22 +0100 From: Miquel Raynal To: kernel test robot Cc: Florian Fainelli , kbuild-all@lists.01.org, Linux Memory Management List Subject: Re: [linux-next:master 990/1252] drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast to restricted __be32 Message-ID: <20220125102822.436e5fff@xps13> In-Reply-To: <202201242253.FYuBom60-lkp@intel.com> References: <202201242253.FYuBom60-lkp@intel.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 016D61A004E X-Stat-Signature: cagppz8u4f9n5qh5ez9mzcnrykhmkopk Authentication-Results: imf19.hostedemail.com; dkim=none; spf=pass (imf19.hostedemail.com: domain of miquel.raynal@bootlin.com designates 217.70.183.200 as permitted sender) smtp.mailfrom=miquel.raynal@bootlin.com; dmarc=none X-Rspam-User: nil X-HE-Tag: 1643102906-298374 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000365, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Florian, lkp@intel.com wrote on Mon, 24 Jan 2022 22:30:29 +0800: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master > head: 74e5dee6a5b9683e4e78aad784c6c807833cb89b > commit: feca4cc4765a67907a97bddfa94aa6901cbbce7d [990/1252] mtd: rawnand:= brcmnand: Add BCMA shim > config: alpha-randconfig-s032-20220124 (https://download.01.org/0day-ci/a= rchive/20220124/202201242253.FYuBom60-lkp@intel.com/config) > compiler: alpha-linux-gcc (GCC) 11.2.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # apt-get install sparse > # sparse version: v0.6.4-dirty > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next= .git/commit/?id=3Dfeca4cc4765a67907a97bddfa94aa6901cbbce7d > git remote add linux-next https://git.kernel.org/pub/scm/linux/ke= rnel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout feca4cc4765a67907a97bddfa94aa6901cbbce7d > # save the config file to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cro= ss C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH= =3Dalpha SHELL=3D/bin/bash drivers/mtd/nand/raw/brcmnand/ >=20 > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot >=20 >=20 > sparse warnings: (new ones prefixed by >>) > >> drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast = to restricted __be32 > >> drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast = to restricted __be32 > >> drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast = to restricted __be32 > >> drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast = to restricted __be32 > >> drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast = to restricted __be32 > >> drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast = to restricted __be32 > >> drivers/mtd/nand/raw/brcmnand/bcma_nand.c:78:21: sparse: sparse: incor= rect type in assignment (different base types) @@ expected unsigned int= [usertype] val @@ got restricted __be32 [usertype] @@ =20 > drivers/mtd/nand/raw/brcmnand/bcma_nand.c:78:21: sparse: expected = unsigned int [usertype] val > drivers/mtd/nand/raw/brcmnand/bcma_nand.c:78:21: sparse: got restr= icted __be32 [usertype] >=20 Can you send a fixup! for that? If it applies easily on nand/next I'll squash it, otherwise please just send a regular patch and I will queue it as usual. > vim +61 drivers/mtd/nand/raw/brcmnand/bcma_nand.c >=20 > 45=09 > 46 static u32 brcmnand_bcma_read_reg(struct brcmnand_soc *soc, u32 of= fset) > 47 { > 48 struct brcmnand_bcma_soc *sc =3D to_bcma_soc(soc); > 49 u32 val; > 50=09 > 51 /* Offset into the NAND block and deal with the flash cache separ= ately */ > 52 if (offset =3D=3D BRCMNAND_NON_MMIO_FC_ADDR) > 53 offset =3D BCMA_CC_NAND_CACHE_DATA; > 54 else > 55 offset +=3D BCMA_CC_NAND_REVISION; > 56=09 > 57 val =3D bcma_cc_read32(sc->cc, offset); > 58=09 > 59 /* Swap if necessary */ > 60 if (brcmnand_bcma_needs_swapping(offset)) > > 61 val =3D be32_to_cpu(val); =20 > 62 return val; > 63 } > 64=09 > 65 static void brcmnand_bcma_write_reg(struct brcmnand_soc *soc, u32 = val, > 66 u32 offset) > 67 { > 68 struct brcmnand_bcma_soc *sc =3D to_bcma_soc(soc); > 69=09 > 70 /* Offset into the NAND block */ > 71 if (offset =3D=3D BRCMNAND_NON_MMIO_FC_ADDR) > 72 offset =3D BCMA_CC_NAND_CACHE_DATA; > 73 else > 74 offset +=3D BCMA_CC_NAND_REVISION; > 75=09 > 76 /* Swap if necessary */ > 77 if (brcmnand_bcma_needs_swapping(offset)) > > 78 val =3D cpu_to_be32(val); =20 > 79=09 > 80 bcma_cc_write32(sc->cc, offset, val); > 81 } > 82=09 >=20 > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Thanks, Miqu=C3=A8l