[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202503230701.JV9cV28A-lkp@intel.com>
Date: Sun, 23 Mar 2025 07:26:45 +0800
From: kernel test robot <lkp@...el.com>
To: Julian Stecklina via B4 Relay <devnull+julian.stecklina.cyberus-technology.de@...nel.org>,
Christoph Hellwig <hch@....de>, Al Viro <viro@...iv.linux.org.uk>,
Christian Brauner <brauner@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Gao Xiang <xiang@...nel.org>, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-erofs@...ts.ozlabs.org,
Julian Stecklina <julian.stecklina@...erus-technology.de>
Subject: Re: [PATCH v2 6/9] fs: romfs: register an initrd fs detector
Hi Julian,
kernel test robot noticed the following build errors:
[auto build test ERROR on 88d324e69ea9f3ae1c1905ea75d717c08bdb8e15]
url: https://github.com/intel-lab-lkp/linux/commits/Julian-Stecklina-via-B4-Relay/initrd-remove-ASCII-spinner/20250323-043649
base: 88d324e69ea9f3ae1c1905ea75d717c08bdb8e15
patch link: https://lore.kernel.org/r/20250322-initrd-erofs-v2-6-d66ee4a2c756%40cyberus-technology.de
patch subject: [PATCH v2 6/9] fs: romfs: register an initrd fs detector
config: i386-buildonly-randconfig-002-20250323 (https://download.01.org/0day-ci/archive/20250323/202503230701.JV9cV28A-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250323/202503230701.JV9cV28A-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503230701.JV9cV28A-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
>> fs/romfs/initrd.c:22:33: error: macro "initrd_fs_detect" passed 2 arguments, but takes just 1
22 | initrd_fs_detect(detect_romfs, 0);
| ^
In file included from fs/romfs/initrd.c:4:
include/linux/initrd.h:63: note: macro "initrd_fs_detect" defined here
63 | #define initrd_fs_detect(detectfn)
|
>> fs/romfs/initrd.c:22:1: warning: data definition has no type or storage class
22 | initrd_fs_detect(detect_romfs, 0);
| ^~~~~~~~~~~~~~~~
>> fs/romfs/initrd.c:22:1: error: type defaults to 'int' in declaration of 'initrd_fs_detect' [-Werror=implicit-int]
>> fs/romfs/initrd.c:8:22: warning: 'detect_romfs' defined but not used [-Wunused-function]
8 | static size_t __init detect_romfs(void *block_data)
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/initrd_fs_detect +22 fs/romfs/initrd.c
2
3 #include <linux/fs.h>
> 4 #include <linux/initrd.h>
5 #include <linux/magic.h>
6 #include <linux/romfs_fs.h>
7
> 8 static size_t __init detect_romfs(void *block_data)
9 {
10 struct romfs_super_block *romfsb
11 = (struct romfs_super_block *)block_data;
12 BUILD_BUG_ON(sizeof(*romfsb) > BLOCK_SIZE);
13
14 /* The definitions of ROMSB_WORD* already handle endianness. */
15 if (romfsb->word0 != ROMSB_WORD0 ||
16 romfsb->word1 != ROMSB_WORD1)
17 return 0;
18
19 return be32_to_cpu(romfsb->size);
20 }
21
> 22 initrd_fs_detect(detect_romfs, 0);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists