tree:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
fscache-iter
head: f6ac6a6db767d26c3330f0cecadd4f331ee6d291
commit: f6fd854cae86c52f0f0fb058483feab23fc77058 [38/55] cachefiles: Implement read and
write parts of new I/O API
config: arc-randconfig-r002-20200911 (attached as .config)
compiler: arceb-elf-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 f6fd854cae86c52f0f0fb058483feab23fc77058
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/mount.h:14,
from fs//cachefiles/io.c:8:
fs//cachefiles/io.c: In function 'cachefiles_read':
> include/linux/err.h:22:49: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
22 | #define IS_ERR_VALUE(x)
unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
| ^
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
fs//cachefiles/io.c:91:3: note: in expansion of macro 'if'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/err.h:22:25: note: in expansion of macro 'unlikely'
22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned
long)-MAX_ERRNO)
| ^~~~~~~~
fs//cachefiles/io.c:91:7: note: in expansion of macro 'IS_ERR_VALUE'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~~~~~~~~~~~
> include/linux/err.h:22:49: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
22 | #define IS_ERR_VALUE(x)
unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
| ^
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
fs//cachefiles/io.c:91:3: note: in expansion of macro 'if'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/err.h:22:25: note: in expansion of macro 'unlikely'
22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned
long)-MAX_ERRNO)
| ^~~~~~~~
fs//cachefiles/io.c:91:7: note: in expansion of macro 'IS_ERR_VALUE'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~~~~~~~~~~~
> include/linux/err.h:22:49: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
22 | #define IS_ERR_VALUE(x)
unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
| ^
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
fs//cachefiles/io.c:91:3: note: in expansion of macro 'if'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/err.h:22:25: note: in expansion of macro 'unlikely'
22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned
long)-MAX_ERRNO)
| ^~~~~~~~
fs//cachefiles/io.c:91:7: note: in expansion of macro 'IS_ERR_VALUE'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~~~~~~~~~~~
> include/linux/err.h:22:49: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
22 | #define IS_ERR_VALUE(x)
unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
| ^
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
fs//cachefiles/io.c:91:3: note: in expansion of macro 'if'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/err.h:22:25: note: in expansion of macro 'unlikely'
22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned
long)-MAX_ERRNO)
| ^~~~~~~~
fs//cachefiles/io.c:91:7: note: in expansion of macro 'IS_ERR_VALUE'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~~~~~~~~~~~
> include/linux/err.h:22:49: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
22 | #define IS_ERR_VALUE(x)
unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
| ^
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
fs//cachefiles/io.c:91:3: note: in expansion of macro 'if'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/err.h:22:25: note: in expansion of macro 'unlikely'
22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned
long)-MAX_ERRNO)
| ^~~~~~~~
fs//cachefiles/io.c:91:7: note: in expansion of macro 'IS_ERR_VALUE'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~~~~~~~~~~~
> include/linux/err.h:22:49: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
22 | #define IS_ERR_VALUE(x)
unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
| ^
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
fs//cachefiles/io.c:91:3: note: in expansion of macro 'if'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
| ^~~~~~~~~~~~~~~~
include/linux/err.h:22:25: note: in expansion of macro 'unlikely'
22 | #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned
long)-MAX_ERRNO)
| ^~~~~~~~
fs//cachefiles/io.c:91:7: note: in expansion of macro 'IS_ERR_VALUE'
91 | if (IS_ERR_VALUE(off2) && off2 != -ENXIO) {
| ^~~~~~~~~~~~
#
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/com...
git remote add dhowells-fs
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs fscache-iter
git checkout f6fd854cae86c52f0f0fb058483feab23fc77058
vim +22 include/linux/err.h
ebba5f9fcb8823 Randy Dunlap 2006-09-27 21
aa00edc1287a69 Linus Torvalds 2016-05-27 @22 #define IS_ERR_VALUE(x) unlikely((unsigned
long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
07ab67c8d0d7c1 Linus Torvalds 2005-05-19 23
:::::: The code at line 22 was first introduced by commit
:::::: aa00edc1287a693eadc7bc67a3d73555d969b35d make IS_ERR_VALUE() complain about
non-pointer-sized arguments
:::::: TO: Linus Torvalds <torvalds(a)linux-foundation.org>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org