Re: [PATCH v3 8/8] initramfs_test: add filename padding test case

David Disseldorp
2025-08-20T01:13:44Z

On Wed, 20 Aug 2025 04:16:48 +0800, kernel test robot wrote:

> sparse warnings: (new ones prefixed by >>)
> >> init/initramfs_test.c:415:18: sparse: sparse: Initializer entry defined twice
> init/initramfs_test.c:425:18: sparse: also defined here
...
> 407 struct initramfs_test_cpio c[] = { {
> 408 .magic = "070701",
> 409 .ino = 1,
> 410 .mode = S_IFREG | 0777,
> 411 .uid = 0,
> 412 .gid = 0,
> 413 .nlink = 1,
> 414 .mtime = 1,
> > 415 .filesize = 0,
...
> 425 .filesize = sizeof(fdata),
> 426 } };

Thanks. I can send a v4 patchset to address this, or otherwise happy to
have line 415 removed by a maintainer when merged.