tree: https://github.com/ceph/ceph-client.git testing head: 6fb0eaf13dcddf369aee4f72d00bd041111cc606 commit: cd574cfa473f997b8124a97a0eac2c24671a414c [3/4] ceph: support copy_file_range file operation config: i386-randconfig-c0-10181226 (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: git checkout cd574cfa473f997b8124a97a0eac2c24671a414c # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): In file included from include/linux/kernel.h:14:0, from include/linux/list.h:9, from include/linux/ceph/striper.h:5, from fs//ceph/file.c:3: fs//ceph/file.c: In function 'is_file_size_ok': >> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/printk.h:136:10: note: in definition of macro 'no_printk' printk(fmt, ##__VA_ARGS__); \ ^~~ include/linux/kern_levels.h:15:20: note: in expansion of macro 'KERN_SOH' #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ ^~~~~~~~ include/linux/printk.h:346:12: note: in expansion of macro 'KERN_DEBUG' no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~ include/linux/ceph/ceph_debug.h:35:25: note: in expansion of macro 'pr_debug' # define dout(fmt, ...) pr_debug(" " fmt, ##__VA_ARGS__) ^~~~~~~~ fs//ceph/file.c:1873:3: note: in expansion of macro 'dout' dout("Copy beyond EOF (%llu + %ld > %llu)\n", ^~~~ fs//ceph/file.c: In function 'ceph_copy_file_range': >> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'ssize_t {aka int}' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/printk.h:136:10: note: in definition of macro 'no_printk' printk(fmt, ##__VA_ARGS__); \ ^~~ include/linux/kern_levels.h:15:20: note: in expansion of macro 'KERN_SOH' #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ ^~~~~~~~ include/linux/printk.h:346:12: note: in expansion of macro 'KERN_DEBUG' no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~ include/linux/ceph/ceph_debug.h:35:25: note: in expansion of macro 'pr_debug' # define dout(fmt, ...) pr_debug(" " fmt, ##__VA_ARGS__) ^~~~~~~~ fs//ceph/file.c:1962:3: note: in expansion of macro 'dout' dout("Failed to invalidate inode pages (%ld)\n", ret); ^~~~ -- In file included from include/linux/kernel.h:14:0, from include/linux/list.h:9, from include/linux/ceph/striper.h:5, from fs/ceph/file.c:3: fs/ceph/file.c: In function 'is_file_size_ok': >> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/printk.h:136:10: note: in definition of macro 'no_printk' printk(fmt, ##__VA_ARGS__); \ ^~~ include/linux/kern_levels.h:15:20: note: in expansion of macro 'KERN_SOH' #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ ^~~~~~~~ include/linux/printk.h:346:12: note: in expansion of macro 'KERN_DEBUG' no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~ include/linux/ceph/ceph_debug.h:35:25: note: in expansion of macro 'pr_debug' # define dout(fmt, ...) pr_debug(" " fmt, ##__VA_ARGS__) ^~~~~~~~ fs/ceph/file.c:1873:3: note: in expansion of macro 'dout' dout("Copy beyond EOF (%llu + %ld > %llu)\n", ^~~~ fs/ceph/file.c: In function 'ceph_copy_file_range': >> include/linux/kern_levels.h:5:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'ssize_t {aka int}' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/printk.h:136:10: note: in definition of macro 'no_printk' printk(fmt, ##__VA_ARGS__); \ ^~~ include/linux/kern_levels.h:15:20: note: in expansion of macro 'KERN_SOH' #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ ^~~~~~~~ include/linux/printk.h:346:12: note: in expansion of macro 'KERN_DEBUG' no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~ include/linux/ceph/ceph_debug.h:35:25: note: in expansion of macro 'pr_debug' # define dout(fmt, ...) pr_debug(" " fmt, ##__VA_ARGS__) ^~~~~~~~ fs/ceph/file.c:1962:3: note: in expansion of macro 'dout' dout("Failed to invalidate inode pages (%ld)\n", ret); ^~~~ vim +5 include/linux/kern_levels.h 314ba352 Joe Perches 2012-07-30 4 04d2c8c8 Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */ 04d2c8c8 Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001' 04d2c8c8 Joe Perches 2012-07-30 7 :::::: The code at line 5 was first introduced by commit :::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern :::::: TO: Joe Perches <joe@xxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip