Re: [PATCH v15 02/17] block: Add bio_for_each_folio_all()
by kernel test robot
Hi "Matthew,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc2 next-20210720]
[cannot apply to xfs-linux/for-next block/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Matthew-Wilcox-Oracle/Folio-supp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2734d6c1b1a089fb593ef6a23d4b70903526fe0c
config: sparc-randconfig-r015-20210720 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 10.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
# https://github.com/0day-ci/linux/commit/d611eec3f37483e1acbcc299bf47e9297...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Wilcox-Oracle/Folio-support-in-block-iomap-layers/20210720-152323
git checkout d611eec3f37483e1acbcc299bf47e929766afc8d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/tracehook.h:50,
from arch/sparc/kernel/signal_64.c:18:
include/linux/bio.h: In function 'bio_first_folio':
include/linux/bio.h:338:14: error: implicit declaration of function 'page_folio' [-Werror=implicit-function-declaration]
338 | fi->folio = page_folio(bvec->bv_page);
| ^~~~~~~~~~
>> include/linux/bio.h:338:12: error: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
338 | fi->folio = page_folio(bvec->bv_page);
| ^
include/linux/bio.h:340:43: error: invalid use of undefined type 'struct folio'
340 | PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
| ^~
In file included from include/linux/kernel.h:16,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/sparc/kernel/signal_64.c:12:
include/linux/bio.h:342:19: error: implicit declaration of function 'folio_size' [-Werror=implicit-function-declaration]
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~~~~~~~~
include/linux/minmax.h:20:21: note: in definition of macro '__typecheck'
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:342:15: note: in expansion of macro 'min'
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/tracehook.h:50,
from arch/sparc/kernel/signal_64.c:18:
include/linux/bio.h: In function 'bio_next_folio':
include/linux/bio.h:350:15: error: implicit declaration of function 'folio_next' [-Werror=implicit-function-declaration]
350 | fi->folio = folio_next(fi->folio);
| ^~~~~~~~~~
include/linux/bio.h:350:13: error: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
350 | fi->folio = folio_next(fi->folio);
| ^
In file included from include/linux/kernel.h:16,
from include/linux/list.h:9,
from include/linux/rculist.h:10,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/sparc/kernel/signal_64.c:12:
include/linux/minmax.h:20:28: error: comparison of distinct pointer types lacks a cast [-Werror]
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^~
include/linux/minmax.h:26:4: note: in expansion of macro '__typecheck'
26 | (__typecheck(x, y) && __no_side_effects(x, y))
| ^~~~~~~~~~~
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:352:16: note: in expansion of macro 'min'
352 | fi->length = min(folio_size(fi->folio), fi->_seg_count);
| ^~~
cc1: all warnings being treated as errors
--
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from arch/sparc/include/asm/tlb_64.h:5,
from arch/sparc/include/asm/tlb.h:5,
from arch/sparc/kernel/smp_64.c:49:
include/linux/bio.h: In function 'bio_first_folio':
include/linux/bio.h:338:14: error: implicit declaration of function 'page_folio'; did you mean 'page_endio'? [-Werror=implicit-function-declaration]
338 | fi->folio = page_folio(bvec->bv_page);
| ^~~~~~~~~~
| page_endio
>> include/linux/bio.h:338:12: error: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
338 | fi->folio = page_folio(bvec->bv_page);
| ^
include/linux/bio.h:340:43: error: invalid use of undefined type 'struct folio'
340 | PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
| ^~
In file included from include/linux/kernel.h:16,
from arch/sparc/kernel/smp_64.c:8:
include/linux/bio.h:342:19: error: implicit declaration of function 'folio_size' [-Werror=implicit-function-declaration]
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~~~~~~~~
include/linux/minmax.h:20:21: note: in definition of macro '__typecheck'
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:342:15: note: in expansion of macro 'min'
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from arch/sparc/include/asm/tlb_64.h:5,
from arch/sparc/include/asm/tlb.h:5,
from arch/sparc/kernel/smp_64.c:49:
include/linux/bio.h: In function 'bio_next_folio':
include/linux/bio.h:350:15: error: implicit declaration of function 'folio_next' [-Werror=implicit-function-declaration]
350 | fi->folio = folio_next(fi->folio);
| ^~~~~~~~~~
include/linux/bio.h:350:13: error: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
350 | fi->folio = folio_next(fi->folio);
| ^
In file included from include/linux/kernel.h:16,
from arch/sparc/kernel/smp_64.c:8:
include/linux/minmax.h:20:28: error: comparison of distinct pointer types lacks a cast [-Werror]
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^~
include/linux/minmax.h:26:4: note: in expansion of macro '__typecheck'
26 | (__typecheck(x, y) && __no_side_effects(x, y))
| ^~~~~~~~~~~
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:352:16: note: in expansion of macro 'min'
352 | fi->length = min(folio_size(fi->folio), fi->_seg_count);
| ^~~
cc1: all warnings being treated as errors
--
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/net/sock.h:53,
from include/linux/tcp.h:19,
from include/linux/ipv6.h:88,
from arch/sparc/kernel/sys_sparc32.c:33:
include/linux/bio.h: In function 'bio_first_folio':
include/linux/bio.h:338:14: error: implicit declaration of function 'page_folio' [-Werror=implicit-function-declaration]
338 | fi->folio = page_folio(bvec->bv_page);
| ^~~~~~~~~~
>> include/linux/bio.h:338:12: error: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
338 | fi->folio = page_folio(bvec->bv_page);
| ^
include/linux/bio.h:340:43: error: invalid use of undefined type 'struct folio'
340 | PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
| ^~
In file included from include/linux/kernel.h:16,
from arch/sparc/kernel/sys_sparc32.c:11:
include/linux/bio.h:342:19: error: implicit declaration of function 'folio_size' [-Werror=implicit-function-declaration]
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~~~~~~~~
include/linux/minmax.h:20:21: note: in definition of macro '__typecheck'
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:342:15: note: in expansion of macro 'min'
342 | fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
| ^~~
In file included from include/linux/blkdev.h:18,
from include/linux/blk-cgroup.h:23,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/net/sock.h:53,
from include/linux/tcp.h:19,
from include/linux/ipv6.h:88,
from arch/sparc/kernel/sys_sparc32.c:33:
include/linux/bio.h: In function 'bio_next_folio':
include/linux/bio.h:350:15: error: implicit declaration of function 'folio_next'; did you mean 'nla_next'? [-Werror=implicit-function-declaration]
350 | fi->folio = folio_next(fi->folio);
| ^~~~~~~~~~
| nla_next
include/linux/bio.h:350:13: error: assignment to 'struct folio *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
350 | fi->folio = folio_next(fi->folio);
| ^
In file included from include/linux/kernel.h:16,
from arch/sparc/kernel/sys_sparc32.c:11:
include/linux/minmax.h:20:28: error: comparison of distinct pointer types lacks a cast [-Werror]
20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
| ^~
include/linux/minmax.h:26:4: note: in expansion of macro '__typecheck'
26 | (__typecheck(x, y) && __no_side_effects(x, y))
| ^~~~~~~~~~~
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
36 | __builtin_choose_expr(__safe_cmp(x, y), \
| ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
45 | #define min(x, y) __careful_cmp(x, y, <)
| ^~~~~~~~~~~~~
include/linux/bio.h:352:16: note: in expansion of macro 'min'
352 | fi->length = min(folio_size(fi->folio), fi->_seg_count);
| ^~~
cc1: all warnings being treated as errors
vim +338 include/linux/bio.h
332
333 static inline
334 void bio_first_folio(struct folio_iter *fi, struct bio *bio, int i)
335 {
336 struct bio_vec *bvec = bio_first_bvec_all(bio) + i;
337
> 338 fi->folio = page_folio(bvec->bv_page);
339 fi->offset = bvec->bv_offset +
340 PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
341 fi->_seg_count = bvec->bv_len;
342 fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
343 fi->_i = i;
344 }
345
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v15 02/17] block: Add bio_for_each_folio_all()
by kernel test robot
Hi "Matthew,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.14-rc2 next-20210720]
[cannot apply to xfs-linux/for-next block/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Matthew-Wilcox-Oracle/Folio-supp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2734d6c1b1a089fb593ef6a23d4b70903526fe0c
config: x86_64-randconfig-r016-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/d611eec3f37483e1acbcc299bf47e9297...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Wilcox-Oracle/Folio-support-in-block-iomap-layers/20210720-152323
git checkout d611eec3f37483e1acbcc299bf47e929766afc8d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
In file included from include/linux/blkdev.h:18:
include/linux/bio.h:338:14: error: implicit declaration of function 'page_folio' [-Werror,-Wimplicit-function-declaration]
fi->folio = page_folio(bvec->bv_page);
^
>> include/linux/bio.h:338:12: warning: incompatible integer to pointer conversion assigning to 'struct folio *' from 'int' [-Wint-conversion]
fi->folio = page_folio(bvec->bv_page);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bio.h:340:43: error: incomplete definition of type 'struct folio'
PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
~~~~~~~~~^
include/linux/bio.h:325:9: note: forward declaration of 'struct folio'
struct folio *folio;
^
include/linux/bio.h:342:19: error: implicit declaration of function 'folio_size' [-Werror,-Wimplicit-function-declaration]
fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
^
include/linux/bio.h:350:15: error: implicit declaration of function 'folio_next' [-Werror,-Wimplicit-function-declaration]
fi->folio = folio_next(fi->folio);
^
include/linux/bio.h:350:13: warning: incompatible integer to pointer conversion assigning to 'struct folio *' from 'int' [-Wint-conversion]
fi->folio = folio_next(fi->folio);
^ ~~~~~~~~~~~~~~~~~~~~~
include/linux/bio.h:352:20: error: implicit declaration of function 'folio_size' [-Werror,-Wimplicit-function-declaration]
fi->length = min(folio_size(fi->folio), fi->_seg_count);
^
>> include/linux/bio.h:352:16: warning: comparison of distinct pointer types ('typeof (folio_size(fi->folio)) *' (aka 'int *') and 'typeof (fi->_seg_count) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types]
fi->length = min(folio_size(fi->folio), fi->_seg_count);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:45:19: note: expanded from macro 'min'
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^~~~~~~~~~~~~~~~
include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~~~~~~~
include/linux/minmax.h:20:28: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
3 warnings and 5 errors generated.
--
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
In file included from include/linux/blkdev.h:18:
include/linux/bio.h:338:14: error: implicit declaration of function 'page_folio' [-Werror,-Wimplicit-function-declaration]
fi->folio = page_folio(bvec->bv_page);
^
>> include/linux/bio.h:338:12: warning: incompatible integer to pointer conversion assigning to 'struct folio *' from 'int' [-Wint-conversion]
fi->folio = page_folio(bvec->bv_page);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bio.h:340:43: error: incomplete definition of type 'struct folio'
PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
~~~~~~~~~^
include/linux/bio.h:325:9: note: forward declaration of 'struct folio'
struct folio *folio;
^
include/linux/bio.h:342:19: error: implicit declaration of function 'folio_size' [-Werror,-Wimplicit-function-declaration]
fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
^
include/linux/bio.h:350:15: error: implicit declaration of function 'folio_next' [-Werror,-Wimplicit-function-declaration]
fi->folio = folio_next(fi->folio);
^
include/linux/bio.h:350:13: warning: incompatible integer to pointer conversion assigning to 'struct folio *' from 'int' [-Wint-conversion]
fi->folio = folio_next(fi->folio);
^ ~~~~~~~~~~~~~~~~~~~~~
include/linux/bio.h:352:20: error: implicit declaration of function 'folio_size' [-Werror,-Wimplicit-function-declaration]
fi->length = min(folio_size(fi->folio), fi->_seg_count);
^
>> include/linux/bio.h:352:16: warning: comparison of distinct pointer types ('typeof (folio_size(fi->folio)) *' (aka 'int *') and 'typeof (fi->_seg_count) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types]
fi->length = min(folio_size(fi->folio), fi->_seg_count);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:45:19: note: expanded from macro 'min'
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^~~~~~~~~~~~~~~~
include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~~~~~~~
include/linux/minmax.h:20:28: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
3 warnings and 5 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1213: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
In file included from include/linux/blkdev.h:18:
include/linux/bio.h:338:14: error: implicit declaration of function 'page_folio' [-Werror,-Wimplicit-function-declaration]
fi->folio = page_folio(bvec->bv_page);
^
>> include/linux/bio.h:338:12: warning: incompatible integer to pointer conversion assigning to 'struct folio *' from 'int' [-Wint-conversion]
fi->folio = page_folio(bvec->bv_page);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bio.h:340:43: error: incomplete definition of type 'struct folio'
PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
~~~~~~~~~^
include/linux/bio.h:325:9: note: forward declaration of 'struct folio'
struct folio *folio;
^
include/linux/bio.h:342:19: error: implicit declaration of function 'folio_size' [-Werror,-Wimplicit-function-declaration]
fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
^
include/linux/bio.h:350:15: error: implicit declaration of function 'folio_next' [-Werror,-Wimplicit-function-declaration]
fi->folio = folio_next(fi->folio);
^
include/linux/bio.h:350:13: warning: incompatible integer to pointer conversion assigning to 'struct folio *' from 'int' [-Wint-conversion]
fi->folio = folio_next(fi->folio);
^ ~~~~~~~~~~~~~~~~~~~~~
include/linux/bio.h:352:20: error: implicit declaration of function 'folio_size' [-Werror,-Wimplicit-function-declaration]
fi->length = min(folio_size(fi->folio), fi->_seg_count);
^
>> include/linux/bio.h:352:16: warning: comparison of distinct pointer types ('typeof (folio_size(fi->folio)) *' (aka 'int *') and 'typeof (fi->_seg_count) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types]
fi->length = min(folio_size(fi->folio), fi->_seg_count);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:45:19: note: expanded from macro 'min'
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^~~~~~~~~~~~~~~~
include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~~~~~~~
include/linux/minmax.h:20:28: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
3 warnings and 5 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1213: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +338 include/linux/bio.h
332
333 static inline
334 void bio_first_folio(struct folio_iter *fi, struct bio *bio, int i)
335 {
336 struct bio_vec *bvec = bio_first_bvec_all(bio) + i;
337
> 338 fi->folio = page_folio(bvec->bv_page);
339 fi->offset = bvec->bv_offset +
340 PAGE_SIZE * (bvec->bv_page - &fi->folio->page);
341 fi->_seg_count = bvec->bv_len;
342 fi->length = min(folio_size(fi->folio) - fi->offset, fi->_seg_count);
343 fi->_i = i;
344 }
345
346 static inline void bio_next_folio(struct folio_iter *fi, struct bio *bio)
347 {
348 fi->_seg_count -= fi->length;
349 if (fi->_seg_count) {
350 fi->folio = folio_next(fi->folio);
351 fi->offset = 0;
> 352 fi->length = min(folio_size(fi->folio), fi->_seg_count);
353 } else if (fi->_i + 1 < bio->bi_vcnt) {
354 bio_first_folio(fi, bio, fi->_i + 1);
355 } else {
356 fi->folio = NULL;
357 }
358 }
359
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH] arch: Move page table config macros out of `#ifndef __ASSEMBLY__` condition
by kernel test robot
Hi Wende,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on soc/for-next]
[also build test WARNING on linux/master linus/master v5.14-rc2 next-20210720]
[cannot apply to asm-generic/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Wende-Tan/arch-Move-page-table-c...
base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next
config: m68k-randconfig-m031-20210720 (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.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
# https://github.com/0day-ci/linux/commit/65ec31db75ded2f0754aa4153d9aa8bbc...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Wende-Tan/arch-Move-page-table-config-macros-out-of-ifndef-__ASSEMBLY__-condition/20210720-151850
git checkout 65ec31db75ded2f0754aa4153d9aa8bbc7ac9f96
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/iio/accel/
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 arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/spi/spi.h:15,
from drivers/iio/accel/adxl372.c:14:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
41 | #define PMD_SIZE (1UL << PMD_SHIFT)
|
In file included from arch/m68k/include/asm/pgtable_mm.h:7,
from arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/spi/spi.h:15,
from drivers/iio/accel/adxl372.c:14:
include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
12 | #define PMD_SIZE (_UL(1) << PMD_SHIFT)
|
--
In file included from arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/kallsyms.h:13,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from include/linux/i2c.h:18,
from drivers/iio/accel/kxcjk-1013.c:8:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
41 | #define PMD_SIZE (1UL << PMD_SHIFT)
|
In file included from arch/m68k/include/asm/pgtable_mm.h:7,
from arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/kallsyms.h:13,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from include/linux/i2c.h:18,
from drivers/iio/accel/kxcjk-1013.c:8:
include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
12 | #define PMD_SIZE (_UL(1) << PMD_SHIFT)
|
drivers/iio/accel/kxcjk-1013.c:321:3: warning: 'odr_start_up_times' defined but not used [-Wunused-const-variable=]
321 | } odr_start_up_times[KX_MAX_CHIPS][12] = {
| ^~~~~~~~~~~~~~~~~~
--
In file included from arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/kallsyms.h:13,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from include/linux/i2c.h:18,
from drivers/iio/accel/bmc150-accel-core.c:8:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
41 | #define PMD_SIZE (1UL << PMD_SHIFT)
|
In file included from arch/m68k/include/asm/pgtable_mm.h:7,
from arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/kallsyms.h:13,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from include/linux/i2c.h:18,
from drivers/iio/accel/bmc150-accel-core.c:8:
include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
12 | #define PMD_SIZE (_UL(1) << PMD_SHIFT)
|
drivers/iio/accel/bmc150-accel-core.c:168:3: warning: 'bmc150_accel_sample_upd_time' defined but not used [-Wunused-const-variable=]
168 | } bmc150_accel_sample_upd_time[] = { {0x08, 64},
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/kallsyms.h:13,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from include/linux/i2c.h:18,
from drivers/iio/accel/bmc150-accel-i2c.c:9:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
41 | #define PMD_SIZE (1UL << PMD_SHIFT)
|
In file included from arch/m68k/include/asm/pgtable_mm.h:7,
from arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/kallsyms.h:13,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from include/linux/i2c.h:18,
from drivers/iio/accel/bmc150-accel-i2c.c:9:
include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
12 | #define PMD_SIZE (_UL(1) << PMD_SHIFT)
|
drivers/iio/accel/bmc150-accel-i2c.c:215:36: warning: 'bmc150_accel_acpi_match' defined but not used [-Wunused-const-variable=]
215 | static const struct acpi_device_id bmc150_accel_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
--
In file included from arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/kallsyms.h:13,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from include/linux/i2c.h:18,
from drivers/iio/accel/mxc6255.c:11:
>> arch/m68k/include/asm/pgtable_mm.h:41: warning: "PMD_SIZE" redefined
41 | #define PMD_SIZE (1UL << PMD_SHIFT)
|
In file included from arch/m68k/include/asm/pgtable_mm.h:7,
from arch/m68k/include/asm/pgtable.h:5,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/kallsyms.h:13,
from include/linux/bpf.h:20,
from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from include/linux/regulator/consumer.h:35,
from include/linux/i2c.h:18,
from drivers/iio/accel/mxc6255.c:11:
include/asm-generic/pgtable-nopmd.h:12: note: this is the location of the previous definition
12 | #define PMD_SIZE (_UL(1) << PMD_SHIFT)
|
drivers/iio/accel/mxc6255.c:168:36: warning: 'mxc6255_acpi_match' defined but not used [-Wunused-const-variable=]
168 | static const struct acpi_device_id mxc6255_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~
vim +/PMD_SIZE +41 arch/m68k/include/asm/pgtable_mm.h
^1da177e4c3f41 include/asm-m68k/pgtable.h Linus Torvalds 2005-04-16 35
^1da177e4c3f41 include/asm-m68k/pgtable.h Linus Torvalds 2005-04-16 36
^1da177e4c3f41 include/asm-m68k/pgtable.h Linus Torvalds 2005-04-16 37 /* PMD_SHIFT determines the size of the area a second-level page table can map */
60e50f34b13e9e arch/m68k/include/asm/pgtable_mm.h Mike Rapoport 2019-12-04 38 #if CONFIG_PGTABLE_LEVELS == 3
ef22d8abd876e8 arch/m68k/include/asm/pgtable_mm.h Peter Zijlstra 2020-01-31 39 #define PMD_SHIFT 18
^1da177e4c3f41 include/asm-m68k/pgtable.h Linus Torvalds 2005-04-16 40 #endif
^1da177e4c3f41 include/asm-m68k/pgtable.h Linus Torvalds 2005-04-16 @41 #define PMD_SIZE (1UL << PMD_SHIFT)
^1da177e4c3f41 include/asm-m68k/pgtable.h Linus Torvalds 2005-04-16 42 #define PMD_MASK (~(PMD_SIZE-1))
^1da177e4c3f41 include/asm-m68k/pgtable.h Linus Torvalds 2005-04-16 43
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[android-common:android12-5.4 16/24] include/trace/hooks/net.h:26:1: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.4
head: bbf5a2eaba8de3602c3bc903f2477739ff89c631
commit: 48b03352a3bd46c2aec1804fd36fc78b4270e3d0 [16/24] ANDROID: GKI: net: add vendor hooks for 'struct sock' lifecycle
config: x86_64-randconfig-s021-20210720 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.4
git checkout 48b03352a3bd46c2aec1804fd36fc78b4270e3d0
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
net/core/sock.c: note: in included file:
>> include/trace/hooks/net.h:26:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/net.h:26:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:26:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
include/trace/hooks/net.h:28:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/net.h:28:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:28:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
include/trace/hooks/net.h:28:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/net.h:28:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:28:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
net/core/sock.c:1910:9: sparse: sparse: context imbalance in 'sk_clone_lock' - wrong count at exit
net/core/sock.c:1914:6: sparse: sparse: context imbalance in 'sk_free_unlock_clone' - unexpected unlock
net/core/sock.c:3003:6: sparse: sparse: context imbalance in 'lock_sock_fast' - different lock contexts for basic block
net/core/sock.c:3502:13: sparse: sparse: context imbalance in 'proto_seq_start' - wrong count at exit
net/core/sock.c:3514:13: sparse: sparse: context imbalance in 'proto_seq_stop' - wrong count at exit
vim +26 include/trace/hooks/net.h
11
12 struct packet_type;
13 struct list_head;
14 struct sk_buff;
15 struct nf_conn;
16 struct sock;
17 DECLARE_HOOK(android_vh_ptype_head,
18 TP_PROTO(const struct packet_type *pt, struct list_head *vendor_pt),
19 TP_ARGS(pt, vendor_pt));
20 DECLARE_HOOK(android_vh_kfree_skb,
21 TP_PROTO(struct sk_buff *skb), TP_ARGS(skb));
22 DECLARE_RESTRICTED_HOOK(android_rvh_nf_conn_alloc,
23 TP_PROTO(struct nf_conn *nf_conn), TP_ARGS(nf_conn), 1);
24 DECLARE_RESTRICTED_HOOK(android_rvh_nf_conn_free,
25 TP_PROTO(struct nf_conn *nf_conn), TP_ARGS(nf_conn), 1);
> 26 DECLARE_RESTRICTED_HOOK(android_rvh_sk_alloc,
27 TP_PROTO(struct sock *sock), TP_ARGS(sock), 1);
28 DECLARE_RESTRICTED_HOOK(android_rvh_sk_free,
29 TP_PROTO(struct sock *sock), TP_ARGS(sock), 1);
30
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase 212/352] drivers/irqchip/irq-msc313-pm-wakeup.c:21:25: error: 'field_mask' redeclared as different kind of symbol
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head: 651efd0e52f225e60faa8b30f9768021e2104d3c
commit: 1a416fa5ed8de74faf60eb84ede1a3e5c5cce43f [212/352] ARM: mstar: wakeup intc
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 10.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
# https://github.com/linux-chenxing/linux/commit/1a416fa5ed8de74faf60eb84ed...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase
git checkout 1a416fa5ed8de74faf60eb84ede1a3e5c5cce43f
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/irqchip/irq-msc313-pm-wakeup.c:21:25: error: 'field_mask' redeclared as different kind of symbol
21 | static struct reg_field field_mask = REG_FIELD(MSTAR_PMSLEEP_WAKEUPSOURCE, 0, 7);
| ^~~~~~~~~~
In file included from arch/arm64/include/asm/mte.h:13,
from arch/arm64/include/asm/pgtable.h:12,
from include/linux/pgtable.h:6,
from arch/arm64/include/asm/io.h:12,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from drivers/irqchip/irq-msc313-pm-wakeup.c:6:
include/linux/bitfield.h:122:28: note: previous definition of 'field_mask' was here
122 | static __always_inline u64 field_mask(u64 field)
| ^~~~~~~~~~
drivers/irqchip/irq-msc313-pm-wakeup.c: In function 'msc313_pm_wakeup_intc_of_init':
drivers/irqchip/irq-msc313-pm-wakeup.c:137:2: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' [-Wunused-result]
137 | request_irq(irq, msc313_pm_wakeup_intc_chainedhandler, IRQF_SHARED,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138 | "pmsleep", domain);
| ~~~~~~~~~~~~~~~~~~
vim +/field_mask +21 drivers/irqchip/irq-msc313-pm-wakeup.c
20
> 21 static struct reg_field field_mask = REG_FIELD(MSTAR_PMSLEEP_WAKEUPSOURCE, 0, 7);
22 static struct reg_field field_type = REG_FIELD(MSTAR_PMSLEEP_REG24, 0, 7);
23 static struct reg_field field_status = REG_FIELD(MSTAR_PMSLEEP_WAKEINT_STATUS, 0, 7);
24
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase 137/352] drivers/crypto/mstar/msc313-rsa.c:131:34: warning: passing argument 3 of 'msc313_rsa_write_memory' discards 'volatile' qualifier from pointer target type
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase
head: 651efd0e52f225e60faa8b30f9768021e2104d3c
commit: cbe9cdba7d664459a2da9c99039edc76c578fb50 [137/352] crypto: mstar: RSA
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 10.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
# https://github.com/linux-chenxing/linux/commit/cbe9cdba7d664459a2da9c9903...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase
git checkout cbe9cdba7d664459a2da9c99039edc76c578fb50
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm
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 >>):
drivers/crypto/mstar/msc313-rsa.c: In function 'msc313_rsa_irq':
drivers/crypto/mstar/msc313-rsa.c:57:21: warning: unused variable 'rsa' [-Wunused-variable]
57 | struct msc313_rsa *rsa = data;
| ^~~
drivers/crypto/mstar/msc313-rsa.c: In function 'msc313_rsa_test':
>> drivers/crypto/mstar/msc313-rsa.c:131:34: warning: passing argument 3 of 'msc313_rsa_write_memory' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
131 | msc313_rsa_write_memory(rsa, 0, test_in, ARRAY_SIZE(test_in));
| ^~~~~~~
drivers/crypto/mstar/msc313-rsa.c:61:80: note: expected 'const u8 *' {aka 'const unsigned char *'} but argument is of type 'volatile u8 *' {aka 'volatile unsigned char *'}
61 | static int msc313_rsa_write_memory(struct msc313_rsa *rsa, u16 addr, const u8 *buffer, unsigned int len)
| ~~~~~~~~~~^~~~~~
>> drivers/crypto/mstar/msc313-rsa.c:133:33: warning: passing argument 3 of 'msc313_rsa_read_memory' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
133 | msc313_rsa_read_memory(rsa, 0, test_out, ARRAY_SIZE(test_out));
| ^~~~~~~~
drivers/crypto/mstar/msc313-rsa.c:83:73: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'volatile u8 *' {aka 'volatile unsigned char *'}
83 | static int msc313_rsa_read_memory(struct msc313_rsa *rsa, u16 addr, u8 *buffer, unsigned int len)
| ~~~~^~~~~~
drivers/crypto/mstar/msc313-rsa.c: In function 'msc313_rsa_probe':
drivers/crypto/mstar/msc313-rsa.c:144:14: warning: unused variable 'irq' [-Wunused-variable]
144 | int i, ret, irq;
| ^~~
drivers/crypto/mstar/msc313-rsa.c:144:9: warning: unused variable 'ret' [-Wunused-variable]
144 | int i, ret, irq;
| ^~~
drivers/crypto/mstar/msc313-rsa.c:144:6: warning: unused variable 'i' [-Wunused-variable]
144 | int i, ret, irq;
| ^
At top level:
drivers/crypto/mstar/msc313-rsa.c:55:20: warning: 'msc313_rsa_irq' defined but not used [-Wunused-function]
55 | static irqreturn_t msc313_rsa_irq(int irq, void *data)
| ^~~~~~~~~~~~~~
vim +131 drivers/crypto/mstar/msc313-rsa.c
116
117
118 static void msc313_rsa_test(struct msc313_rsa *rsa)
119 {
120 u8 i;
121
122 regmap_field_write(rsa->reset, 1);
123 clk_prepare_enable(rsa->clk);
124 mdelay(10);
125 regmap_field_write(rsa->reset, 0);
126 mdelay(10);
127
128 for(i = 0; i < ARRAY_SIZE(test_in); i++)
129 test_in[i] = ~i;
130
> 131 msc313_rsa_write_memory(rsa, 0, test_in, ARRAY_SIZE(test_in));
132
> 133 msc313_rsa_read_memory(rsa, 0, test_out, ARRAY_SIZE(test_out));
134
135 for(i = 0; i < ARRAY_SIZE(test_in); i++)
136 printk("rsa: %d %x:%x\n", (int)i, (unsigned) test_in[i], (unsigned) test_out[i]);
137
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[hnaz-linux-mm:master 16/150] arch/nds32/include/asm/nds32.h:13:10: fatal error: nds32_intrinsic.h: No such file or directory
by kernel test robot
tree: https://github.com/hnaz/linux-mm master
head: 90b6b859af7dc2d09c05d8d89144f55fca94e80c
commit: c1af5351189e92e8d4c666f636b51c0bfe262a27 [16/150] kbuild: decouple build from userspace headers
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 10.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
# https://github.com/hnaz/linux-mm/commit/c1af5351189e92e8d4c666f636b51c0bf...
git remote add hnaz-linux-mm https://github.com/hnaz/linux-mm
git fetch --no-tags hnaz-linux-mm master
git checkout c1af5351189e92e8d4c666f636b51c0bfe262a27
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=nds32 prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the hnaz-linux-mm/master HEAD 90b6b859af7dc2d09c05d8d89144f55fca94e80c builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from arch/nds32/include/asm/irqflags.h:4,
from include/linux/irqflags.h:16,
from include/asm-generic/bitops.h:14,
from ./arch/nds32/include/generated/asm/bitops.h:1,
from include/linux/bitops.h:32,
from include/linux/log2.h:12,
from kernel/bounds.c:13:
>> arch/nds32/include/asm/nds32.h:13:10: fatal error: nds32_intrinsic.h: No such file or directory
13 | #include <nds32_intrinsic.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
--
In file included from arch/nds32/include/asm/irqflags.h:4,
from include/linux/irqflags.h:16,
from include/asm-generic/bitops.h:14,
from ./arch/nds32/include/generated/asm/bitops.h:1,
from include/linux/bitops.h:32,
from include/linux/log2.h:12,
from kernel/bounds.c:13:
>> arch/nds32/include/asm/nds32.h:13:10: fatal error: nds32_intrinsic.h: No such file or directory
13 | #include <nds32_intrinsic.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1209: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/nds32/include/asm/irqflags.h:4,
from include/linux/irqflags.h:16,
from include/asm-generic/bitops.h:14,
from ./arch/nds32/include/generated/asm/bitops.h:1,
from include/linux/bitops.h:32,
from include/linux/log2.h:12,
from kernel/bounds.c:13:
>> arch/nds32/include/asm/nds32.h:13:10: fatal error: nds32_intrinsic.h: No such file or directory
13 | #include <nds32_intrinsic.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1209: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +13 arch/nds32/include/asm/nds32.h
e1d82de681fd79 Greentime Hu 2017-10-24 9
e1d82de681fd79 Greentime Hu 2017-10-24 10 #ifndef __ASSEMBLY__
e1d82de681fd79 Greentime Hu 2017-10-24 11 #include <linux/init.h>
e1d82de681fd79 Greentime Hu 2017-10-24 12 #include <asm/barrier.h>
e1d82de681fd79 Greentime Hu 2017-10-24 @13 #include <nds32_intrinsic.h>
e1d82de681fd79 Greentime Hu 2017-10-24 14
:::::: The code at line 13 was first introduced by commit
:::::: e1d82de681fd79e65f86912c7b231d88180ac8a4 nds32: Assembly macros and definitions
:::::: TO: Greentime Hu <greentime(a)andestech.com>
:::::: CC: Greentime Hu <greentime(a)andestech.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[android-common:android-5.4 12/13] include/trace/hooks/sched.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android-5.4
head: 8f0baddfd871f77de7396c21585f8657717c5ade
commit: 5aeda5a3ccb1823eec337c21c1e56e19e16b8e94 [12/13] ANDROID: sched: add vendor hooks to handle scheduling priority
config: x86_64-randconfig-s021-20210720 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-5.4
git checkout 5aeda5a3ccb1823eec337c21c1e56e19e16b8e94
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
kernel/sched/core.c:568:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/core.c:568:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/core.c:568:9: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/core.c:2207:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/core.c:2207:17: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/core.c:2207:17: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/core.c:2385:27: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/core.c:2385:27: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/core.c:2385:27: sparse: struct task_struct *
kernel/sched/core.c:4079:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/core.c:4079:17: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/core.c:4079:17: sparse: struct task_struct *
kernel/sched/core.c:6071:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/core.c:6071:9: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/core.c:6071:9: sparse: struct task_struct *
kernel/sched/core.c: note: in included file:
>> include/trace/hooks/sched.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/sched.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:19:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
include/trace/hooks/sched.h:23:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/sched.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:23:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
include/trace/hooks/sched.h:27:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/sched.h:27:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:27:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
include/trace/hooks/sched.h:31:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/sched.h:31:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:31:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
include/trace/hooks/sched.h:35:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] <asn:4> *funcs @@
include/trace/hooks/sched.h:35:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:35:1: sparse: got struct tracepoint_func [noderef] <asn:4> *funcs
vim +19 include/trace/hooks/sched.h
> 19 DECLARE_RESTRICTED_HOOK(android_rvh_prepare_prio_fork,
20 TP_PROTO(struct task_struct *p),
21 TP_ARGS(p), 1);
22
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
kernel/sched/core.c:5190:20: warning: unused function 'sched_core_cpu_starting'
by kernel test robot
Hi Peter,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2734d6c1b1a089fb593ef6a23d4b70903526fe0c
commit: 9edeaea1bc452372718837ed2ba775811baf1ba1 sched: Core-wide rq->lock
date: 10 weeks ago
config: mips-randconfig-r006-20210720 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 87039c048c0cbc3d8cbba86187269b006bf2f373)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 9edeaea1bc452372718837ed2ba775811baf1ba1
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash kernel/sched/
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 >>):
kernel/sched/core.c:5467:35: warning: no previous prototype for function 'schedule_user'
asmlinkage __visible void __sched schedule_user(void)
^
kernel/sched/core.c:5467:22: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage __visible void __sched schedule_user(void)
^
static
kernel/sched/core.c:3080:20: warning: unused function 'rq_has_pinned_tasks'
static inline bool rq_has_pinned_tasks(struct rq
^
kernel/sched/core.c:4941:20: warning: unused function 'sched_tick_start'
static inline void sched_tick_start(int cpu) { }
^
kernel/sched/core.c:4942:20: warning: unused function 'sched_tick_stop'
static inline void sched_tick_stop(int cpu) { }
^
>> kernel/sched/core.c:5190:20: warning: unused function 'sched_core_cpu_starting'
static inline void sched_core_cpu_starting(unsigned int cpu) {}
^
fatal error: error in backend: Nested variants found in inline asm string: ' .set push
.set mips64r2
.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/atomic.h", .line = 153, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $1, $2 # atomic_fetch_add
addu $0, $1, $3
sc $0, $2
beqz $0, 1b
.set pop
move $0, $1
'
clang-13: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 13.0.0 (git://gitmirror/llvm_project 87039c048c0cbc3d8cbba86187269b006bf2f373)
Target: mipsel-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-87039c048c/bin
clang-13: note: diagnostic msg:
Makefile arch include kernel scripts source usr
vim +/sched_core_cpu_starting +5190 kernel/sched/core.c
5189
> 5190 static inline void sched_core_cpu_starting(unsigned int cpu) {}
5191
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months