On 1/25/2022 1:28 AM, Miquel Raynal wrote:
Hi Florian,
lkp@xxxxxxxxx wrote on Mon, 24 Jan 2022 22:30:29 +0800:
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 74e5dee6a5b9683e4e78aad784c6c807833cb89b
commit: feca4cc4765a67907a97bddfa94aa6901cbbce7d [990/1252] mtd: rawnand: brcmnand: Add BCMA shim
config: alpha-randconfig-s032-20220124 (https://download.01.org/0day-ci/archive/20220124/202201242253.FYuBom60-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/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=feca4cc4765a67907a97bddfa94aa6901cbbce7d
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/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=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha SHELL=/bin/bash drivers/mtd/nand/raw/brcmnand/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
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: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
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 restricted __be32 [usertype]
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.
Yes, definitively, if I find a way to please sparse.
--
Florian