[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202601190600.xYVh1uKf-lkp@intel.com>
Date: Mon, 19 Jan 2026 06:09:58 +0800
From: kernel test robot <lkp@...el.com>
To: Ojaswin Mujoo <ojaswin@...ux.ibm.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-ext4@...r.kernel.org,
"Theodore Ts'o" <tytso@....edu>, Jan Kara <jack@...e.cz>
Subject: [tytso-ext4:dev 25/37] fs/ext4/extents-test.c:299:19:
warning: format '%ld' expects argument of type 'long int', but argument 4 has
type 'int'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
head: 11f1ff3cc21a8e9ca9f509a664de5975469ec561
commit: 16bbdb54f49e58d51dbf2217bab9ed424172ea9a [25/37] ext4: kunit tests for extent splitting and conversion
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20260119/202601190600.xYVh1uKf-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260119/202601190600.xYVh1uKf-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/202601190600.xYVh1uKf-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:31,
from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/random.h:6,
from include/linux/nodemask.h:94,
from include/linux/list_lru.h:12,
from include/linux/fs/super_types.h:7,
from include/linux/fs/super.h:5,
from include/linux/fs.h:5,
from fs/ext4/extents.c:20:
fs/ext4/extents-test.c: In function 'check_buffer':
include/linux/kern_levels.h:5:25: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:484:25: note: in definition of macro 'printk_index_wrap'
484 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/kunit/test.h:661:17: note: in expansion of macro 'printk'
661 | printk(lvl fmt, ##__VA_ARGS__); \
| ^~~~~~
fs/ext4/extents-test.c:298:9: note: in expansion of macro 'kunit_log'
298 | kunit_log(KERN_ALERT, kunit_get_current_test(),
| ^~~~~~~~~
include/linux/kern_levels.h:9:25: note: in expansion of macro 'KERN_SOH'
9 | #define KERN_ALERT KERN_SOH "1" /* action must be taken immediately */
| ^~~~~~~~
fs/ext4/extents-test.c:298:19: note: in expansion of macro 'KERN_ALERT'
298 | kunit_log(KERN_ALERT, kunit_get_current_test(),
| ^~~~~~~~~~
In file included from include/kunit/static_stub.h:18,
from fs/ext4/extents.c:35:
>> fs/ext4/extents-test.c:299:19: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=]
299 | "# %s: wrong char found at offset %ld (expected:%d got:%d)", __func__,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
300 | ((char *)ret - buf), c, *((char *)ret));
| ~~~~~~~~~~~~~~~~~~~
| |
| int
include/kunit/test.h:662:57: note: in definition of macro 'kunit_log'
662 | kunit_log_append((test_or_suite)->log, fmt, \
| ^~~
In file included from fs/ext4/extents.c:6200:
fs/ext4/extents-test.c:299:55: note: format string is defined here
299 | "# %s: wrong char found at offset %ld (expected:%d got:%d)", __func__,
| ~~^
| |
| long int
| %d
vim +299 fs/ext4/extents-test.c
286
287 /*
288 * Return 1 if all bytes in the buf equal to c, else return the offset of first mismatch
289 */
290 static int check_buffer(char *buf, int c, int size)
291 {
292 void *ret = NULL;
293
294 ret = memchr_inv(buf, c, size);
295 if (ret == NULL)
296 return 0;
297
298 kunit_log(KERN_ALERT, kunit_get_current_test(),
> 299 "# %s: wrong char found at offset %ld (expected:%d got:%d)", __func__,
300 ((char *)ret - buf), c, *((char *)ret));
301 return 1;
302 }
303
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists