tree:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
fscache-iter
head: 59f33c90ef6c1a75d4af75e5f60d98c0d965b6a2
commit: 410180e063ecff3337fea5519bcf12410f13986e [33/61] cachefiles: Implement extent
shaper
config: csky-defconfig (attached as .config)
compiler: csky-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 410180e063ecff3337fea5519bcf12410f13986e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=csky
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/mount.h:14,
from fs/cachefiles/content-map.c:8:
fs/cachefiles/content-map.c: In function 'cachefiles_expand_content_map':
fs/cachefiles/internal.h:304:36: warning: format '%lx' expects argument of type
'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned
int'} [-Wformat=]
304 | #define _enter(FMT, ...) no_printk("==> %s("FMT")", __func__,
##__VA_ARGS__)
| ^~~~~~~~~
include/linux/printk.h:137:10: note: in definition of macro 'no_printk'
137 | printk(fmt, ##__VA_ARGS__); | ^~~
> fs/cachefiles/content-map.c:260:2: note: in expansion of macro
'_enter'
260 | _enter("%llx,%lx,%x", i_size, size,
object->content_map_size);
| ^~~~~~
fs/cachefiles/content-map.c:260:17: note: format string is defined here
260 | _enter("%llx,%lx,%x", i_size, size, object->content_map_size);
| ~~^
| |
| long unsigned int
| %x
vim +/_enter +260 fs/cachefiles/content-map.c
249
250 /*
251 * Expand the content map to a larger file size.
252 */
253 void cachefiles_expand_content_map(struct cachefiles_object *object, loff_t
i_size)
254 {
255 size_t size;
256 u8 *map, *zap;
257
258 size = cachefiles_map_size(i_size);
259
260 _enter("%llx,%lx,%x", i_size, size,
object->content_map_size);
261
262 if (size <= object->content_map_size)
263 return;
264
265 map = kzalloc(size, GFP_KERNEL);
266 if (!map)
267 return;
268
269 write_lock_bh(&object->content_map_lock);
270 if (size > object->content_map_size) {
271 zap = object->content_map;
272 memcpy(map, zap, object->content_map_size);
273 object->content_map = map;
274 object->content_map_size = size;
275 } else {
276 zap = map;
277 }
278 write_unlock_bh(&object->content_map_lock);
279
280 kfree(zap);
281 }
282
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org