* [linux-next:master 990/1252] drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast to restricted __be32
@ 2022-01-24 14:30 ` kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2022-01-24 14:30 UTC (permalink / raw)
To: Florian Fainelli; +Cc: kbuild-all, Linux Memory Management List, Miquel Raynal
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@intel.com/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@intel.com>
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]
vim +61 drivers/mtd/nand/raw/brcmnand/bcma_nand.c
45
46 static u32 brcmnand_bcma_read_reg(struct brcmnand_soc *soc, u32 offset)
47 {
48 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc);
49 u32 val;
50
51 /* Offset into the NAND block and deal with the flash cache separately */
52 if (offset == BRCMNAND_NON_MMIO_FC_ADDR)
53 offset = BCMA_CC_NAND_CACHE_DATA;
54 else
55 offset += BCMA_CC_NAND_REVISION;
56
57 val = bcma_cc_read32(sc->cc, offset);
58
59 /* Swap if necessary */
60 if (brcmnand_bcma_needs_swapping(offset))
> 61 val = be32_to_cpu(val);
62 return val;
63 }
64
65 static void brcmnand_bcma_write_reg(struct brcmnand_soc *soc, u32 val,
66 u32 offset)
67 {
68 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc);
69
70 /* Offset into the NAND block */
71 if (offset == BRCMNAND_NON_MMIO_FC_ADDR)
72 offset = BCMA_CC_NAND_CACHE_DATA;
73 else
74 offset += BCMA_CC_NAND_REVISION;
75
76 /* Swap if necessary */
77 if (brcmnand_bcma_needs_swapping(offset))
> 78 val = cpu_to_be32(val);
79
80 bcma_cc_write32(sc->cc, offset, val);
81 }
82
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [linux-next:master 990/1252] drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast to restricted __be32
@ 2022-01-24 14:30 ` kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2022-01-24 14:30 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3781 bytes --]
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(a)intel.com/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@intel.com>
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]
vim +61 drivers/mtd/nand/raw/brcmnand/bcma_nand.c
45
46 static u32 brcmnand_bcma_read_reg(struct brcmnand_soc *soc, u32 offset)
47 {
48 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc);
49 u32 val;
50
51 /* Offset into the NAND block and deal with the flash cache separately */
52 if (offset == BRCMNAND_NON_MMIO_FC_ADDR)
53 offset = BCMA_CC_NAND_CACHE_DATA;
54 else
55 offset += BCMA_CC_NAND_REVISION;
56
57 val = bcma_cc_read32(sc->cc, offset);
58
59 /* Swap if necessary */
60 if (brcmnand_bcma_needs_swapping(offset))
> 61 val = be32_to_cpu(val);
62 return val;
63 }
64
65 static void brcmnand_bcma_write_reg(struct brcmnand_soc *soc, u32 val,
66 u32 offset)
67 {
68 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc);
69
70 /* Offset into the NAND block */
71 if (offset == BRCMNAND_NON_MMIO_FC_ADDR)
72 offset = BCMA_CC_NAND_CACHE_DATA;
73 else
74 offset += BCMA_CC_NAND_REVISION;
75
76 /* Swap if necessary */
77 if (brcmnand_bcma_needs_swapping(offset))
> 78 val = cpu_to_be32(val);
79
80 bcma_cc_write32(sc->cc, offset, val);
81 }
82
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-next:master 990/1252] drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast to restricted __be32
2022-01-24 14:30 ` kernel test robot
@ 2022-01-25 9:28 ` Miquel Raynal
-1 siblings, 0 replies; 6+ messages in thread
From: Miquel Raynal @ 2022-01-25 9:28 UTC (permalink / raw)
To: kernel test robot
Cc: Florian Fainelli, kbuild-all, Linux Memory Management List
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.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@intel.com/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@intel.com>
>
>
> 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.
> vim +61 drivers/mtd/nand/raw/brcmnand/bcma_nand.c
>
> 45
> 46 static u32 brcmnand_bcma_read_reg(struct brcmnand_soc *soc, u32 offset)
> 47 {
> 48 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc);
> 49 u32 val;
> 50
> 51 /* Offset into the NAND block and deal with the flash cache separately */
> 52 if (offset == BRCMNAND_NON_MMIO_FC_ADDR)
> 53 offset = BCMA_CC_NAND_CACHE_DATA;
> 54 else
> 55 offset += BCMA_CC_NAND_REVISION;
> 56
> 57 val = bcma_cc_read32(sc->cc, offset);
> 58
> 59 /* Swap if necessary */
> 60 if (brcmnand_bcma_needs_swapping(offset))
> > 61 val = be32_to_cpu(val);
> 62 return val;
> 63 }
> 64
> 65 static void brcmnand_bcma_write_reg(struct brcmnand_soc *soc, u32 val,
> 66 u32 offset)
> 67 {
> 68 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc);
> 69
> 70 /* Offset into the NAND block */
> 71 if (offset == BRCMNAND_NON_MMIO_FC_ADDR)
> 72 offset = BCMA_CC_NAND_CACHE_DATA;
> 73 else
> 74 offset += BCMA_CC_NAND_REVISION;
> 75
> 76 /* Swap if necessary */
> 77 if (brcmnand_bcma_needs_swapping(offset))
> > 78 val = cpu_to_be32(val);
> 79
> 80 bcma_cc_write32(sc->cc, offset, val);
> 81 }
> 82
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-next:master 990/1252] drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast to restricted __be32
@ 2022-01-25 9:28 ` Miquel Raynal
0 siblings, 0 replies; 6+ messages in thread
From: Miquel Raynal @ 2022-01-25 9:28 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4201 bytes --]
Hi Florian,
lkp(a)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.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(a)intel.com/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@intel.com>
>
>
> 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.
> vim +61 drivers/mtd/nand/raw/brcmnand/bcma_nand.c
>
> 45
> 46 static u32 brcmnand_bcma_read_reg(struct brcmnand_soc *soc, u32 offset)
> 47 {
> 48 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc);
> 49 u32 val;
> 50
> 51 /* Offset into the NAND block and deal with the flash cache separately */
> 52 if (offset == BRCMNAND_NON_MMIO_FC_ADDR)
> 53 offset = BCMA_CC_NAND_CACHE_DATA;
> 54 else
> 55 offset += BCMA_CC_NAND_REVISION;
> 56
> 57 val = bcma_cc_read32(sc->cc, offset);
> 58
> 59 /* Swap if necessary */
> 60 if (brcmnand_bcma_needs_swapping(offset))
> > 61 val = be32_to_cpu(val);
> 62 return val;
> 63 }
> 64
> 65 static void brcmnand_bcma_write_reg(struct brcmnand_soc *soc, u32 val,
> 66 u32 offset)
> 67 {
> 68 struct brcmnand_bcma_soc *sc = to_bcma_soc(soc);
> 69
> 70 /* Offset into the NAND block */
> 71 if (offset == BRCMNAND_NON_MMIO_FC_ADDR)
> 72 offset = BCMA_CC_NAND_CACHE_DATA;
> 73 else
> 74 offset += BCMA_CC_NAND_REVISION;
> 75
> 76 /* Swap if necessary */
> 77 if (brcmnand_bcma_needs_swapping(offset))
> > 78 val = cpu_to_be32(val);
> 79
> 80 bcma_cc_write32(sc->cc, offset, val);
> 81 }
> 82
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
Thanks,
Miquèl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-next:master 990/1252] drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast to restricted __be32
2022-01-25 9:28 ` Miquel Raynal
@ 2022-01-25 22:42 ` Florian Fainelli
-1 siblings, 0 replies; 6+ messages in thread
From: Florian Fainelli @ 2022-01-25 22:42 UTC (permalink / raw)
To: Miquel Raynal, kernel test robot; +Cc: kbuild-all, Linux Memory Management List
On 1/25/2022 1:28 AM, Miquel Raynal wrote:
> 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.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@intel.com/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@intel.com>
>>
>>
>> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-next:master 990/1252] drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast to restricted __be32
@ 2022-01-25 22:42 ` Florian Fainelli
0 siblings, 0 replies; 6+ messages in thread
From: Florian Fainelli @ 2022-01-25 22:42 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2859 bytes --]
On 1/25/2022 1:28 AM, Miquel Raynal wrote:
> Hi Florian,
>
> lkp(a)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.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(a)intel.com/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@intel.com>
>>
>>
>> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-01-25 22:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-24 14:30 [linux-next:master 990/1252] drivers/mtd/nand/raw/brcmnand/bcma_nand.c:61:23: sparse: sparse: cast to restricted __be32 kernel test robot
2022-01-24 14:30 ` kernel test robot
2022-01-25 9:28 ` Miquel Raynal
2022-01-25 9:28 ` Miquel Raynal
2022-01-25 22:42 ` Florian Fainelli
2022-01-25 22:42 ` Florian Fainelli
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.