* [android-common:android-4.14-q 3/3] include/linux/ratelimit.h:37:9: warning: format '%i' expects argument of type 'int', but argument 2 has type 'ssize_t'
@ 2019-11-06 11:25 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-06 11:25 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5441 bytes --]
tree: https://android.googlesource.com/kernel/common android-4.14-q
head: ca76d7591354498239b77dd5f07ba33750b4a23f
commit: ca76d7591354498239b77dd5f07ba33750b4a23f [3/3] ANDROID: overlayfs: internal getxattr operations without sepolicy checking
config: x86_64-randconfig-a004-201944 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
git checkout ca76d7591354498239b77dd5f07ba33750b4a23f
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from fs/overlayfs/namei.c:14:0:
fs/overlayfs/namei.c: In function 'ovl_check_redirect':
>> include/linux/ratelimit.h:37:9: warning: format '%i' expects argument of type 'int', but argument 2 has type 'ssize_t' [-Wformat=]
struct ratelimit_state name = \
^
>> include/linux/printk.h:422:9: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
static DEFINE_RATELIMIT_STATE(_rs, \
^
>> include/linux/printk.h:443:2: note: in expansion of macro 'printk_ratelimited'
printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^
fs/overlayfs/namei.c:88:2: note: in expansion of macro 'pr_warn_ratelimited'
pr_warn_ratelimited("overlayfs: failed to get redirect (%i)\n", res);
^
--
In file included from fs/overlayfs/inode.c:15:0:
fs/overlayfs/inode.c: In function 'ovl_get_nlink':
include/linux/ratelimit.h:37:9: warning: format '%i' expects argument of type 'int', but argument 3 has type 'ssize_t' [-Wformat=]
struct ratelimit_state name = \
^
>> include/linux/printk.h:422:9: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
static DEFINE_RATELIMIT_STATE(_rs, \
^
>> include/linux/printk.h:443:2: note: in expansion of macro 'printk_ratelimited'
printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^
fs/overlayfs/inode.c:570:2: note: in expansion of macro 'pr_warn_ratelimited'
pr_warn_ratelimited("overlayfs: failed to get index nlink (%pd2, err=%i)\n",
^
--
In file included from fs//overlayfs/namei.c:14:0:
fs//overlayfs/namei.c: In function 'ovl_check_redirect':
>> include/linux/ratelimit.h:37:9: warning: format '%i' expects argument of type 'int', but argument 2 has type 'ssize_t' [-Wformat=]
struct ratelimit_state name = \
^
>> include/linux/printk.h:422:9: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
static DEFINE_RATELIMIT_STATE(_rs, \
^
>> include/linux/printk.h:443:2: note: in expansion of macro 'printk_ratelimited'
printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^
fs//overlayfs/namei.c:88:2: note: in expansion of macro 'pr_warn_ratelimited'
pr_warn_ratelimited("overlayfs: failed to get redirect (%i)\n", res);
^
--
In file included from fs//overlayfs/inode.c:15:0:
fs//overlayfs/inode.c: In function 'ovl_get_nlink':
include/linux/ratelimit.h:37:9: warning: format '%i' expects argument of type 'int', but argument 3 has type 'ssize_t' [-Wformat=]
struct ratelimit_state name = \
^
>> include/linux/printk.h:422:9: note: in expansion of macro 'DEFINE_RATELIMIT_STATE'
static DEFINE_RATELIMIT_STATE(_rs, \
^
>> include/linux/printk.h:443:2: note: in expansion of macro 'printk_ratelimited'
printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
^
fs//overlayfs/inode.c:570:2: note: in expansion of macro 'pr_warn_ratelimited'
pr_warn_ratelimited("overlayfs: failed to get index nlink (%pd2, err=%i)\n",
^
vim +37 include/linux/ratelimit.h
717115e1a5856b Dave Young 2008-07-25 25
89e3f90995b370 Dmitry Monakhov 2014-12-12 26 #define RATELIMIT_STATE_INIT(name, interval_init, burst_init) { \
07354eb1a74d1e Thomas Gleixner 2009-07-25 27 .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
979f693def9084 Ingo Molnar 2009-09-22 28 .interval = interval_init, \
979f693def9084 Ingo Molnar 2009-09-22 29 .burst = burst_init, \
979f693def9084 Ingo Molnar 2009-09-22 30 }
717115e1a5856b Dave Young 2008-07-25 31
89e3f90995b370 Dmitry Monakhov 2014-12-12 32 #define RATELIMIT_STATE_INIT_DISABLED \
89e3f90995b370 Dmitry Monakhov 2014-12-12 33 RATELIMIT_STATE_INIT(ratelimit_state, 0, DEFAULT_RATELIMIT_BURST)
89e3f90995b370 Dmitry Monakhov 2014-12-12 34
89e3f90995b370 Dmitry Monakhov 2014-12-12 35 #define DEFINE_RATELIMIT_STATE(name, interval_init, burst_init) \
89e3f90995b370 Dmitry Monakhov 2014-12-12 36 \
89e3f90995b370 Dmitry Monakhov 2014-12-12 @37 struct ratelimit_state name = \
89e3f90995b370 Dmitry Monakhov 2014-12-12 38 RATELIMIT_STATE_INIT(name, interval_init, burst_init) \
89e3f90995b370 Dmitry Monakhov 2014-12-12 39
:::::: The code at line 37 was first introduced by commit
:::::: 89e3f90995b370fa46922eece62ea23f039a202d ratelimit: add initialization macro
:::::: TO: Dmitry Monakhov <dmonakhov@openvz.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32976 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-06 11:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06 11:25 [android-common:android-4.14-q 3/3] include/linux/ratelimit.h:37:9: warning: format '%i' expects argument of type 'int', but argument 2 has type 'ssize_t' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.