All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 3205/4370] drivers/firewire/config-rom-generator-test.c:13:9: sparse: sparse: incorrect type in initializer (different base types)
@ 2026-09-05 22:26 kernel test robot
  2026-09-06  8:08 ` Takashi Sakamoto
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-09-05 22:26 UTC (permalink / raw)
  To: Takashi Sakamoto; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   af5f12805e5cefa4fe68d6127c7e1fb78cd5535c
commit: ee9a8c9afb579630fec599a7736a5ee677301a27 [3205/4370] firewire: core: add test for root directory generation in config ROM generator
config: csky-randconfig-r113-20260905 (https://download.01.org/0day-ci/archive/20260906/202609060630.rC0Zz88P-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 12.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260906/202609060630.rC0Zz88P-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609060630.rC0Zz88P-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   drivers/firewire/core-card.c: note: in included file:
>> drivers/firewire/config-rom-generator-test.c:13:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:13:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:13:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:14:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:14:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:14:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:15:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:15:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:15:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:16:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:16:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:16:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:17:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:17:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:17:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:18:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:18:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:18:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:19:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:19:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:19:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:20:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:20:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:20:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:21:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:21:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:21:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:22:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:22:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:22:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:23:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:23:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:23:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:24:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:24:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:24:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:25:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:25:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:25:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:26:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:26:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:26:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:27:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:27:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:27:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:28:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:28:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:28:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:29:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:29:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:29:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:30:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:30:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:30:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:31:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:31:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:31:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:32:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:32:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:32:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:33:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:33:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:33:9: sparse:     got restricted __be32 [usertype]
   drivers/firewire/config-rom-generator-test.c:34:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
   drivers/firewire/config-rom-generator-test.c:34:9: sparse:     expected unsigned int
   drivers/firewire/config-rom-generator-test.c:34:9: sparse:     got restricted __be32 [usertype]
>> drivers/firewire/config-rom-generator-test.c:46:29: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __be32 const [usertype] *const expected @@     got unsigned int const * @@
   drivers/firewire/config-rom-generator-test.c:46:29: sparse:     expected restricted __be32 const [usertype] *const expected
   drivers/firewire/config-rom-generator-test.c:46:29: sparse:     got unsigned int const *

vim +13 drivers/firewire/config-rom-generator-test.c

    11	
    12	static const u32 config_rom_bare[] = {
  > 13		cpu_to_be32(0x0404921b), // bus info
    14		cpu_to_be32(0x31333934), // |
    15		cpu_to_be32(0xf000b223), // |
    16		cpu_to_be32(0x01234567), // |
    17		cpu_to_be32(0x89abcdef), // v
    18		cpu_to_be32(0x00051b70), // root directory
    19		cpu_to_be32(0x0c0083c0), // |
    20		cpu_to_be32(0x03001f11), // |
    21		cpu_to_be32(0x81000003), // |
    22		cpu_to_be32(0x17023901), // |
    23		cpu_to_be32(0x81000008), // v
    24		cpu_to_be32(0x00064cb7), // text descriptor leaf (from root)
    25		cpu_to_be32(0x00000000), // |
    26		cpu_to_be32(0x00000000), // |
    27		cpu_to_be32(0x4c696e75), // |
    28		cpu_to_be32(0x78204669), // |
    29		cpu_to_be32(0x72657769), // |
    30		cpu_to_be32(0x72650000), // v
    31		cpu_to_be32(0x0003ff1c), // text descriptor leaf (from root)
    32		cpu_to_be32(0x00000000), // |
    33		cpu_to_be32(0x00000000), // |
    34		cpu_to_be32(0x4a756a75), // v Juju is a code name at the development time of this stack.
    35	};
    36	
    37	static const struct generator_test_case {
    38		const char *const name;
    39		int config_rom_generation;
    40		const __be32 *const expected;
    41		unsigned int quadlet_length;
    42	} generator_test_cases[] = {
    43		{
    44			.name = "bare",
    45			.config_rom_generation = 0,
  > 46			.expected = config_rom_bare,
    47			.quadlet_length = ARRAY_SIZE(config_rom_bare),
    48		},
    49	};
    50	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-next:master 3205/4370] drivers/firewire/config-rom-generator-test.c:13:9: sparse: sparse: incorrect type in initializer (different base types)
  2026-09-05 22:26 [linux-next:master 3205/4370] drivers/firewire/config-rom-generator-test.c:13:9: sparse: sparse: incorrect type in initializer (different base types) kernel test robot
@ 2026-09-06  8:08 ` Takashi Sakamoto
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Sakamoto @ 2026-09-06  8:08 UTC (permalink / raw)
  To: kbuild test robot; +Cc: oe-kbuild-all

Hi,

On Sun, Sep 6, 2026, at 07:26, kernel test robot wrote:
> tree:   
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
> master
> head:   af5f12805e5cefa4fe68d6127c7e1fb78cd5535c
> commit: ee9a8c9afb579630fec599a7736a5ee677301a27 [3205/4370] firewire: 
> core: add test for root directory generation in config ROM generator
> config: csky-randconfig-r113-20260905 
> (https://download.01.org/0day-ci/archive/20260906/202609060630.rC0Zz88P-lkp@intel.com/config)
> compiler: csky-linux-gcc (GCC) 12.5.0
> sparse: v0.6.5-rc1
> reproduce (this is a W=1 build): 
> (https://download.01.org/0day-ci/archive/20260906/202609060630.rC0Zz88P-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new 
> version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: 
> https://lore.kernel.org/oe-kbuild-all/202609060630.rC0Zz88P-lkp@intel.com/
>
> sparse warnings: (new ones prefixed by >>)
>    drivers/firewire/core-card.c: note: in included file:
>>> drivers/firewire/config-rom-generator-test.c:13:9: sparse: sparse: incorrect type in initializer (different base types) @@     expected unsigned int @@     got restricted __be32 [usertype] @@
>    drivers/firewire/config-rom-generator-test.c:13:9: sparse:     
> expected unsigned int
>    drivers/firewire/config-rom-generator-test.c:13:9: sparse:     got 
> restricted __be32 [usertype]

>     12	static const u32 config_rom_bare[] = {

These config rom images should be typed as __be32 array. I'll fix it later.


Thanks

Takashi Sakamoto

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-06  8:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-05 22:26 [linux-next:master 3205/4370] drivers/firewire/config-rom-generator-test.c:13:9: sparse: sparse: incorrect type in initializer (different base types) kernel test robot
2026-09-06  8:08 ` Takashi Sakamoto

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.