arch/arm64/kvm/hyp/vhe/switch.c:217:17: sparse: sparse: symbol 'hyp_panic' was not declared. Should it be static?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 315d99318179b9cd5077ccc9f7f26a164c9fa998
commit: f79e616f27ab6cd74deb0995a8eead3d1c9d65af KVM: arm64: Use BUG and BUG_ON in nVHE hyp
date: 6 weeks ago
config: arm64-randconfig-s032-20210513 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# 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 f79e616f27ab6cd74deb0995a8eead3d1c9d65af
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=arm64
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 >>)
--
vim +/hyp_panic +217 arch/arm64/kvm/hyp/vhe/switch.c
09cf57eba30424 David Brazdil 2020-06-25 214 }
09cf57eba30424 David Brazdil 2020-06-25 215 NOKPROBE_SYMBOL(__hyp_call_panic);
09cf57eba30424 David Brazdil 2020-06-25 216
6a0259ed29bba8 Andrew Scull 2020-09-15 @217 void __noreturn hyp_panic(void)
09cf57eba30424 David Brazdil 2020-06-25 218 {
09cf57eba30424 David Brazdil 2020-06-25 219 u64 spsr = read_sysreg_el2(SYS_SPSR);
09cf57eba30424 David Brazdil 2020-06-25 220 u64 elr = read_sysreg_el2(SYS_ELR);
96d389ca10110d Rob Herring 2020-10-28 221 u64 par = read_sysreg_par();
09cf57eba30424 David Brazdil 2020-06-25 222
6a0259ed29bba8 Andrew Scull 2020-09-15 223 __hyp_call_panic(spsr, elr, par);
09cf57eba30424 David Brazdil 2020-06-25 224 unreachable();
:::::: The code at line 217 was first introduced by commit
:::::: 6a0259ed29bba83653a36fabcdf6b06aecd78596 KVM: arm64: Remove hyp_panic arguments
:::::: TO: Andrew Scull <ascull(a)google.com>
:::::: CC: Marc Zyngier <maz(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[djwong-xfs:quotaoff-cleanups-5.14 9/13] fs/xfs/xfs_icache.c:894:1: sparse: sparse: symbol 'xfs_inode_walk' was not declared. Should it be static?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git quotaoff-cleanups-5.14
head: a1f5d2033e4e314fb8a52a151dd6e1f389f4bc4b
commit: 22506fb74c2f1170af9344fc7a84048185e19aca [9/13] xfs: move the quotaoff dqrele inode walk into xfs_icache.c
config: i386-randconfig-s002-20210513 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs quotaoff-cleanups-5.14
git checkout 22506fb74c2f1170af9344fc7a84048185e19aca
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
iwyu warnings: (new ones prefixed by >>)
vim +/xfs_inode_walk +894 fs/xfs/xfs_icache.c
5662d38ccdbd9e Darrick J. Wong 2020-05-21 888
5662d38ccdbd9e Darrick J. Wong 2020-05-21 889 /*
5662d38ccdbd9e Darrick J. Wong 2020-05-21 890 * Call the @execute function on all incore inodes matching the radix tree
5662d38ccdbd9e Darrick J. Wong 2020-05-21 891 * @tag.
5662d38ccdbd9e Darrick J. Wong 2020-05-21 892 */
5662d38ccdbd9e Darrick J. Wong 2020-05-21 893 int
042f65f4a79c81 Darrick J. Wong 2020-05-21 @894 xfs_inode_walk(
5662d38ccdbd9e Darrick J. Wong 2020-05-21 895 struct xfs_mount *mp,
5662d38ccdbd9e Darrick J. Wong 2020-05-21 896 int iter_flags,
5662d38ccdbd9e Darrick J. Wong 2020-05-21 897 int (*execute)(struct xfs_inode *ip, void *args),
5662d38ccdbd9e Darrick J. Wong 2020-05-21 898 void *args,
5662d38ccdbd9e Darrick J. Wong 2020-05-21 899 int tag)
5662d38ccdbd9e Darrick J. Wong 2020-05-21 900 {
5662d38ccdbd9e Darrick J. Wong 2020-05-21 901 struct xfs_perag *pag;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 902 int error = 0;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 903 int last_error = 0;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 904 xfs_agnumber_t ag;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 905
5662d38ccdbd9e Darrick J. Wong 2020-05-21 906 ag = 0;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 907 while ((pag = xfs_inode_walk_get_perag(mp, ag, tag))) {
5662d38ccdbd9e Darrick J. Wong 2020-05-21 908 ag = pag->pag_agno + 1;
964176bd32da98 Darrick J. Wong 2020-05-21 909 error = xfs_inode_walk_ag(pag, iter_flags, execute, args, tag);
5662d38ccdbd9e Darrick J. Wong 2020-05-21 910 xfs_perag_put(pag);
5662d38ccdbd9e Darrick J. Wong 2020-05-21 911 if (error) {
5662d38ccdbd9e Darrick J. Wong 2020-05-21 912 last_error = error;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 913 if (error == -EFSCORRUPTED)
5662d38ccdbd9e Darrick J. Wong 2020-05-21 914 break;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 915 }
5662d38ccdbd9e Darrick J. Wong 2020-05-21 916 }
5662d38ccdbd9e Darrick J. Wong 2020-05-21 917 return last_error;
5662d38ccdbd9e Darrick J. Wong 2020-05-21 918 }
5662d38ccdbd9e Darrick J. Wong 2020-05-21 919
:::::: The code at line 894 was first introduced by commit
:::::: 042f65f4a79c819d74309c2607959fccacc4094a xfs: straighten out all the naming around incore inode tree walks
:::::: TO: Darrick J. Wong <darrick.wong(a)oracle.com>
:::::: CC: Darrick J. Wong <darrick.wong(a)oracle.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[mel:mm-pcpburst-v1r12 15/16] include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git mm-pcpburst-v1r12
head: 58035b35a7fe9a471d66815930422839ce5595d4
commit: c03274dedcdbc9afe312ed5925d7c32863525948 [15/16] mm/page_alloc: Allow high-order pages to be stored on the per-cpu lists
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git/commit/?id=...
git remote add mel https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git
git fetch --no-tags mel mm-pcpburst-v1r12
git checkout c03274dedcdbc9afe312ed5925d7c32863525948
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
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/build_bug.h:5,
from include/linux/bits.h:22,
from include/linux/ioport.h:13,
from include/linux/acpi.h:12,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/linux/mmzone.h: In function 'order_to_pindex':
>> include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function)
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/mmdebug.h:18:25: note: in expansion of macro 'BUG_ON'
18 | #define VM_BUG_ON(cond) BUG_ON(cond)
| ^~~~~~
include/linux/mmzone.h:355:3: note: in expansion of macro 'VM_BUG_ON'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~
include/linux/mmzone.h:355:22: note: in expansion of macro 'pageblock_order'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~~~~~~~
include/linux/pageblock-flags.h:41:26: note: each undeclared identifier is reported only once for each function it appears in
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/mmdebug.h:18:25: note: in expansion of macro 'BUG_ON'
18 | #define VM_BUG_ON(cond) BUG_ON(cond)
| ^~~~~~
include/linux/mmzone.h:355:3: note: in expansion of macro 'VM_BUG_ON'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~
include/linux/mmzone.h:355:22: note: in expansion of macro 'pageblock_order'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~~~~~~~
In file included from include/linux/mmzone.h:18,
from include/linux/gfp.h:6,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:19,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/linux/mmzone.h: In function 'pindex_to_order':
>> include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function)
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/mmzone.h:371:11: note: in expansion of macro 'pageblock_order'
371 | order = pageblock_order;
| ^~~~~~~~~~~~~~~
include/linux/mmzone.h: In function 'pcp_allowed_order':
>> include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function)
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/mmzone.h:386:15: note: in expansion of macro 'pageblock_order'
386 | if (order == pageblock_order)
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from include/linux/ioport.h:13,
from include/linux/acpi.h:12,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/linux/mmzone.h: In function 'order_to_pindex':
>> include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function)
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/mmdebug.h:18:25: note: in expansion of macro 'BUG_ON'
18 | #define VM_BUG_ON(cond) BUG_ON(cond)
| ^~~~~~
include/linux/mmzone.h:355:3: note: in expansion of macro 'VM_BUG_ON'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~
include/linux/mmzone.h:355:22: note: in expansion of macro 'pageblock_order'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~~~~~~~
include/linux/pageblock-flags.h:41:26: note: each undeclared identifier is reported only once for each function it appears in
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/mmdebug.h:18:25: note: in expansion of macro 'BUG_ON'
18 | #define VM_BUG_ON(cond) BUG_ON(cond)
| ^~~~~~
include/linux/mmzone.h:355:3: note: in expansion of macro 'VM_BUG_ON'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~
include/linux/mmzone.h:355:22: note: in expansion of macro 'pageblock_order'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~~~~~~~
In file included from include/linux/mmzone.h:18,
from include/linux/gfp.h:6,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:19,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/linux/mmzone.h: In function 'pindex_to_order':
>> include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function)
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/mmzone.h:371:11: note: in expansion of macro 'pageblock_order'
371 | order = pageblock_order;
| ^~~~~~~~~~~~~~~
include/linux/mmzone.h: In function 'pcp_allowed_order':
>> include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function)
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/mmzone.h:386:15: note: in expansion of macro 'pageblock_order'
386 | if (order == pageblock_order)
| ^~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: arch/arm64/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from include/linux/ioport.h:13,
from include/linux/acpi.h:12,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/linux/mmzone.h: In function 'order_to_pindex':
>> include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function)
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/mmdebug.h:18:25: note: in expansion of macro 'BUG_ON'
18 | #define VM_BUG_ON(cond) BUG_ON(cond)
| ^~~~~~
include/linux/mmzone.h:355:3: note: in expansion of macro 'VM_BUG_ON'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~
include/linux/mmzone.h:355:22: note: in expansion of macro 'pageblock_order'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~~~~~~~
include/linux/pageblock-flags.h:41:26: note: each undeclared identifier is reported only once for each function it appears in
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/mmdebug.h:18:25: note: in expansion of macro 'BUG_ON'
18 | #define VM_BUG_ON(cond) BUG_ON(cond)
| ^~~~~~
include/linux/mmzone.h:355:3: note: in expansion of macro 'VM_BUG_ON'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~
include/linux/mmzone.h:355:22: note: in expansion of macro 'pageblock_order'
355 | VM_BUG_ON(order != pageblock_order);
| ^~~~~~~~~~~~~~~
In file included from include/linux/mmzone.h:18,
from include/linux/gfp.h:6,
from include/linux/xarray.h:14,
from include/linux/radix-tree.h:19,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/acpi/apei.h:9,
from include/acpi/ghes.h:5,
from include/linux/arm_sdei.h:8,
from arch/arm64/kernel/asm-offsets.c:10:
include/linux/mmzone.h: In function 'pindex_to_order':
>> include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function)
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/mmzone.h:371:11: note: in expansion of macro 'pageblock_order'
371 | order = pageblock_order;
| ^~~~~~~~~~~~~~~
include/linux/mmzone.h: In function 'pcp_allowed_order':
>> include/linux/pageblock-flags.h:41:26: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in this function)
41 | #define pageblock_order HUGETLB_PAGE_ORDER
| ^~~~~~~~~~~~~~~~~~
include/linux/mmzone.h:386:15: note: in expansion of macro 'pageblock_order'
386 | if (order == pageblock_order)
| ^~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:117: arch/arm64/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1227: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/HUGETLB_PAGE_ORDER +41 include/linux/pageblock-flags.h
d9c2340052278d Mel Gorman 2007-10-16 39
d9c2340052278d Mel Gorman 2007-10-16 40 /* Huge pages are a constant size */
d9c2340052278d Mel Gorman 2007-10-16 @41 #define pageblock_order HUGETLB_PAGE_ORDER
d9c2340052278d Mel Gorman 2007-10-16 42
:::::: The code at line 41 was first introduced by commit
:::::: d9c2340052278d8eb2ffb16b0484f8f794def4de Do not depend on MAX_ORDER when grouping pages by mobility
:::::: TO: Mel Gorman <mel(a)csn.ul.ie>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
arch/arm64/kvm/hyp/nvhe/setup.c:19:27: sparse: sparse: symbol 'pkvm_pgtable_mm_ops' was not declared. Should it be static?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 315d99318179b9cd5077ccc9f7f26a164c9fa998
commit: f320bc742bc23c1d43567712fe2814bf04b19ebc KVM: arm64: Prepare the creation of s1 mappings at EL2
date: 8 weeks ago
config: arm64-randconfig-s032-20210513 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# 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 f320bc742bc23c1d43567712fe2814bf04b19ebc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=arm64
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 >>)
>> arch/arm64/kvm/hyp/nvhe/setup.c:19:27: sparse: sparse: symbol 'pkvm_pgtable_mm_ops' was not declared. Should it be static?
vim +/pkvm_pgtable_mm_ops +19 arch/arm64/kvm/hyp/nvhe/setup.c
18
> 19 struct hyp_pool hpool;
> 20 struct kvm_pgtable_mm_ops pkvm_pgtable_mm_ops;
21 unsigned long hyp_nr_cpus;
22
23 #define hyp_percpu_size ((unsigned long)__per_cpu_end - \
24 (unsigned long)__per_cpu_start)
25
26 static void *vmemmap_base;
27 static void *hyp_pgt_base;
28 static void *host_s2_mem_pgt_base;
29 static void *host_s2_dev_pgt_base;
30
31 static int divide_memory_pool(void *virt, unsigned long size)
32 {
33 unsigned long vstart, vend, nr_pages;
34
35 hyp_early_alloc_init(virt, size);
36
37 hyp_vmemmap_range(__hyp_pa(virt), size, &vstart, &vend);
38 nr_pages = (vend - vstart) >> PAGE_SHIFT;
39 vmemmap_base = hyp_early_alloc_contig(nr_pages);
40 if (!vmemmap_base)
41 return -ENOMEM;
42
43 nr_pages = hyp_s1_pgtable_pages();
44 hyp_pgt_base = hyp_early_alloc_contig(nr_pages);
45 if (!hyp_pgt_base)
46 return -ENOMEM;
47
48 nr_pages = host_s2_mem_pgtable_pages();
49 host_s2_mem_pgt_base = hyp_early_alloc_contig(nr_pages);
50 if (!host_s2_mem_pgt_base)
51 return -ENOMEM;
52
53 nr_pages = host_s2_dev_pgtable_pages();
54 host_s2_dev_pgt_base = hyp_early_alloc_contig(nr_pages);
55 if (!host_s2_dev_pgt_base)
56 return -ENOMEM;
57
58 return 0;
59 }
60
61 static int recreate_hyp_mappings(phys_addr_t phys, unsigned long size,
62 unsigned long *per_cpu_base,
63 u32 hyp_va_bits)
64 {
65 void *start, *end, *virt = hyp_phys_to_virt(phys);
66 unsigned long pgt_size = hyp_s1_pgtable_pages() << PAGE_SHIFT;
67 int ret, i;
68
69 /* Recreate the hyp page-table using the early page allocator */
70 hyp_early_alloc_init(hyp_pgt_base, pgt_size);
71 ret = kvm_pgtable_hyp_init(&pkvm_pgtable, hyp_va_bits,
72 &hyp_early_alloc_mm_ops);
73 if (ret)
74 return ret;
75
76 ret = hyp_create_idmap(hyp_va_bits);
77 if (ret)
78 return ret;
79
80 ret = hyp_map_vectors();
81 if (ret)
82 return ret;
83
84 ret = hyp_back_vmemmap(phys, size, hyp_virt_to_phys(vmemmap_base));
85 if (ret)
86 return ret;
87
88 ret = pkvm_create_mappings(__hyp_text_start, __hyp_text_end, PAGE_HYP_EXEC);
89 if (ret)
90 return ret;
91
92 ret = pkvm_create_mappings(__start_rodata, __end_rodata, PAGE_HYP_RO);
93 if (ret)
94 return ret;
95
96 ret = pkvm_create_mappings(__hyp_rodata_start, __hyp_rodata_end, PAGE_HYP_RO);
97 if (ret)
98 return ret;
99
100 ret = pkvm_create_mappings(__hyp_bss_start, __hyp_bss_end, PAGE_HYP);
101 if (ret)
102 return ret;
103
104 ret = pkvm_create_mappings(__hyp_bss_end, __bss_stop, PAGE_HYP_RO);
105 if (ret)
106 return ret;
107
108 ret = pkvm_create_mappings(virt, virt + size, PAGE_HYP);
109 if (ret)
110 return ret;
111
112 for (i = 0; i < hyp_nr_cpus; i++) {
113 start = (void *)kern_hyp_va(per_cpu_base[i]);
114 end = start + PAGE_ALIGN(hyp_percpu_size);
115 ret = pkvm_create_mappings(start, end, PAGE_HYP);
116 if (ret)
117 return ret;
118
119 end = (void *)per_cpu_ptr(&kvm_init_params, i)->stack_hyp_va;
120 start = end - PAGE_SIZE;
121 ret = pkvm_create_mappings(start, end, PAGE_HYP);
122 if (ret)
123 return ret;
124 }
125
126 return 0;
127 }
128
129 static void update_nvhe_init_params(void)
130 {
131 struct kvm_nvhe_init_params *params;
132 unsigned long i;
> 133
134 for (i = 0; i < hyp_nr_cpus; i++) {
135 params = per_cpu_ptr(&kvm_init_params, i);
136 params->pgd_pa = __hyp_pa(pkvm_pgtable.pgd);
137 __flush_dcache_area(params, sizeof(*params));
138 }
139 }
140
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[xlnx:xlnx_rebase_v5.4 785/1757] include/soc/xilinx/xlnx_vcu.h:15:1: error: unknown type name 'u32'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: f09edce8c39b74223461bf2175649535ebe8b213
commit: 27d1915e73e5bd983ebcc6d6ae4f89e3697956b2 [785/1757] soc: xilinx: vcu: Add exported functions
config: um-allmodconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/Xilinx/linux-xlnx/commit/27d1915e73e5bd983ebcc6d6ae4f8...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 27d1915e73e5bd983ebcc6d6ae4f89e3697956b2
# save the attached .config to linux build tree
make W=1 W=1 ARCH=um
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 >>):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from <command-line>:
>> include/soc/xilinx/xlnx_vcu.h:15:1: error: unknown type name 'u32'
15 | u32 xvcu_get_color_depth(struct xvcu_device *xvcu);
| ^~~
include/soc/xilinx/xlnx_vcu.h:16:1: error: unknown type name 'u32'
16 | u32 xvcu_get_memory_depth(struct xvcu_device *xvcu);
| ^~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for UIO_DMEM_GENIRQ
Depends on UIO && HAS_DMA
Selected by
- UIO_XILINX_AI_ENGINE && UIO
vim +/u32 +15 include/soc/xilinx/xlnx_vcu.h
14
> 15 u32 xvcu_get_color_depth(struct xvcu_device *xvcu);
16 u32 xvcu_get_memory_depth(struct xvcu_device *xvcu);
17
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-next:master 1888/2633] kernel/rcu/refscale.c:479:3: warning: variable 'x' is uninitialized when used here
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec85c95b0c90a17413901b018e8ade7b9eae7cad
commit: 4b46fcb7f1a6a202e3f77ce377079b4243d1be6f [1888/2633] refscale: Add measurement of clock readout
config: riscv-randconfig-r022-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 4b46fcb7f1a6a202e3f77ce377079b4243d1be6f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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/rcu/refscale.c:479:3: warning: variable 'x' is uninitialized when used here [-Wuninitialized]
x += ktime_get_real_fast_ns();
^
kernel/rcu/refscale.c:474:7: note: initialize the variable 'x' to silence this warning
u64 x;
^
= 0
kernel/rcu/refscale.c:492:3: warning: variable 'x' is uninitialized when used here [-Wuninitialized]
x += ktime_get_real_fast_ns();
^
kernel/rcu/refscale.c:487:7: note: initialize the variable 'x' to silence this warning
u64 x;
^
= 0
2 warnings generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/x +479 kernel/rcu/refscale.c
471
472 static void ref_clock_section(const int nloops)
473 {
474 u64 x;
475 int i;
476
477 preempt_disable();
478 for (i = nloops; i >= 0; i--) {
> 479 x += ktime_get_real_fast_ns();
480 }
481 preempt_enable();
482 stopopts = x;
483 }
484
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[arm-platforms:irq/domain_cleanup 17/17] ld.lld: error: duplicate symbol: generic_handle_domain_irq
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head: 5a65598a27f5f18b56e0f471925ccfa02e56ca84
commit: 5a65598a27f5f18b56e0f471925ccfa02e56ca84 [17/17] genirq: Move non-irqdomain handle_domain_irq() handling into ARM's handle_IRQ()
config: x86_64-randconfig-a003-20210513 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms irq/domain_cleanup
git checkout 5a65598a27f5f18b56e0f471925ccfa02e56ca84
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/video/fbdev/arcfb.c:44:
In file included from include/linux/fb.h:6:
In file included from include/uapi/linux/fb.h:6:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:584:
>> include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' [-Wmissing-prototypes]
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
include/linux/irqdesc.h:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
static
1 warning generated.
--
In file included from drivers/video/fbdev/neofb.c:64:
In file included from include/linux/fb.h:6:
In file included from include/uapi/linux/fb.h:6:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:584:
>> include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' [-Wmissing-prototypes]
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
include/linux/irqdesc.h:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
static
drivers/video/fbdev/neofb.c:144:20: warning: unused function 'write_le32' [-Wunused-function]
static inline void write_le32(int regindex, u32 val, const struct neofb_par *par)
^
2 warnings generated.
--
In file included from drivers/video/fbdev/arkfb.c:22:
In file included from include/linux/fb.h:6:
In file included from include/uapi/linux/fb.h:6:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:34:
In file included from include/linux/irq.h:584:
>> include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' [-Wmissing-prototypes]
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
include/linux/irqdesc.h:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
^
static
drivers/video/fbdev/arkfb.c:321:18: warning: unused function 'dac_read_reg' [-Wunused-function]
static inline u8 dac_read_reg(struct dac_info *info, u8 reg)
^
drivers/video/fbdev/arkfb.c:328:20: warning: unused function 'dac_read_regs' [-Wunused-function]
static inline void dac_read_regs(struct dac_info *info, u8 *code, int count)
^
3 warnings generated.
--
>> ld.lld: error: duplicate symbol: generic_handle_domain_irq
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbmem.o:(generic_handle_domain_irq)
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbmon.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: generic_handle_domain_irq
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbmem.o:(generic_handle_domain_irq)
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbcmap.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: generic_handle_domain_irq
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbmem.o:(generic_handle_domain_irq)
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbsysfs.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: generic_handle_domain_irq
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbmem.o:(generic_handle_domain_irq)
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/modedb.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: generic_handle_domain_irq
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbmem.o:(generic_handle_domain_irq)
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbcvt.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: generic_handle_domain_irq
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fbmem.o:(generic_handle_domain_irq)
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/core/fb_defio.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: generic_handle_domain_irq
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/riva/fbdev.o:(generic_handle_domain_irq)
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/riva/nv_driver.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: generic_handle_domain_irq
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/nvidia/nvidia.o:(generic_handle_domain_irq)
>>> defined at irqdesc.h:180 (include/linux/irqdesc.h:180)
>>> drivers/video/fbdev/nvidia/nv_hw.o:(.text+0x0)
..
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months