[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208240851.chpv1GAP-lkp@intel.com>
Date: Wed, 24 Aug 2022 08:13:42 +0800
From: kernel test robot <lkp@...el.com>
To: David Howells <dhowells@...hat.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
Ammar Faizi <ammarfaizi2@...weeb.org>,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org
Subject: [ammarfaizi2-block:dhowells/linux-fs/netfs-lib 7/22]
fs/netfs/misc.c:22:46: warning: format specifies type 'unsigned long' but
the argument has type 'size_t' (aka 'unsigned int')
tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/netfs-lib
head: 14725009c14bfa32267af313901825cea6f069a6
commit: a5251be6cee44d7d393c0784487530e6dae512bb [7/22] netfs: Provide invalidatepage and releasepage calls
config: hexagon-buildonly-randconfig-r004-20220823 (https://download.01.org/0day-ci/archive/20220824/202208240851.chpv1GAP-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project b04d01c009d7f66bcca9138d2ce40999eedf104d)
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
# https://github.com/ammarfaizi2/linux-block/commit/a5251be6cee44d7d393c0784487530e6dae512bb
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/netfs-lib
git checkout a5251be6cee44d7d393c0784487530e6dae512bb
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash fs/netfs/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> fs/netfs/misc.c:22:46: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
_enter("{%lx},%lx,%lx", folio_index(folio), offset, length);
~~~ ^~~~~~
%zx
fs/netfs/internal.h:164:65: note: expanded from macro '_enter'
#define _enter(FMT, ...) no_printk("==> %s("FMT")", __func__, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:131:17: note: expanded from macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
include/linux/printk.h:464:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:436:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
fs/netfs/misc.c:22:54: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
_enter("{%lx},%lx,%lx", folio_index(folio), offset, length);
~~~ ^~~~~~
%zx
fs/netfs/internal.h:164:65: note: expanded from macro '_enter'
#define _enter(FMT, ...) no_printk("==> %s("FMT")", __func__, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:131:17: note: expanded from macro 'no_printk'
printk(fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
include/linux/printk.h:464:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:436:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
2 warnings generated.
vim +22 fs/netfs/misc.c
10
11 /**
12 * netfs_invalidate_folio - Invalidate or partially invalidate a folio
13 * @folio: Folio proposed for release
14 * @offset: Offset of the invalidated region
15 * @length: Length of the invalidated region
16 *
17 * Invalidate part or all of a folio for a network filesystem. The folio will
18 * be removed afterwards if the invalidated region covers the entire folio.
19 */
20 void netfs_invalidate_folio(struct folio *folio, size_t offset, size_t length)
21 {
> 22 _enter("{%lx},%lx,%lx", folio_index(folio), offset, length);
23
24 folio_wait_fscache(folio);
25 }
26 EXPORT_SYMBOL(netfs_invalidate_folio);
27
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists