* Re: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
[not found] <20230507040107.3755166-3-houtao@huaweicloud.com>
@ 2023-05-07 4:47 ` kernel test robot
2023-05-07 4:47 ` kernel test robot
` (3 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2023-05-07 4:47 UTC (permalink / raw)
To: Hou Tao; +Cc: oe-kbuild-all
Hi Hou,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on bpf/master]
[also build test WARNING on linus/master]
[cannot apply to bpf-next/master akpm-mm/mm-everything v6.3 next-20230505]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
patch link: https://lore.kernel.org/r/20230507040107.3755166-3-houtao%40huaweicloud.com
patch subject: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230507/202305071207.mrlTxnpr-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/93ea1c2e394182d3547673f69a808b8c1fa994e3
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
git checkout 93ea1c2e394182d3547673f69a808b8c1fa994e3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash mm/damon/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305071207.mrlTxnpr-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/uapi/linux/mman.h:5,
from include/linux/fs.h:49,
from include/linux/highmem.h:5,
from mm/damon/vaddr.c:11:
>> arch/alpha/include/uapi/asm/mman.h:15: warning: "MAP_FIXED" redefined
15 | #define MAP_FIXED 0x100 /* Interpret addr exactly */
|
In file included from mm/damon/vaddr.c:10:
include/uapi/asm-generic/mman-common.h:22: note: this is the location of the previous definition
22 | #define MAP_FIXED 0x10 /* Interpret addr exactly */
|
>> arch/alpha/include/uapi/asm/mman.h:16: warning: "MAP_ANONYMOUS" redefined
16 | #define MAP_ANONYMOUS 0x10 /* don't use a file */
|
include/uapi/asm-generic/mman-common.h:23: note: this is the location of the previous definition
23 | #define MAP_ANONYMOUS 0x20 /* don't use a file */
|
>> arch/alpha/include/uapi/asm/mman.h:29: warning: "MAP_POPULATE" redefined
29 | #define MAP_POPULATE 0x20000 /* populate (prefault) pagetables */
|
include/uapi/asm-generic/mman-common.h:26: note: this is the location of the previous definition
26 | #define MAP_POPULATE 0x008000 /* populate (prefault) pagetables */
|
>> arch/alpha/include/uapi/asm/mman.h:30: warning: "MAP_NONBLOCK" redefined
30 | #define MAP_NONBLOCK 0x40000 /* do not block on IO */
|
include/uapi/asm-generic/mman-common.h:27: note: this is the location of the previous definition
27 | #define MAP_NONBLOCK 0x010000 /* do not block on IO */
|
>> arch/alpha/include/uapi/asm/mman.h:31: warning: "MAP_STACK" redefined
31 | #define MAP_STACK 0x80000 /* give out an address that is best suited for process/thread stacks */
|
include/uapi/asm-generic/mman-common.h:28: note: this is the location of the previous definition
28 | #define MAP_STACK 0x020000 /* give out an address that is best suited for process/thread stacks */
|
>> arch/alpha/include/uapi/asm/mman.h:32: warning: "MAP_HUGETLB" redefined
32 | #define MAP_HUGETLB 0x100000 /* create a huge page mapping */
|
include/uapi/asm-generic/mman-common.h:29: note: this is the location of the previous definition
29 | #define MAP_HUGETLB 0x040000 /* create a huge page mapping */
|
>> arch/alpha/include/uapi/asm/mman.h:33: warning: "MAP_FIXED_NOREPLACE" redefined
33 | #define MAP_FIXED_NOREPLACE 0x200000/* MAP_FIXED which doesn't unmap underlying mapping */
|
include/uapi/asm-generic/mman-common.h:31: note: this is the location of the previous definition
31 | #define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED which doesn't unmap underlying mapping */
|
>> arch/alpha/include/uapi/asm/mman.h:36: warning: "MS_SYNC" redefined
36 | #define MS_SYNC 2 /* synchronous memory sync */
|
include/uapi/asm-generic/mman-common.h:43: note: this is the location of the previous definition
43 | #define MS_SYNC 4 /* synchronous memory sync */
|
>> arch/alpha/include/uapi/asm/mman.h:37: warning: "MS_INVALIDATE" redefined
37 | #define MS_INVALIDATE 4 /* invalidate the caches */
|
include/uapi/asm-generic/mman-common.h:42: note: this is the location of the previous definition
42 | #define MS_INVALIDATE 2 /* invalidate the caches */
|
>> arch/alpha/include/uapi/asm/mman.h:50: warning: "MADV_DONTNEED" redefined
50 | #define MADV_DONTNEED 6 /* don't need these pages */
|
include/uapi/asm-generic/mman-common.h:49: note: this is the location of the previous definition
49 | #define MADV_DONTNEED 4 /* don't need these pages */
|
vim +/MAP_FIXED +15 arch/alpha/include/uapi/asm/mman.h
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 12
746c9398f5ac2b arch/alpha/include/uapi/asm/mman.h Michael S. Tsirkin 2019-02-08 13 /* 0x01 - 0x03 are defined in linux/mman.h */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 14 #define MAP_TYPE 0x0f /* Mask for type of mapping (OSF/1 is _wrong_) */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 @15 #define MAP_FIXED 0x100 /* Interpret addr exactly */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 @16 #define MAP_ANONYMOUS 0x10 /* don't use a file */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 17
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 18 /* not used by linux, but here to make sure we don't clash with OSF/1 defines */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 19 #define _MAP_HASSEMAPHORE 0x0200
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 20 #define _MAP_INHERIT 0x0400
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 21 #define _MAP_UNALIGNED 0x0800
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 22
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 23 /* These are linux-specific */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 24 #define MAP_GROWSDOWN 0x01000 /* stack-like segment */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 25 #define MAP_DENYWRITE 0x02000 /* ETXTBSY */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 26 #define MAP_EXECUTABLE 0x04000 /* mark it as an executable */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 27 #define MAP_LOCKED 0x08000 /* lock the mapping */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 28 #define MAP_NORESERVE 0x10000 /* don't check for reservations */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 @29 #define MAP_POPULATE 0x20000 /* populate (prefault) pagetables */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 @30 #define MAP_NONBLOCK 0x40000 /* do not block on IO */
90f72aa58bbf07 arch/alpha/include/asm/mman.h Arnd Bergmann 2009-09-21 @31 #define MAP_STACK 0x80000 /* give out an address that is best suited for process/thread stacks */
90f72aa58bbf07 arch/alpha/include/asm/mman.h Arnd Bergmann 2009-09-21 @32 #define MAP_HUGETLB 0x100000 /* create a huge page mapping */
a4ff8e8620d3f4 arch/alpha/include/uapi/asm/mman.h Michal Hocko 2018-04-10 @33 #define MAP_FIXED_NOREPLACE 0x200000/* MAP_FIXED which doesn't unmap underlying mapping */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 34
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 35 #define MS_ASYNC 1 /* sync memory asynchronously */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 @36 #define MS_SYNC 2 /* synchronous memory sync */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 @37 #define MS_INVALIDATE 4 /* invalidate the caches */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 38
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 39 #define MCL_CURRENT 8192 /* lock all currently mapped pages */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 40 #define MCL_FUTURE 16384 /* lock all additions to address space */
b0f205c2a3082d arch/alpha/include/uapi/asm/mman.h Eric B Munson 2015-11-05 41 #define MCL_ONFAULT 32768 /* lock all pages that are faulted in */
b0f205c2a3082d arch/alpha/include/uapi/asm/mman.h Eric B Munson 2015-11-05 42
b0f205c2a3082d arch/alpha/include/uapi/asm/mman.h Eric B Munson 2015-11-05 43 #define MLOCK_ONFAULT 0x01 /* Lock pages in range after they are faulted in, do not prefault */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 44
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 45 #define MADV_NORMAL 0 /* no further special treatment */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 46 #define MADV_RANDOM 1 /* expect random page references */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 47 #define MADV_SEQUENTIAL 2 /* expect sequential page references */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 48 #define MADV_WILLNEED 3 /* will need these pages */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 49 #define MADV_SPACEAVAIL 5 /* ensure resources are available */
^1da177e4c3f41 include/asm-alpha/mman.h Linus Torvalds 2005-04-16 @50 #define MADV_DONTNEED 6 /* don't need these pages */
5f6164f3092832 include/asm-alpha/mman.h Michael S. Tsirkin 2006-02-15 51
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
[not found] <20230507040107.3755166-3-houtao@huaweicloud.com>
2023-05-07 4:47 ` [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator kernel test robot
@ 2023-05-07 4:47 ` kernel test robot
2023-05-07 4:48 ` kernel test robot
` (2 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2023-05-07 4:47 UTC (permalink / raw)
To: Hou Tao; +Cc: oe-kbuild-all
Hi Hou,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf/master]
[also build test ERROR on linus/master]
[cannot apply to bpf-next/master akpm-mm/mm-everything v6.3 next-20230505]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
patch link: https://lore.kernel.org/r/20230507040107.3755166-3-houtao%40huaweicloud.com
patch subject: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
config: sparc64-randconfig-r033-20230507 (https://download.01.org/0day-ci/archive/20230507/202305071217.Lv6hIeQy-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/93ea1c2e394182d3547673f69a808b8c1fa994e3
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
git checkout 93ea1c2e394182d3547673f69a808b8c1fa994e3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash lib/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305071217.Lv6hIeQy-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/uapi/linux/mman.h:5,
from include/linux/fs.h:49,
from include/linux/decompress/mm.h:80,
from lib/decompress_inflate.c:32:
arch/sparc/include/asm/mman.h: In function 'sparc_calc_vm_prot_bits':
>> arch/sparc/include/asm/mman.h:43:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
43 | return VM_SPARC_ADI;
| ^~~~~~~~~~~~
arch/sparc/include/asm/mman.h:43:24: note: each undeclared identifier is reported only once for each function it appears in
arch/sparc/include/asm/mman.h: In function 'arch_validate_flags':
arch/sparc/include/asm/mman.h:67:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
67 | if (vm_flags & VM_SPARC_ADI) {
| ^~~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:33: error: 'VM_PFNMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:45: error: 'VM_MIXEDMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:83:32: error: 'VM_MERGEABLE' undeclared (first use in this function); did you mean 'MADV_MERGEABLE'?
83 | if (vm_flags & VM_MERGEABLE)
| ^~~~~~~~~~~~
| MADV_MERGEABLE
lib/decompress_inflate.c: At top level:
lib/decompress_inflate.c:42:17: warning: no previous prototype for '__gunzip' [-Wmissing-prototypes]
42 | STATIC int INIT __gunzip(unsigned char *buf, long len,
| ^~~~~~~~
--
In file included from include/uapi/linux/mman.h:5,
from include/linux/fs.h:49,
from include/linux/decompress/mm.h:80,
from lib/decompress_unlz4.c:16:
arch/sparc/include/asm/mman.h: In function 'sparc_calc_vm_prot_bits':
>> arch/sparc/include/asm/mman.h:43:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
43 | return VM_SPARC_ADI;
| ^~~~~~~~~~~~
arch/sparc/include/asm/mman.h:43:24: note: each undeclared identifier is reported only once for each function it appears in
arch/sparc/include/asm/mman.h: In function 'arch_validate_flags':
arch/sparc/include/asm/mman.h:67:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
67 | if (vm_flags & VM_SPARC_ADI) {
| ^~~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:33: error: 'VM_PFNMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:45: error: 'VM_MIXEDMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:83:32: error: 'VM_MERGEABLE' undeclared (first use in this function); did you mean 'MADV_MERGEABLE'?
83 | if (vm_flags & VM_MERGEABLE)
| ^~~~~~~~~~~~
| MADV_MERGEABLE
--
In file included from include/uapi/linux/mman.h:5,
from include/linux/fs.h:49,
from include/linux/decompress/mm.h:80,
from lib/decompress_unxz.c:107:
arch/sparc/include/asm/mman.h: In function 'sparc_calc_vm_prot_bits':
>> arch/sparc/include/asm/mman.h:43:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
43 | return VM_SPARC_ADI;
| ^~~~~~~~~~~~
arch/sparc/include/asm/mman.h:43:24: note: each undeclared identifier is reported only once for each function it appears in
arch/sparc/include/asm/mman.h: In function 'arch_validate_flags':
arch/sparc/include/asm/mman.h:67:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
67 | if (vm_flags & VM_SPARC_ADI) {
| ^~~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:33: error: 'VM_PFNMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:45: error: 'VM_MIXEDMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:83:32: error: 'VM_MERGEABLE' undeclared (first use in this function); did you mean 'MADV_MERGEABLE'?
83 | if (vm_flags & VM_MERGEABLE)
| ^~~~~~~~~~~~
| MADV_MERGEABLE
lib/decompress_unxz.c: At top level:
lib/decompress_unxz.c:251:17: warning: no previous prototype for 'unxz' [-Wmissing-prototypes]
251 | STATIC int INIT unxz(unsigned char *in, long in_size,
| ^~~~
--
In file included from include/uapi/linux/mman.h:5,
from include/linux/fs.h:49,
from include/linux/decompress/mm.h:80,
from lib/decompress_unzstd.c:74:
arch/sparc/include/asm/mman.h: In function 'sparc_calc_vm_prot_bits':
>> arch/sparc/include/asm/mman.h:43:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
43 | return VM_SPARC_ADI;
| ^~~~~~~~~~~~
arch/sparc/include/asm/mman.h:43:24: note: each undeclared identifier is reported only once for each function it appears in
arch/sparc/include/asm/mman.h: In function 'arch_validate_flags':
arch/sparc/include/asm/mman.h:67:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
67 | if (vm_flags & VM_SPARC_ADI) {
| ^~~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:33: error: 'VM_PFNMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:45: error: 'VM_MIXEDMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:83:32: error: 'VM_MERGEABLE' undeclared (first use in this function); did you mean 'MADV_MERGEABLE'?
83 | if (vm_flags & VM_MERGEABLE)
| ^~~~~~~~~~~~
| MADV_MERGEABLE
lib/decompress_unzstd.c: At top level:
lib/decompress_unzstd.c:331:17: warning: no previous prototype for 'unzstd' [-Wmissing-prototypes]
331 | STATIC int INIT unzstd(unsigned char *buf, long len,
| ^~~~~~
--
In file included from include/uapi/linux/mman.h:5,
from include/linux/fs.h:49,
from include/linux/proc_fs.h:10,
from arch/sparc/include/asm/prom.h:18,
from include/linux/of.h:261,
from include/linux/clk-provider.h:9,
from lib/vsprintf.c:23:
arch/sparc/include/asm/mman.h: In function 'sparc_calc_vm_prot_bits':
>> arch/sparc/include/asm/mman.h:43:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
43 | return VM_SPARC_ADI;
| ^~~~~~~~~~~~
arch/sparc/include/asm/mman.h:43:24: note: each undeclared identifier is reported only once for each function it appears in
arch/sparc/include/asm/mman.h: In function 'arch_validate_flags':
arch/sparc/include/asm/mman.h:67:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
67 | if (vm_flags & VM_SPARC_ADI) {
| ^~~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:33: error: 'VM_PFNMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:45: error: 'VM_MIXEDMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:83:32: error: 'VM_MERGEABLE' undeclared (first use in this function); did you mean 'MADV_MERGEABLE'?
83 | if (vm_flags & VM_MERGEABLE)
| ^~~~~~~~~~~~
| MADV_MERGEABLE
lib/vsprintf.c: In function 'va_format':
lib/vsprintf.c:1681:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1681 | buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va);
| ^~~
--
In file included from include/uapi/linux/mman.h:5,
from include/linux/fs.h:49,
from include/linux/proc_fs.h:10,
from arch/sparc/include/asm/prom.h:18,
from include/linux/of.h:261,
from arch/sparc/include/asm/openprom.h:15,
from arch/sparc/include/asm/device.h:8,
from include/linux/device.h:33,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from lib/radix-tree.c:15:
arch/sparc/include/asm/mman.h: In function 'sparc_calc_vm_prot_bits':
>> arch/sparc/include/asm/mman.h:43:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
43 | return VM_SPARC_ADI;
| ^~~~~~~~~~~~
arch/sparc/include/asm/mman.h:43:24: note: each undeclared identifier is reported only once for each function it appears in
arch/sparc/include/asm/mman.h: In function 'arch_validate_flags':
arch/sparc/include/asm/mman.h:67:24: error: 'VM_SPARC_ADI' undeclared (first use in this function)
67 | if (vm_flags & VM_SPARC_ADI) {
| ^~~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:33: error: 'VM_PFNMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~
>> arch/sparc/include/asm/mman.h:72:45: error: 'VM_MIXEDMAP' undeclared (first use in this function)
72 | if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
| ^~~~~~~~~~~
>> arch/sparc/include/asm/mman.h:83:32: error: 'VM_MERGEABLE' undeclared (first use in this function); did you mean 'MADV_MERGEABLE'?
83 | if (vm_flags & VM_MERGEABLE)
| ^~~~~~~~~~~~
| MADV_MERGEABLE
lib/radix-tree.c: At top level:
lib/radix-tree.c:288:6: warning: no previous prototype for 'radix_tree_node_rcu_free' [-Wmissing-prototypes]
288 | void radix_tree_node_rcu_free(struct rcu_head *head)
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/VM_SPARC_ADI +43 arch/sparc/include/asm/mman.h
74a04967482faa Khalid Aziz 2018-02-23 29
74a04967482faa Khalid Aziz 2018-02-23 30 #define arch_calc_vm_prot_bits(prot, pkey) sparc_calc_vm_prot_bits(prot)
74a04967482faa Khalid Aziz 2018-02-23 31 static inline unsigned long sparc_calc_vm_prot_bits(unsigned long prot)
74a04967482faa Khalid Aziz 2018-02-23 32 {
74a04967482faa Khalid Aziz 2018-02-23 33 if (adi_capable() && (prot & PROT_ADI)) {
74a04967482faa Khalid Aziz 2018-02-23 34 struct pt_regs *regs;
74a04967482faa Khalid Aziz 2018-02-23 35
74a04967482faa Khalid Aziz 2018-02-23 36 if (!current->mm->context.adi) {
74a04967482faa Khalid Aziz 2018-02-23 37 regs = task_pt_regs(current);
74a04967482faa Khalid Aziz 2018-02-23 38 regs->tstate |= TSTATE_MCDE;
74a04967482faa Khalid Aziz 2018-02-23 39 current->mm->context.adi = true;
74a04967482faa Khalid Aziz 2018-02-23 40 on_each_cpu_mask(mm_cpumask(current->mm),
74a04967482faa Khalid Aziz 2018-02-23 41 ipi_set_tstate_mcde, current->mm, 0);
74a04967482faa Khalid Aziz 2018-02-23 42 }
74a04967482faa Khalid Aziz 2018-02-23 @43 return VM_SPARC_ADI;
74a04967482faa Khalid Aziz 2018-02-23 44 } else {
74a04967482faa Khalid Aziz 2018-02-23 45 return 0;
74a04967482faa Khalid Aziz 2018-02-23 46 }
74a04967482faa Khalid Aziz 2018-02-23 47 }
74a04967482faa Khalid Aziz 2018-02-23 48
74a04967482faa Khalid Aziz 2018-02-23 49 #define arch_validate_prot(prot, addr) sparc_validate_prot(prot, addr)
74a04967482faa Khalid Aziz 2018-02-23 50 static inline int sparc_validate_prot(unsigned long prot, unsigned long addr)
74a04967482faa Khalid Aziz 2018-02-23 51 {
74a04967482faa Khalid Aziz 2018-02-23 52 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_ADI))
74a04967482faa Khalid Aziz 2018-02-23 53 return 0;
147d8622f2a26e Khalid Aziz 2020-10-23 54 return 1;
147d8622f2a26e Khalid Aziz 2020-10-23 55 }
74a04967482faa Khalid Aziz 2018-02-23 56
147d8622f2a26e Khalid Aziz 2020-10-23 57 #define arch_validate_flags(vm_flags) arch_validate_flags(vm_flags)
147d8622f2a26e Khalid Aziz 2020-10-23 58 /* arch_validate_flags() - Ensure combination of flags is valid for a
147d8622f2a26e Khalid Aziz 2020-10-23 59 * VMA.
74a04967482faa Khalid Aziz 2018-02-23 60 */
147d8622f2a26e Khalid Aziz 2020-10-23 61 static inline bool arch_validate_flags(unsigned long vm_flags)
147d8622f2a26e Khalid Aziz 2020-10-23 62 {
147d8622f2a26e Khalid Aziz 2020-10-23 63 /* If ADI is being enabled on this VMA, check for ADI
147d8622f2a26e Khalid Aziz 2020-10-23 64 * capability on the platform and ensure VMA is suitable
147d8622f2a26e Khalid Aziz 2020-10-23 65 * for ADI
147d8622f2a26e Khalid Aziz 2020-10-23 66 */
147d8622f2a26e Khalid Aziz 2020-10-23 @67 if (vm_flags & VM_SPARC_ADI) {
147d8622f2a26e Khalid Aziz 2020-10-23 68 if (!adi_capable())
147d8622f2a26e Khalid Aziz 2020-10-23 69 return false;
147d8622f2a26e Khalid Aziz 2020-10-23 70
147d8622f2a26e Khalid Aziz 2020-10-23 71 /* ADI can not be enabled on PFN mapped pages */
147d8622f2a26e Khalid Aziz 2020-10-23 @72 if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP))
147d8622f2a26e Khalid Aziz 2020-10-23 73 return false;
74a04967482faa Khalid Aziz 2018-02-23 74
74a04967482faa Khalid Aziz 2018-02-23 75 /* Mergeable pages can become unmergeable
74a04967482faa Khalid Aziz 2018-02-23 76 * if ADI is enabled on them even if they
74a04967482faa Khalid Aziz 2018-02-23 77 * have identical data on them. This can be
74a04967482faa Khalid Aziz 2018-02-23 78 * because ADI enabled pages with identical
74a04967482faa Khalid Aziz 2018-02-23 79 * data may still not have identical ADI
74a04967482faa Khalid Aziz 2018-02-23 80 * tags on them. Disallow ADI on mergeable
74a04967482faa Khalid Aziz 2018-02-23 81 * pages.
74a04967482faa Khalid Aziz 2018-02-23 82 */
147d8622f2a26e Khalid Aziz 2020-10-23 @83 if (vm_flags & VM_MERGEABLE)
147d8622f2a26e Khalid Aziz 2020-10-23 84 return false;
74a04967482faa Khalid Aziz 2018-02-23 85 }
147d8622f2a26e Khalid Aziz 2020-10-23 86 return true;
74a04967482faa Khalid Aziz 2018-02-23 87 }
74a04967482faa Khalid Aziz 2018-02-23 88 #endif /* CONFIG_SPARC64 */
74a04967482faa Khalid Aziz 2018-02-23 89
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
[not found] <20230507040107.3755166-3-houtao@huaweicloud.com>
2023-05-07 4:47 ` [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator kernel test robot
2023-05-07 4:47 ` kernel test robot
@ 2023-05-07 4:48 ` kernel test robot
2023-05-07 4:48 ` kernel test robot
2023-05-07 5:29 ` kernel test robot
4 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2023-05-07 4:48 UTC (permalink / raw)
To: Hou Tao; +Cc: oe-kbuild-all
Hi Hou,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:
[auto build test WARNING on bpf/master]
[also build test WARNING on linus/master]
[cannot apply to bpf-next/master akpm-mm/mm-everything v6.3 next-20230505]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
patch link: https://lore.kernel.org/r/20230507040107.3755166-3-houtao%40huaweicloud.com
patch subject: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
config: i386-defconfig (https://download.01.org/0day-ci/archive/20230507/202305071210.FhEJCQaU-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/93ea1c2e394182d3547673f69a808b8c1fa994e3
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
git checkout 93ea1c2e394182d3547673f69a808b8c1fa994e3
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305071210.FhEJCQaU-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/filemap.c: In function 'filemap_cachestat':
>> mm/filemap.c:4155:30: warning: unused variable 'workingset' [-Wunused-variable]
4155 | bool workingset; /* not used */
| ^~~~~~~~~~
>> mm/filemap.c:4154:31: warning: unused variable 'shadow' [-Wunused-variable]
4154 | void *shadow = (void *)folio;
| ^~~~~~
vim +/workingset +4155 mm/filemap.c
4125
4126 /**
4127 * filemap_cachestat() - compute the page cache statistics of a mapping
4128 * @mapping: The mapping to compute the statistics for.
4129 * @first_index: The starting page cache index.
4130 * @last_index: The final page index (inclusive).
4131 * @cs: the cachestat struct to write the result to.
4132 *
4133 * This will query the page cache statistics of a mapping in the
4134 * page range of [first_index, last_index] (inclusive). The statistics
4135 * queried include: number of dirty pages, number of pages marked for
4136 * writeback, and the number of (recently) evicted pages.
4137 */
4138 void filemap_cachestat(struct address_space *mapping, pgoff_t first_index,
4139 pgoff_t last_index, struct cachestat *cs)
4140 {
4141 XA_STATE(xas, &mapping->i_pages, first_index);
4142 struct folio *folio;
4143
4144 rcu_read_lock();
4145 xas_for_each(&xas, folio, last_index) {
4146 unsigned long nr_pages;
4147 pgoff_t folio_first_index, folio_last_index;
4148
4149 if (xas_retry(&xas, folio))
4150 continue;
4151
4152 if (xa_is_value(folio)) {
4153 /* page is evicted */
> 4154 void *shadow = (void *)folio;
> 4155 bool workingset; /* not used */
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
[not found] <20230507040107.3755166-3-houtao@huaweicloud.com>
` (2 preceding siblings ...)
2023-05-07 4:48 ` kernel test robot
@ 2023-05-07 4:48 ` kernel test robot
2023-05-07 5:29 ` kernel test robot
4 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2023-05-07 4:48 UTC (permalink / raw)
To: Hou Tao; +Cc: llvm, oe-kbuild-all
Hi Hou,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf/master]
[also build test ERROR on linus/master]
[cannot apply to bpf-next/master akpm-mm/mm-everything v6.3 next-20230505]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
patch link: https://lore.kernel.org/r/20230507040107.3755166-3-houtao%40huaweicloud.com
patch subject: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
config: s390-randconfig-r044-20230507 (https://download.01.org/0day-ci/archive/20230507/202305071235.jHQfYz09-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://github.com/intel-lab-lkp/linux/commit/93ea1c2e394182d3547673f69a808b8c1fa994e3
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
git checkout 93ea1c2e394182d3547673f69a808b8c1fa994e3
# 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=s390 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash arch/s390/kvm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305071235.jHQfYz09-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/s390/kvm/gaccess.c:16:
In file included from arch/s390/kvm/kvm-s390.h:17:
In file included from include/linux/kvm_host.h:19:
In file included from include/linux/msi.h:27:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from arch/s390/kvm/gaccess.c:16:
In file included from arch/s390/kvm/kvm-s390.h:17:
In file included from include/linux/kvm_host.h:19:
In file included from include/linux/msi.h:27:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from arch/s390/kvm/gaccess.c:16:
In file included from arch/s390/kvm/kvm-s390.h:17:
In file included from include/linux/kvm_host.h:19:
In file included from include/linux/msi.h:27:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> arch/s390/kvm/gaccess.c:493:2: error: expected identifier
PROT_NONE,
^
include/uapi/asm-generic/mman-common.h:16:19: note: expanded from macro 'PROT_NONE'
#define PROT_NONE 0x0 /* page can not be accessed */
^
>> arch/s390/kvm/gaccess.c:516:8: error: duplicate case value: '0' and 'PROT_TYPE_LA' both equal '0'
case PROT_TYPE_LA:
^
arch/s390/kvm/gaccess.c:509:8: note: previous case defined here
case PROT_NONE:
^
include/uapi/asm-generic/mman-common.h:16:19: note: expanded from macro 'PROT_NONE'
#define PROT_NONE 0x0 /* page can not be accessed */
^
12 warnings and 2 errors generated.
vim +493 arch/s390/kvm/gaccess.c
664b4973537068 Alexander Yarygin 2015-03-09 485
d03193de30e6d9 David Hildenbrand 2016-05-31 486 enum prot_type {
d03193de30e6d9 David Hildenbrand 2016-05-31 487 PROT_TYPE_LA = 0,
d03193de30e6d9 David Hildenbrand 2016-05-31 488 PROT_TYPE_KEYC = 1,
d03193de30e6d9 David Hildenbrand 2016-05-31 489 PROT_TYPE_ALC = 2,
d03193de30e6d9 David Hildenbrand 2016-05-31 490 PROT_TYPE_DAT = 3,
6ae1574c2a24ee Christian Borntraeger 2017-06-07 491 PROT_TYPE_IEP = 4,
b3cefd6bf16e72 Janis Schoetterl-Glausch 2022-08-25 492 /* Dummy value for passing an initialized value when code != PGM_PROTECTION */
b3cefd6bf16e72 Janis Schoetterl-Glausch 2022-08-25 @493 PROT_NONE,
d03193de30e6d9 David Hildenbrand 2016-05-31 494 };
d03193de30e6d9 David Hildenbrand 2016-05-31 495
c783631b0bffe6 Janis Schoetterl-Glausch 2022-05-12 496 static int trans_exc_ending(struct kvm_vcpu *vcpu, int code, unsigned long gva, u8 ar,
c783631b0bffe6 Janis Schoetterl-Glausch 2022-05-12 497 enum gacc_mode mode, enum prot_type prot, bool terminate)
d03193de30e6d9 David Hildenbrand 2016-05-31 498 {
d03193de30e6d9 David Hildenbrand 2016-05-31 499 struct kvm_s390_pgm_info *pgm = &vcpu->arch.pgm;
d03193de30e6d9 David Hildenbrand 2016-05-31 500 struct trans_exc_code_bits *tec;
d03193de30e6d9 David Hildenbrand 2016-05-31 501
d03193de30e6d9 David Hildenbrand 2016-05-31 502 memset(pgm, 0, sizeof(*pgm));
d03193de30e6d9 David Hildenbrand 2016-05-31 503 pgm->code = code;
d03193de30e6d9 David Hildenbrand 2016-05-31 504 tec = (struct trans_exc_code_bits *)&pgm->trans_exc_code;
d03193de30e6d9 David Hildenbrand 2016-05-31 505
d03193de30e6d9 David Hildenbrand 2016-05-31 506 switch (code) {
c14b88d76624e0 Janosch Frank 2016-07-29 507 case PGM_PROTECTION:
c14b88d76624e0 Janosch Frank 2016-07-29 508 switch (prot) {
b3cefd6bf16e72 Janis Schoetterl-Glausch 2022-08-25 509 case PROT_NONE:
b3cefd6bf16e72 Janis Schoetterl-Glausch 2022-08-25 510 /* We should never get here, acts like termination */
b3cefd6bf16e72 Janis Schoetterl-Glausch 2022-08-25 511 WARN_ON_ONCE(1);
b3cefd6bf16e72 Janis Schoetterl-Glausch 2022-08-25 512 break;
6ae1574c2a24ee Christian Borntraeger 2017-06-07 513 case PROT_TYPE_IEP:
6ae1574c2a24ee Christian Borntraeger 2017-06-07 514 tec->b61 = 1;
3b684a420bd8a2 Joe Perches 2020-03-10 515 fallthrough;
a679c547d19ded Christian Borntraeger 2016-12-15 @516 case PROT_TYPE_LA:
a679c547d19ded Christian Borntraeger 2016-12-15 517 tec->b56 = 1;
a679c547d19ded Christian Borntraeger 2016-12-15 518 break;
a679c547d19ded Christian Borntraeger 2016-12-15 519 case PROT_TYPE_KEYC:
a679c547d19ded Christian Borntraeger 2016-12-15 520 tec->b60 = 1;
a679c547d19ded Christian Borntraeger 2016-12-15 521 break;
c14b88d76624e0 Janosch Frank 2016-07-29 522 case PROT_TYPE_ALC:
c14b88d76624e0 Janosch Frank 2016-07-29 523 tec->b60 = 1;
3b684a420bd8a2 Joe Perches 2020-03-10 524 fallthrough;
c14b88d76624e0 Janosch Frank 2016-07-29 525 case PROT_TYPE_DAT:
c14b88d76624e0 Janosch Frank 2016-07-29 526 tec->b61 = 1;
c14b88d76624e0 Janosch Frank 2016-07-29 527 break;
c14b88d76624e0 Janosch Frank 2016-07-29 528 }
c783631b0bffe6 Janis Schoetterl-Glausch 2022-05-12 529 if (terminate) {
c783631b0bffe6 Janis Schoetterl-Glausch 2022-05-12 530 tec->b56 = 0;
c783631b0bffe6 Janis Schoetterl-Glausch 2022-05-12 531 tec->b60 = 0;
c783631b0bffe6 Janis Schoetterl-Glausch 2022-05-12 532 tec->b61 = 0;
c783631b0bffe6 Janis Schoetterl-Glausch 2022-05-12 533 }
3b684a420bd8a2 Joe Perches 2020-03-10 534 fallthrough;
d03193de30e6d9 David Hildenbrand 2016-05-31 535 case PGM_ASCE_TYPE:
d03193de30e6d9 David Hildenbrand 2016-05-31 536 case PGM_PAGE_TRANSLATION:
d03193de30e6d9 David Hildenbrand 2016-05-31 537 case PGM_REGION_FIRST_TRANS:
d03193de30e6d9 David Hildenbrand 2016-05-31 538 case PGM_REGION_SECOND_TRANS:
d03193de30e6d9 David Hildenbrand 2016-05-31 539 case PGM_REGION_THIRD_TRANS:
d03193de30e6d9 David Hildenbrand 2016-05-31 540 case PGM_SEGMENT_TRANSLATION:
d03193de30e6d9 David Hildenbrand 2016-05-31 541 /*
d03193de30e6d9 David Hildenbrand 2016-05-31 542 * op_access_id only applies to MOVE_PAGE -> set bit 61
d03193de30e6d9 David Hildenbrand 2016-05-31 543 * exc_access_id has to be set to 0 for some instructions. Both
c14b88d76624e0 Janosch Frank 2016-07-29 544 * cases have to be handled by the caller.
d03193de30e6d9 David Hildenbrand 2016-05-31 545 */
d03193de30e6d9 David Hildenbrand 2016-05-31 546 tec->addr = gva >> PAGE_SHIFT;
d03193de30e6d9 David Hildenbrand 2016-05-31 547 tec->fsi = mode == GACC_STORE ? FSI_STORE : FSI_FETCH;
d03193de30e6d9 David Hildenbrand 2016-05-31 548 tec->as = psw_bits(vcpu->arch.sie_block->gpsw).as;
3b684a420bd8a2 Joe Perches 2020-03-10 549 fallthrough;
d03193de30e6d9 David Hildenbrand 2016-05-31 550 case PGM_ALEN_TRANSLATION:
d03193de30e6d9 David Hildenbrand 2016-05-31 551 case PGM_ALE_SEQUENCE:
d03193de30e6d9 David Hildenbrand 2016-05-31 552 case PGM_ASTE_VALIDITY:
d03193de30e6d9 David Hildenbrand 2016-05-31 553 case PGM_ASTE_SEQUENCE:
d03193de30e6d9 David Hildenbrand 2016-05-31 554 case PGM_EXTENDED_AUTHORITY:
c14b88d76624e0 Janosch Frank 2016-07-29 555 /*
c14b88d76624e0 Janosch Frank 2016-07-29 556 * We can always store exc_access_id, as it is
c14b88d76624e0 Janosch Frank 2016-07-29 557 * undefined for non-ar cases. It is undefined for
c14b88d76624e0 Janosch Frank 2016-07-29 558 * most DAT protection exceptions.
c14b88d76624e0 Janosch Frank 2016-07-29 559 */
d03193de30e6d9 David Hildenbrand 2016-05-31 560 pgm->exc_access_id = ar;
d03193de30e6d9 David Hildenbrand 2016-05-31 561 break;
d03193de30e6d9 David Hildenbrand 2016-05-31 562 }
d03193de30e6d9 David Hildenbrand 2016-05-31 563 return code;
d03193de30e6d9 David Hildenbrand 2016-05-31 564 }
d03193de30e6d9 David Hildenbrand 2016-05-31 565
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
[not found] <20230507040107.3755166-3-houtao@huaweicloud.com>
` (3 preceding siblings ...)
2023-05-07 4:48 ` kernel test robot
@ 2023-05-07 5:29 ` kernel test robot
4 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2023-05-07 5:29 UTC (permalink / raw)
To: Hou Tao; +Cc: oe-kbuild-all
Hi Hou,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on bpf/master]
[also build test ERROR on linus/master]
[cannot apply to bpf-next/master akpm-mm/mm-everything v6.3 next-20230505]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
patch link: https://lore.kernel.org/r/20230507040107.3755166-3-houtao%40huaweicloud.com
patch subject: [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator
config: s390-defconfig (https://download.01.org/0day-ci/archive/20230507/202305071347.6YCIthgI-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/93ea1c2e394182d3547673f69a808b8c1fa994e3
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Hou-Tao/bpf-Introduce-bpf-iterator-for-file-system-inode/20230507-113114
git checkout 93ea1c2e394182d3547673f69a808b8c1fa994e3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash arch/s390/kvm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305071347.6YCIthgI-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from include/uapi/asm-generic/mman.h:5,
from ./arch/s390/include/generated/uapi/asm/mman.h:1,
from include/uapi/linux/mman.h:5,
from include/linux/fs.h:49,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:855,
from include/linux/kvm_host.h:16,
from arch/s390/kvm/kvm-s390.h:17,
from arch/s390/kvm/gaccess.c:16:
>> include/uapi/asm-generic/mman-common.h:16:25: error: expected identifier before numeric constant
16 | #define PROT_NONE 0x0 /* page can not be accessed */
| ^~~
arch/s390/kvm/gaccess.c:493:9: note: in expansion of macro 'PROT_NONE'
493 | PROT_NONE,
| ^~~~~~~~~
arch/s390/kvm/gaccess.c: In function 'trans_exc_ending':
>> arch/s390/kvm/gaccess.c:516:17: error: duplicate case value
516 | case PROT_TYPE_LA:
| ^~~~
arch/s390/kvm/gaccess.c:509:17: note: previously used here
509 | case PROT_NONE:
| ^~~~
In file included from include/linux/compiler_types.h:80,
from <command-line>:
>> include/linux/compiler_attributes.h:208:41: warning: attribute 'fallthrough' not preceding a case label or default label
208 | # define fallthrough __attribute__((__fallthrough__))
| ^~~~~~~~~~~~~
arch/s390/kvm/gaccess.c:515:25: note: in expansion of macro 'fallthrough'
515 | fallthrough;
| ^~~~~~~~~~~
vim +16 include/uapi/asm-generic/mman-common.h
5f6164f3092832e include/asm-generic/mman.h Michael S. Tsirkin 2006-02-15 9
5f6164f3092832e include/asm-generic/mman.h Michael S. Tsirkin 2006-02-15 10 #define PROT_READ 0x1 /* page can be read */
5f6164f3092832e include/asm-generic/mman.h Michael S. Tsirkin 2006-02-15 11 #define PROT_WRITE 0x2 /* page can be written */
5f6164f3092832e include/asm-generic/mman.h Michael S. Tsirkin 2006-02-15 12 #define PROT_EXEC 0x4 /* page can be executed */
5f6164f3092832e include/asm-generic/mman.h Michael S. Tsirkin 2006-02-15 13 #define PROT_SEM 0x8 /* page may be used for atomic ops */
d41938d2cbee926 include/uapi/asm-generic/mman-common.h Dave Martin 2019-12-11 14 /* 0x10 reserved for arch-specific use */
d41938d2cbee926 include/uapi/asm-generic/mman-common.h Dave Martin 2019-12-11 15 /* 0x20 reserved for arch-specific use */
5f6164f3092832e include/asm-generic/mman.h Michael S. Tsirkin 2006-02-15 @16 #define PROT_NONE 0x0 /* page can not be accessed */
5f6164f3092832e include/asm-generic/mman.h Michael S. Tsirkin 2006-02-15 17 #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */
5f6164f3092832e include/asm-generic/mman.h Michael S. Tsirkin 2006-02-15 18 #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */
5f6164f3092832e include/asm-generic/mman.h Michael S. Tsirkin 2006-02-15 19
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-05-07 5:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20230507040107.3755166-3-houtao@huaweicloud.com>
2023-05-07 4:47 ` [RFC PATCH bpf-next 2/4] bpf: Add three kfunc helpers for bpf fs inode iterator kernel test robot
2023-05-07 4:47 ` kernel test robot
2023-05-07 4:48 ` kernel test robot
2023-05-07 4:48 ` kernel test robot
2023-05-07 5:29 ` kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).