arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: sparse: incorrect type in argument 1 (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3fb6d0e00efc958d01c2f109c8453033a2d96796
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 6 months ago
config: sh-randconfig-s032-20210226 (attached as .config)
compiler: sh4-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-241-geaceeafa-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 e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# 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__' ARCH=sh
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/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: got unsigned int
>> arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:284:9: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: got unsigned int
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned int @@
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh2a/setup-sh7206.c:287:9: sparse: got unsigned int
vim +284 arch/sh/kernel/cpu/sh2a/setup-sh7206.c
698aa99da5f5e2 Magnus Damm 2009-04-30 280
698aa99da5f5e2 Magnus Damm 2009-04-30 281 void __init plat_early_device_setup(void)
698aa99da5f5e2 Magnus Damm 2009-04-30 282 {
698aa99da5f5e2 Magnus Damm 2009-04-30 283 /* enable CMT clock */
698aa99da5f5e2 Magnus Damm 2009-04-30 @284 __raw_writeb(__raw_readb(STBCR4) & ~0x04, STBCR4);
:::::: The code at line 284 was first introduced by commit
:::::: 698aa99da5f5e2b4c666fd21ab77306f0225b8f5 sh: sh2/sh2a 16-bit CMT platform data
:::::: TO: Magnus Damm <damm(a)igel.co.jp>
:::::: CC: Paul Mundt <lethal(a)linux-sh.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[ardb:arm64-ro-page-tables-pkvm 34/57] kernel/poke.c:13:23: error: implicit declaration of function 'phys_to_virt'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm
head: c5266cc8ebfbdcc7e1ea856a82beb017d0a4f611
commit: c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c [34/57] [DEBUG] poke: Add sysctl to poke abitrary PAs
config: riscv-randconfig-r015-20210226 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b889ef4214bc6dc8880fdd4badc0dcd9a3197753)
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/ardb/linux.git/commit/?id...
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm64-ro-page-tables-pkvm
git checkout c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 >>):
>> kernel/poke.c:13:23: error: implicit declaration of function 'phys_to_virt' [-Werror,-Wimplicit-function-declaration]
unsigned long *ptr = phys_to_virt(phys);
^
>> kernel/poke.c:13:17: warning: incompatible integer to pointer conversion initializing 'unsigned long *' with an expression of type 'int' [-Wint-conversion]
unsigned long *ptr = phys_to_virt(phys);
^ ~~~~~~~~~~~~~~~~~~
kernel/poke.c:21:23: error: implicit declaration of function 'phys_to_virt' [-Werror,-Wimplicit-function-declaration]
unsigned long *ptr = phys_to_virt(phys);
^
kernel/poke.c:21:17: warning: incompatible integer to pointer conversion initializing 'unsigned long *' with an expression of type 'int' [-Wint-conversion]
unsigned long *ptr = phys_to_virt(phys);
^ ~~~~~~~~~~~~~~~~~~
2 warnings and 2 errors generated.
vim +/phys_to_virt +13 kernel/poke.c
10
11 static ssize_t val_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
12 {
> 13 unsigned long *ptr = phys_to_virt(phys);
14
15 return sprintf(buf, "0x%lx\n", *ptr);
16 }
17
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[ardb:arm64-ro-page-tables-pkvm 3/18] include/asm-generic/memory_model.h:55:52: error: invalid operands to binary - (have 'pgtable_t' {aka 'struct <anonymous> and 'struct page
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm
head: c5266cc8ebfbdcc7e1ea856a82beb017d0a4f611
commit: 59ebe17c5fd61622da88cab6da5079414a207885 [3/18] mm: HACK provide target address when migrating a PMD entry
config: s390-allyesconfig (attached as .config)
compiler: s390-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/ardb/linux.git/commit/?id...
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm64-ro-page-tables-pkvm
git checkout 59ebe17c5fd61622da88cab6da5079414a207885
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 arch/s390/include/asm/thread_info.h:26,
from include/linux/thread_info.h:56,
from arch/s390/include/asm/preempt.h:6,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm/huge_memory.c:8:
mm/huge_memory.c: In function '__split_huge_pmd_locked':
>> include/asm-generic/memory_model.h:55:52: error: invalid operands to binary - (have 'pgtable_t' {aka 'struct <anonymous> *'} and 'struct page *')
55 | #define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
| ^
arch/s390/include/asm/page.h:98:37: note: in definition of macro '__pmd'
98 | #define __pmd(x) ((pmd_t) { (x) } )
| ^
arch/s390/include/asm/page.h:173:28: note: in expansion of macro 'pfn_to_phys'
173 | #define page_to_phys(page) pfn_to_phys(page_to_pfn(page))
| ^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
arch/s390/include/asm/page.h:173:40: note: in expansion of macro 'page_to_pfn'
173 | #define page_to_phys(page) pfn_to_phys(page_to_pfn(page))
| ^~~~~~~~~~~
mm/huge_memory.c:2191:35: note: in expansion of macro 'page_to_phys'
2191 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE));
| ^~~~~~~~~~~~
mm/huge_memory.c:2191:59: error: 'PMD_TYPE_TABLE' undeclared (first use in this function)
2191 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE));
| ^~~~~~~~~~~~~~
arch/s390/include/asm/page.h:98:37: note: in definition of macro '__pmd'
98 | #define __pmd(x) ((pmd_t) { (x) } )
| ^
mm/huge_memory.c:2191:59: note: each undeclared identifier is reported only once for each function it appears in
2191 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE));
| ^~~~~~~~~~~~~~
arch/s390/include/asm/page.h:98:37: note: in definition of macro '__pmd'
98 | #define __pmd(x) ((pmd_t) { (x) } )
| ^
vim +55 include/asm-generic/memory_model.h
8f6aac419bd590 Christoph Lameter 2007-10-16 52
af901ca181d92a André Goddard Rosa 2009-11-14 53 /* memmap is virtually contiguous. */
8f6aac419bd590 Christoph Lameter 2007-10-16 54 #define __pfn_to_page(pfn) (vmemmap + (pfn))
32272a26974d20 Martin Schwidefsky 2008-12-25 @55 #define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
8f6aac419bd590 Christoph Lameter 2007-10-16 56
:::::: The code at line 55 was first introduced by commit
:::::: 32272a26974d2027384fd4010cd1780fca425d94 [S390] __page_to_pfn warnings
:::::: TO: Martin Schwidefsky <schwidefsky(a)de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky(a)de.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[leon-rdma:rdma-next 26/29] drivers/infiniband/hw/mlx5/main.c:2465:8: error: implicit declaration of function '_uverbs_get_const_signed'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head: 5c4fb67d4fd9d516d72e179257104d09e0017d21
commit: f31bcad90994d6730f69098b674f6f6ea9cc94fd [26/29] IB/core: Split uverbs_get_const/default to consider target type
config: x86_64-randconfig-a013-20210226 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b889ef4214bc6dc8880fdd4badc0dcd9a3197753)
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/leon/linux-rdma.git/commi...
git remote add leon-rdma https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
git fetch --no-tags leon-rdma rdma-next
git checkout f31bcad90994d6730f69098b674f6f6ea9cc94fd
# 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 errors (new ones prefixed by >>):
>> drivers/infiniband/hw/mlx5/main.c:2465:8: error: implicit declaration of function '_uverbs_get_const_signed' [-Werror,-Wimplicit-function-declaration]
err = uverbs_get_const_default(&type, attrs,
^
include/rdma/uverbs_ioctl.h:982:4: note: expanded from macro 'uverbs_get_const_default'
uverbs_get_const_default_signed(_to, _attrs_bundle, _idx, \
^
include/rdma/uverbs_ioctl.h:957:4: note: expanded from macro 'uverbs_get_const_default_signed'
_uverbs_get_const_signed(&_val, _attrs_bundle, _idx, \
^
drivers/infiniband/hw/mlx5/main.c:2465:8: note: did you mean '_uverbs_get_const'?
include/rdma/uverbs_ioctl.h:982:4: note: expanded from macro 'uverbs_get_const_default'
uverbs_get_const_default_signed(_to, _attrs_bundle, _idx, \
^
include/rdma/uverbs_ioctl.h:957:4: note: expanded from macro 'uverbs_get_const_default_signed'
_uverbs_get_const_signed(&_val, _attrs_bundle, _idx, \
^
include/rdma/uverbs_ioctl.h:917:1: note: '_uverbs_get_const' declared here
_uverbs_get_const(s64 *to, const struct uverbs_attr_bundle *attrs_bundle,
^
>> drivers/infiniband/hw/mlx5/main.c:2465:8: error: implicit declaration of function '_uverbs_get_const_unsigned' [-Werror,-Wimplicit-function-declaration]
err = uverbs_get_const_default(&type, attrs,
^
include/rdma/uverbs_ioctl.h:984:4: note: expanded from macro 'uverbs_get_const_default'
uverbs_get_const_default_unsigned(_to, _attrs_bundle, _idx, \
^
include/rdma/uverbs_ioctl.h:969:4: note: expanded from macro 'uverbs_get_const_default_unsigned'
_uverbs_get_const_unsigned(&_val, _attrs_bundle, _idx, \
^
drivers/infiniband/hw/mlx5/main.c:3777:8: error: implicit declaration of function '_uverbs_get_const_signed' [-Werror,-Wimplicit-function-declaration]
err = uverbs_get_const(&alloc_type, attrs,
^
include/rdma/uverbs_ioctl.h:977:4: note: expanded from macro 'uverbs_get_const'
uverbs_get_const_signed(_to, _attrs_bundle, _idx) : \
^
include/rdma/uverbs_ioctl.h:935:4: note: expanded from macro 'uverbs_get_const_signed'
_uverbs_get_const_signed(&_val, _attrs_bundle, _idx, \
^
drivers/infiniband/hw/mlx5/main.c:3777:8: error: implicit declaration of function '_uverbs_get_const_unsigned' [-Werror,-Wimplicit-function-declaration]
include/rdma/uverbs_ioctl.h:978:4: note: expanded from macro 'uverbs_get_const'
uverbs_get_const_unsigned(_to, _attrs_bundle, _idx)) \
^
include/rdma/uverbs_ioctl.h:946:4: note: expanded from macro 'uverbs_get_const_unsigned'
_uverbs_get_const_unsigned(&_val, _attrs_bundle, _idx, \
^
4 errors generated.
vim +/_uverbs_get_const_signed +2465 drivers/infiniband/hw/mlx5/main.c
25c13324d03d00 Ariel Levkovich 2019-05-05 2455
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2456 struct ib_dm *mlx5_ib_alloc_dm(struct ib_device *ibdev,
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2457 struct ib_ucontext *context,
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2458 struct ib_dm_alloc_attr *attr,
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2459 struct uverbs_attr_bundle *attrs)
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2460 {
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2461 struct mlx5_ib_dm *dm;
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2462 enum mlx5_ib_uapi_dm_type type;
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2463 int err;
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2464
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 @2465 err = uverbs_get_const_default(&type, attrs,
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2466 MLX5_IB_ATTR_ALLOC_DM_REQ_TYPE,
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2467 MLX5_IB_UAPI_DM_TYPE_MEMIC);
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2468 if (err)
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2469 return ERR_PTR(err);
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2470
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2471 mlx5_ib_dbg(to_mdev(ibdev), "alloc_dm req: dm_type=%d user_length=0x%llx log_alignment=%d\n",
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2472 type, attr->length, attr->alignment);
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2473
25c13324d03d00 Ariel Levkovich 2019-05-05 2474 err = check_dm_type_support(to_mdev(ibdev), type);
25c13324d03d00 Ariel Levkovich 2019-05-05 2475 if (err)
25c13324d03d00 Ariel Levkovich 2019-05-05 2476 return ERR_PTR(err);
25c13324d03d00 Ariel Levkovich 2019-05-05 2477
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2478 dm = kzalloc(sizeof(*dm), GFP_KERNEL);
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2479 if (!dm)
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2480 return ERR_PTR(-ENOMEM);
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2481
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2482 dm->type = type;
24da00164f7a9c Ariel Levkovich 2018-04-05 2483
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2484 switch (type) {
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2485 case MLX5_IB_UAPI_DM_TYPE_MEMIC:
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2486 err = handle_alloc_dm_memic(context, dm,
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2487 attr,
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2488 attrs);
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2489 break;
25c13324d03d00 Ariel Levkovich 2019-05-05 2490 case MLX5_IB_UAPI_DM_TYPE_STEERING_SW_ICM:
c9b9dcb430b3cd Ariel Levkovich 2019-08-29 2491 err = handle_alloc_dm_sw_icm(context, dm,
c9b9dcb430b3cd Ariel Levkovich 2019-08-29 2492 attr, attrs,
c9b9dcb430b3cd Ariel Levkovich 2019-08-29 2493 MLX5_SW_ICM_TYPE_STEERING);
c9b9dcb430b3cd Ariel Levkovich 2019-08-29 2494 break;
25c13324d03d00 Ariel Levkovich 2019-05-05 2495 case MLX5_IB_UAPI_DM_TYPE_HEADER_MODIFY_SW_ICM:
c9b9dcb430b3cd Ariel Levkovich 2019-08-29 2496 err = handle_alloc_dm_sw_icm(context, dm,
c9b9dcb430b3cd Ariel Levkovich 2019-08-29 2497 attr, attrs,
c9b9dcb430b3cd Ariel Levkovich 2019-08-29 2498 MLX5_SW_ICM_TYPE_HEADER_MODIFY);
25c13324d03d00 Ariel Levkovich 2019-05-05 2499 break;
4bf8266852b2f5 Erez Shitrit 2020-06-17 2500 case MLX5_IB_UAPI_DM_TYPE_HEADER_MODIFY_PATTERN_SW_ICM:
4bf8266852b2f5 Erez Shitrit 2020-06-17 2501 err = handle_alloc_dm_sw_icm(context, dm,
4bf8266852b2f5 Erez Shitrit 2020-06-17 2502 attr, attrs,
4bf8266852b2f5 Erez Shitrit 2020-06-17 2503 MLX5_SW_ICM_TYPE_HEADER_MODIFY_PATTERN);
4bf8266852b2f5 Erez Shitrit 2020-06-17 2504 break;
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2505 default:
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2506 err = -EOPNOTSUPP;
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2507 }
24da00164f7a9c Ariel Levkovich 2018-04-05 2508
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2509 if (err)
3b113a1ec3d4ac Ariel Levkovich 2019-05-05 2510 goto err_free;
24da00164f7a9c Ariel Levkovich 2018-04-05 2511
24da00164f7a9c Ariel Levkovich 2018-04-05 2512 return &dm->ibdm;
24da00164f7a9c Ariel Levkovich 2018-04-05 2513
24da00164f7a9c Ariel Levkovich 2018-04-05 2514 err_free:
24da00164f7a9c Ariel Levkovich 2018-04-05 2515 kfree(dm);
24da00164f7a9c Ariel Levkovich 2018-04-05 2516 return ERR_PTR(err);
24da00164f7a9c Ariel Levkovich 2018-04-05 2517 }
24da00164f7a9c Ariel Levkovich 2018-04-05 2518
:::::: The code at line 2465 was first introduced by commit
:::::: 3b113a1ec3d4ac7e1e621b77650ac05491f5924a IB/mlx5: Support device memory type attribute
:::::: TO: Ariel Levkovich <lariel(a)mellanox.com>
:::::: CC: Jason Gunthorpe <jgg(a)mellanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[lee-linaro:tb-fix-w1-warnings 207/226] drivers/scsi/nsp32.c:880:6: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int'
by kernel test robot
tree: https://git.linaro.org/people/lee.jones/linux.git tb-fix-w1-warnings
head: 49fe493a5f7cebaec70944df919df3350d4cb520
commit: 6ab178c59622501e1aff90b6c05f0af38da223bd [207/226] scsi: nsp32: Supply __printf(x, y) formatting for nsp32_message()
config: xtensa-randconfig-m031-20210227 (attached as .config)
compiler: xtensa-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
git remote add lee-linaro https://git.linaro.org/people/lee.jones/linux.git
git fetch --no-tags lee-linaro tb-fix-w1-warnings
git checkout 6ab178c59622501e1aff90b6c05f0af38da223bd
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
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/scsi/nsp32.c: In function 'nsp32_selection_autoscsi':
drivers/scsi/nsp32.c:584:17: warning: variable 'execph' set but not used [-Wunused-but-set-variable]
584 | unsigned short execph;
| ^~~~~~
drivers/scsi/nsp32.c: In function 'nsp32_setup_sg_table':
>> drivers/scsi/nsp32.c:880:6: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'unsigned int' [-Wformat=]
880 | "can't transfer over 64KB at a time, size=0x%lx", le32_to_cpu(sgt[i].len));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/nsp32.c:280:69: note: in definition of macro 'nsp32_msg'
280 | # define nsp32_msg(type, args...) nsp32_message ("", 0, (type), args)
| ^~~~
drivers/scsi/nsp32.c:880:52: note: format string is defined here
880 | "can't transfer over 64KB at a time, size=0x%lx", le32_to_cpu(sgt[i].len));
| ~~^
| |
| long unsigned int
| %x
drivers/scsi/nsp32.c: In function 'nsp32_msgout_occur':
drivers/scsi/nsp32.c:1785:7: warning: variable 'new_sgtp' set but not used [-Wunused-but-set-variable]
1785 | long new_sgtp;
| ^~~~~~~~
drivers/scsi/nsp32.c: In function 'nsp32_analyze_sdtr':
drivers/scsi/nsp32.c:2227:20: warning: variable 'syncnum' set but not used [-Wunused-but-set-variable]
2227 | int syncnum;
| ^~~~~~~
drivers/scsi/nsp32.c:2223:20: warning: variable 'synct' set but not used [-Wunused-but-set-variable]
2223 | nsp32_sync_table *synct;
| ^~~~~
drivers/scsi/nsp32.c: In function 'nsp32_detect':
>> drivers/scsi/nsp32.c:2735:6: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'int' [-Wformat=]
2735 | "I/O region 0x%lx+0x%lx is already used",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2736 | data->BaseAddress, data->NumAddress);
| ~~~~~~~~~~~~~~~~~
| |
| int
drivers/scsi/nsp32.c:280:69: note: in definition of macro 'nsp32_msg'
280 | # define nsp32_msg(type, args...) nsp32_message ("", 0, (type), args)
| ^~~~
drivers/scsi/nsp32.c:2735:22: note: format string is defined here
2735 | "I/O region 0x%lx+0x%lx is already used",
| ~~^
| |
| long unsigned int
| %x
drivers/scsi/nsp32.c:2735:6: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'int' [-Wformat=]
2735 | "I/O region 0x%lx+0x%lx is already used",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2736 | data->BaseAddress, data->NumAddress);
| ~~~~~~~~~~~~~~~~
| |
| int
drivers/scsi/nsp32.c:280:69: note: in definition of macro 'nsp32_msg'
280 | # define nsp32_msg(type, args...) nsp32_message ("", 0, (type), args)
| ^~~~
drivers/scsi/nsp32.c:2735:28: note: format string is defined here
2735 | "I/O region 0x%lx+0x%lx is already used",
| ~~^
| |
| long unsigned int
| %x
drivers/scsi/nsp32.c: In function 'nsp32_do_bus_reset':
drivers/scsi/nsp32.c:2841:17: warning: variable 'intrdat' set but not used [-Wunused-but-set-variable]
2841 | unsigned short intrdat;
| ^~~~~~~
drivers/scsi/nsp32.c: In function 'nsp32_getprom_param':
drivers/scsi/nsp32.c:2912:11: warning: variable 'val' set but not used [-Wunused-but-set-variable]
2912 | int ret, val, i;
| ^~~
drivers/scsi/nsp32.c: In function 'nsp32_suspend':
>> drivers/scsi/nsp32.c:3282:23: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'pm_message_t' {aka 'struct pm_message'} [-Wformat=]
3282 | nsp32_msg(KERN_INFO, "pci-suspend: pdev=0x%p, state=%ld, slot=%s, host=0x%p", pdev, state, pci_name(pdev), host);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
| |
| pm_message_t {aka struct pm_message}
drivers/scsi/nsp32.c:280:69: note: in definition of macro 'nsp32_msg'
280 | # define nsp32_msg(type, args...) nsp32_message ("", 0, (type), args)
| ^~~~
drivers/scsi/nsp32.c:3282:56: note: format string is defined here
3282 | nsp32_msg(KERN_INFO, "pci-suspend: pdev=0x%p, state=%ld, slot=%s, host=0x%p", pdev, state, pci_name(pdev), host);
| ~~^
| |
| long int
vim +880 drivers/scsi/nsp32.c
^1da177e4c3f4152 Linus Torvalds 2005-04-16 844
^1da177e4c3f4152 Linus Torvalds 2005-04-16 845
^1da177e4c3f4152 Linus Torvalds 2005-04-16 846 /*
^1da177e4c3f4152 Linus Torvalds 2005-04-16 847 * nsp32_setup_sg_table - build scatter gather list for transfer data
^1da177e4c3f4152 Linus Torvalds 2005-04-16 848 * with bus master.
^1da177e4c3f4152 Linus Torvalds 2005-04-16 849 *
^1da177e4c3f4152 Linus Torvalds 2005-04-16 850 * Note: NinjaSCSI-32Bi/UDE bus master can not transfer over 64KB at a time.
^1da177e4c3f4152 Linus Torvalds 2005-04-16 851 */
^1da177e4c3f4152 Linus Torvalds 2005-04-16 852 static int nsp32_setup_sg_table(struct scsi_cmnd *SCpnt)
^1da177e4c3f4152 Linus Torvalds 2005-04-16 853 {
^1da177e4c3f4152 Linus Torvalds 2005-04-16 854 nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata;
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 855 struct scatterlist *sg;
^1da177e4c3f4152 Linus Torvalds 2005-04-16 856 nsp32_sgtable *sgt = data->cur_lunt->sglun->sgt;
^1da177e4c3f4152 Linus Torvalds 2005-04-16 857 int num, i;
^1da177e4c3f4152 Linus Torvalds 2005-04-16 858 u32_le l;
^1da177e4c3f4152 Linus Torvalds 2005-04-16 859
^1da177e4c3f4152 Linus Torvalds 2005-04-16 860 if (sgt == NULL) {
^1da177e4c3f4152 Linus Torvalds 2005-04-16 861 nsp32_dbg(NSP32_DEBUG_SGLIST, "SGT == null");
^1da177e4c3f4152 Linus Torvalds 2005-04-16 862 return FALSE;
^1da177e4c3f4152 Linus Torvalds 2005-04-16 863 }
^1da177e4c3f4152 Linus Torvalds 2005-04-16 864
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 865 num = scsi_dma_map(SCpnt);
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 866 if (!num)
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 867 return TRUE;
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 868 else if (num < 0)
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 869 return FALSE;
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 870 else {
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 871 scsi_for_each_sg(SCpnt, sg, num, i) {
^1da177e4c3f4152 Linus Torvalds 2005-04-16 872 /*
^1da177e4c3f4152 Linus Torvalds 2005-04-16 873 * Build nsp32_sglist, substitute sg dma addresses.
^1da177e4c3f4152 Linus Torvalds 2005-04-16 874 */
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 875 sgt[i].addr = cpu_to_le32(sg_dma_address(sg));
2e91724658d5d6b5 FUJITA Tomonori 2007-05-26 876 sgt[i].len = cpu_to_le32(sg_dma_len(sg));
^1da177e4c3f4152 Linus Torvalds 2005-04-16 877
^1da177e4c3f4152 Linus Torvalds 2005-04-16 878 if (le32_to_cpu(sgt[i].len) > 0x10000) {
^1da177e4c3f4152 Linus Torvalds 2005-04-16 879 nsp32_msg(KERN_ERR,
^1da177e4c3f4152 Linus Torvalds 2005-04-16 @880 "can't transfer over 64KB at a time, size=0x%lx", le32_to_cpu(sgt[i].len));
^1da177e4c3f4152 Linus Torvalds 2005-04-16 881 return FALSE;
^1da177e4c3f4152 Linus Torvalds 2005-04-16 882 }
^1da177e4c3f4152 Linus Torvalds 2005-04-16 883 nsp32_dbg(NSP32_DEBUG_SGLIST,
^1da177e4c3f4152 Linus Torvalds 2005-04-16 884 "num 0x%x : addr 0x%lx len 0x%lx",
^1da177e4c3f4152 Linus Torvalds 2005-04-16 885 i,
^1da177e4c3f4152 Linus Torvalds 2005-04-16 886 le32_to_cpu(sgt[i].addr),
^1da177e4c3f4152 Linus Torvalds 2005-04-16 887 le32_to_cpu(sgt[i].len ));
^1da177e4c3f4152 Linus Torvalds 2005-04-16 888 }
^1da177e4c3f4152 Linus Torvalds 2005-04-16 889
^1da177e4c3f4152 Linus Torvalds 2005-04-16 890 /* set end mark */
^1da177e4c3f4152 Linus Torvalds 2005-04-16 891 l = le32_to_cpu(sgt[num-1].len);
^1da177e4c3f4152 Linus Torvalds 2005-04-16 892 sgt[num-1].len = cpu_to_le32(l | SGTEND);
^1da177e4c3f4152 Linus Torvalds 2005-04-16 893 }
^1da177e4c3f4152 Linus Torvalds 2005-04-16 894
^1da177e4c3f4152 Linus Torvalds 2005-04-16 895 return TRUE;
^1da177e4c3f4152 Linus Torvalds 2005-04-16 896 }
^1da177e4c3f4152 Linus Torvalds 2005-04-16 897
:::::: The code at line 880 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Re: [PATCH 2/2] tracing: Add a verifier to check string pointers for trace events
by kernel test robot
Hi Steven,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on next-20210226]
[cannot apply to tip/perf/core linux/master hnaz-linux-mm/master v5.11]
[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/Steven-Rostedt/tracing-Detect-un...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8b83369ddcb3fb9cab5c1088987ce477565bb630
config: arc-randconfig-r022-20210226 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/43930a0d94b958cf1fdd82d4ae4cc97fc...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Steven-Rostedt/tracing-Detect-unsafe-dereferencing-of-pointers-from-trace-events/20210227-030901
git checkout 43930a0d94b958cf1fdd82d4ae4cc97fc5d1143b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
kernel/trace/trace.c: In function 'trace_check_vprintf':
>> kernel/trace/trace.c:3662:3: warning: function 'trace_check_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
3662 | trace_seq_vprintf(&iter->seq, iter->fmt, ap);
| ^~~~~~~~~~~~~~~~~
kernel/trace/trace.c:3699:3: warning: function 'trace_check_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
3699 | trace_seq_vprintf(&iter->seq, p, ap);
| ^~~~~~~~~~~~~~~~~
At top level:
kernel/trace/trace.c:1683:37: warning: 'tracing_max_lat_fops' defined but not used [-Wunused-const-variable=]
1683 | static const struct file_operations tracing_max_lat_fops;
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/perf_event.h:25,
from include/linux/hw_breakpoint.h:5,
from kernel/trace/trace.h:15,
from kernel/trace/trace.c:52:
arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
vim +3662 kernel/trace/trace.c
3596
3597 /**
3598 * trace_check_vprintf - Check dereferenced strings while writing to the seq buffer
3599 * @iter: The iterator that holds the seq buffer and the event being printed
3600 * @fmt: The format used to print the event
3601 * @ap: The va_list holding the data to print from @fmt.
3602 *
3603 * This writes the data into the @iter->seq buffer using the data from
3604 * @fmt and @ap. If the format has a %s, then the source of the string
3605 * is examined to make sure it is safe to print, otherwise it will
3606 * warn and print "[UNSAFE MEMORY]" in place of the dereferenced string
3607 * pointer.
3608 */
3609 void trace_check_vprintf(struct trace_iterator *iter, const char *fmt,
3610 va_list ap)
3611 {
3612 const char *p = fmt;
3613 const char *str;
3614 int i, j;
3615
3616 if (WARN_ON_ONCE(!fmt))
3617 return;
3618
3619 /* Don't bother checking when doing a ftrace_dump() */
3620 if (iter->fmt == static_fmt_buf)
3621 goto print;
3622
3623 while (*p) {
3624 j = 0;
3625
3626 /* We only care about %s and variants */
3627 for (i = 0; p[i]; i++) {
3628 if (i + 1 >= iter->fmt_size) {
3629 /*
3630 * If we can't expand the copy buffer,
3631 * just print it.
3632 */
3633 if (!trace_iter_expand_format(iter))
3634 goto print;
3635 }
3636
3637 if (p[i] == '\\' && p[i+1]) {
3638 i++;
3639 continue;
3640 }
3641 if (p[i] == '%') {
3642 /* Need to test cases like %08.*s */
3643 for (j = 1; p[i+j]; j++) {
3644 if (isdigit(p[i+j]) ||
3645 p[i+j] == '*' ||
3646 p[i+j] == '.')
3647 continue;
3648 break;
3649 }
3650 if (p[i+j] == 's')
3651 break;
3652 }
3653 j = 0;
3654 }
3655 /* If no %s found then just print normally */
3656 if (!p[i])
3657 break;
3658
3659 /* Copy up to the %s, and print that */
3660 strncpy(iter->fmt, p, i);
3661 iter->fmt[i] = '\0';
> 3662 trace_seq_vprintf(&iter->seq, iter->fmt, ap);
3663
3664 /* The ap now points to the string data of the %s */
3665 str = va_arg(ap, const char *);
3666
3667 /*
3668 * If you hit this warning, it is likely that the
3669 * trace event in question used %s on a string that
3670 * was saved at the time of the event, but may not be
3671 * around when the trace is read. Use __string(),
3672 * __assign_str() and __get_str() helpers in the TRACE_EVENT()
3673 * instead. See samples/trace_events/trace-events-sample.h
3674 * for reference.
3675 */
3676 if (WARN_ON_ONCE(!trace_safe_str(iter, str))) {
3677 int ret;
3678
3679 /* Try to safely read the string */
3680 ret = strncpy_from_kernel_nofault(iter->fmt, str,
3681 iter->fmt_size);
3682 if (ret < 0)
3683 trace_seq_printf(&iter->seq, "(0x%px)", str);
3684 else
3685 trace_seq_printf(&iter->seq, "(0x%px:%s)",
3686 str, iter->fmt);
3687 str = "[UNSAFE-MEMORY]";
3688 strcpy(iter->fmt, "%s");
3689 } else {
3690 strncpy(iter->fmt, p + i, j + 1);
3691 iter->fmt[j+1] = '\0';
3692 }
3693 trace_seq_printf(&iter->seq, iter->fmt, str);
3694
3695 p += i + j + 1;
3696 }
3697 print:
3698 if (*p)
3699 trace_seq_vprintf(&iter->seq, p, ap);
3700 }
3701
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
error: unknown target CPU 'r4300'
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Lauri Kasanen <cand(a)gmx.com>
CC: Thomas Bogendoerfer <tsbogend(a)alpha.franken.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8b83369ddcb3fb9cab5c1088987ce477565bb630
commit: baec970aa5ba11099ad7a91773350c91fb2113f0 mips: Add N64 machine type
date: 5 weeks ago
config: mips-randconfig-r011-20210227 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project b889ef4214bc6dc8880fdd4badc0dcd9a3197753)
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 baec970aa5ba11099ad7a91773350c91fb2113f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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 >>):
>> error: unknown target CPU 'r4300'
note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600
--
>> error: unknown target CPU 'r4300'
note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600
>> error: unknown target CPU 'r4300'
note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600
make[2]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1
>> error: unknown target CPU 'r4300'
note: valid target CPU values are: mips1, mips2, mips3, mips4, mips5, mips32, mips32r2, mips32r3, mips32r5, mips32r6, mips64, mips64r2, mips64r3, mips64r5, mips64r6, octeon, octeon+, p5600
make[2]: *** [scripts/Makefile.build:279: scripts/mod/empty.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1205: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[ardb:arm64-ro-page-tables-pkvm 34/57] kernel/poke.c:37:28: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'phys_addr_t' {aka 'unsigned int'}
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm
head: c5266cc8ebfbdcc7e1ea856a82beb017d0a4f611
commit: c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c [34/57] [DEBUG] poke: Add sysctl to poke abitrary PAs
config: arm-randconfig-r014-20210226 (attached as .config)
compiler: arm-linux-gnueabi-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/ardb/linux.git/commit/?id...
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm64-ro-page-tables-pkvm
git checkout c75121a984d82981c73f4c7d3f0eb3c9c5b6ed4c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.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 >>):
kernel/poke.c: In function 'phys_show':
>> kernel/poke.c:37:28: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=]
37 | return sprintf(buf, "0x%llx\n", phys);
| ~~~^ ~~~~
| | |
| | phys_addr_t {aka unsigned int}
| long long unsigned int
| %x
vim +37 kernel/poke.c
34
35 static ssize_t phys_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
36 {
> 37 return sprintf(buf, "0x%llx\n", phys);
38 }
39
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months