All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [linux-next:master 3205/4370] drivers/firewire/config-rom-generator-test.c:13:9: sparse: sparse: incorrect type in initializer (different base types)
Date: Sun, 06 Sep 2026 06:26:12 +0800	[thread overview]
Message-ID: <202609060630.rC0Zz88P-lkp@intel.com> (raw)

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

             reply	other threads:[~2026-09-05 22:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-05 22:26 kernel test robot [this message]
2026-09-06  8:08 ` [linux-next:master 3205/4370] drivers/firewire/config-rom-generator-test.c:13:9: sparse: sparse: incorrect type in initializer (different base types) Takashi Sakamoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609060630.rC0Zz88P-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=o-takashi@sakamocchi.jp \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.