Re: [PATCH v2 2/2] riscv: Add jump-label implementation
by kernel test robot
Hi Emil,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.8-rc5 next-20200713]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Emil-Renner-Berthing/riscv-Suppo...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dcde237b9b0eb1d19306e6f48c0a4e058907619f
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 errors (new ones prefixed by >>):
In file included from include/linux/compiler_types.h:68,
from <command-line>:
arch/riscv/include/asm/jump_label.h: In function 'arch_static_branch':
>> arch/riscv/include/asm/jump_label.h:26:15: error: expected ':' before 'RISCV_LGPTR'
26 | " .align " RISCV_LGPTR " \n\t"
| ^~~~~~~~~~~
include/linux/compiler-gcc.h:121:47: note: in definition of macro 'asm_volatile_goto'
121 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^
In file included from include/linux/jump_label.h:117,
from include/linux/dynamic_debug.h:6,
from include/linux/printk.h:404,
from kernel/module_signature.c:10:
arch/riscv/include/asm/jump_label.h:33:1: warning: label 'label' defined but not used [-Wunused-label]
33 | label:
| ^~~~~
In file included from include/linux/compiler_types.h:68,
from <command-line>:
arch/riscv/include/asm/jump_label.h: In function 'arch_static_branch_jump':
arch/riscv/include/asm/jump_label.h:47:15: error: expected ':' before 'RISCV_LGPTR'
47 | " .align " RISCV_LGPTR " \n\t"
| ^~~~~~~~~~~
include/linux/compiler-gcc.h:121:47: note: in definition of macro 'asm_volatile_goto'
121 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^
In file included from include/linux/jump_label.h:117,
from include/linux/dynamic_debug.h:6,
from include/linux/printk.h:404,
from kernel/module_signature.c:10:
arch/riscv/include/asm/jump_label.h:54:1: warning: label 'label' defined but not used [-Wunused-label]
54 | label:
| ^~~~~
--
In file included from include/linux/compiler_types.h:68,
from <command-line>:
arch/riscv/include/asm/jump_label.h: In function 'arch_static_branch':
>> arch/riscv/include/asm/jump_label.h:26:15: error: expected ':' before 'RISCV_LGPTR'
26 | " .align " RISCV_LGPTR " \n\t"
| ^~~~~~~~~~~
include/linux/compiler-gcc.h:121:47: note: in definition of macro 'asm_volatile_goto'
121 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^
In file included from include/linux/jump_label.h:117,
from include/linux/dynamic_debug.h:6,
from include/linux/printk.h:404,
from include/drm/drm_print.h:30,
from drivers/gpu/drm/tidss/tidss_irq.c:7:
arch/riscv/include/asm/jump_label.h:33:1: warning: label 'label' defined but not used [-Wunused-label]
33 | label:
| ^~~~~
In file included from include/linux/compiler_types.h:68,
from <command-line>:
arch/riscv/include/asm/jump_label.h: In function 'arch_static_branch_jump':
arch/riscv/include/asm/jump_label.h:47:15: error: expected ':' before 'RISCV_LGPTR'
47 | " .align " RISCV_LGPTR " \n\t"
| ^~~~~~~~~~~
include/linux/compiler-gcc.h:121:47: note: in definition of macro 'asm_volatile_goto'
121 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^
In file included from include/linux/jump_label.h:117,
from include/linux/dynamic_debug.h:6,
from include/linux/printk.h:404,
from include/drm/drm_print.h:30,
from drivers/gpu/drm/tidss/tidss_irq.c:7:
arch/riscv/include/asm/jump_label.h:54:1: warning: label 'label' defined but not used [-Wunused-label]
54 | label:
| ^~~~~
In file included from arch/riscv/include/asm/kgdb.h:109,
from include/linux/kgdb.h:20,
from include/linux/fb.h:5,
from include/drm/drm_crtc.h:31,
from drivers/gpu/drm/tidss/tidss_crtc.h:13,
from drivers/gpu/drm/tidss/tidss_irq.c:9:
At top level:
arch/riscv/include/asm/gdb_xml.h:23:19: warning: 'riscv_gdb_stub_cpuxml' defined but not used [-Wunused-const-variable=]
23 | static const char riscv_gdb_stub_cpuxml[2048] =
| ^~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/gdb_xml.h:16:19: warning: 'riscv_gdb_stub_target_desc' defined but not used [-Wunused-const-variable=]
16 | static const char riscv_gdb_stub_target_desc[256] =
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/gdb_xml.h:13:19: warning: 'gdb_xfer_read_cpuxml' defined but not used [-Wunused-const-variable=]
13 | static const char gdb_xfer_read_cpuxml[39] =
| ^~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/gdb_xml.h:10:19: warning: 'gdb_xfer_read_target' defined but not used [-Wunused-const-variable=]
10 | static const char gdb_xfer_read_target[31] = "qXfer:features:read:target.xml:";
| ^~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/gdb_xml.h:7:19: warning: 'riscv_gdb_stub_feature' defined but not used [-Wunused-const-variable=]
7 | static const char riscv_gdb_stub_feature[64] =
| ^~~~~~~~~~~~~~~~~~~~~~
vim +26 arch/riscv/include/asm/jump_label.h
15
16 static __always_inline bool arch_static_branch(struct static_key *key,
17 bool branch)
18 {
19 asm_volatile_goto(
20 " .option push \n\t"
21 " .option norelax \n\t"
22 " .option norvc \n\t"
23 "1: nop \n\t"
24 " .option pop \n\t"
25 " .pushsection __jump_table, \"aw\" \n\t"
> 26 " .align " RISCV_LGPTR " \n\t"
27 " .long 1b - ., %l[label] - . \n\t"
28 " " RISCV_PTR " %0 - . \n\t"
29 " .popsection \n\t"
30 : : "i"(&((char *)key)[branch]) : : label);
31
32 return false;
33 label:
34 return true;
35 }
36
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH v2 4/4] btrfs: assert sizes of ioctl structures
by kernel test robot
Hi Johannes,
I love your patch! Yet something to improve:
[auto build test ERROR on v5.8-rc5]
[cannot apply to kdave/for-next btrfs/next next-20200713]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Johannes-Thumshirn/Two-furhter-a...
base: 11ba468877bb23f28956a35e896356252d63c983
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
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 ./usr/include/linux/btrfs_tree.h:5,
from <command-line>:32:
>> ./usr/include/linux/btrfs.h:35:15: error: expected declaration specifiers or '...' before 'sizeof'
35 | static_assert(sizeof(struct btrfs_ioctl_vol_args) == 4096);
| ^~~~~~
./usr/include/linux/btrfs.h:192:15: error: expected declaration specifiers or '...' before 'sizeof'
192 | static_assert(sizeof(struct btrfs_ioctl_scrub_args) == 1024);
| ^~~~~~
./usr/include/linux/btrfs.h:245:15: error: expected declaration specifiers or '...' before 'sizeof'
245 | static_assert(sizeof(struct btrfs_ioctl_dev_info_args) == 4096);
| ^~~~~~
./usr/include/linux/btrfs.h:274:15: error: expected declaration specifiers or '...' before 'sizeof'
274 | static_assert(sizeof(struct btrfs_ioctl_fs_info_args) == 1024);
| ^~~~~~
./usr/include/linux/btrfs.h:457:15: error: expected declaration specifiers or '...' before 'sizeof'
457 | static_assert(sizeof(struct btrfs_ioctl_balance_args) == 1024);
| ^~~~~~
./usr/include/linux/btrfs.h:465:15: error: expected declaration specifiers or '...' before 'sizeof'
465 | static_assert(sizeof(struct btrfs_ioctl_ino_lookup_args) == 4096);
| ^~~~~~
./usr/include/linux/btrfs.h:481:15: error: expected declaration specifiers or '...' before 'sizeof'
481 | static_assert(sizeof(struct btrfs_ioctl_ino_lookup_user_args) == 4096);
| ^~~~~~
./usr/include/linux/btrfs.h:560:15: error: expected declaration specifiers or '...' before 'sizeof'
560 | static_assert(sizeof(struct btrfs_ioctl_search_args) == 4096);
| ^~~~~~
./usr/include/linux/btrfs.h:718:15: error: expected declaration specifiers or '...' before 'sizeof'
718 | static_assert(sizeof(struct btrfs_ioctl_get_dev_stats) == 1032);
| ^~~~~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[RFC PATCH] iommu/arm-smmu: arm_smmu_setup_identity() can be static
by kernel test robot
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
arm-smmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 2e27cf9815ab6..fb85e716ae9ac 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1924,7 +1924,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu)
return 0;
}
-int arm_smmu_setup_identity(struct arm_smmu_device *smmu)
+static int arm_smmu_setup_identity(struct arm_smmu_device *smmu)
{
int i;
2 years, 2 months
drivers/atm/ambassador.c:329:19: sparse: sparse: incorrect type in initializer (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 11ba468877bb23f28956a35e896356252d63c983
commit: f009c89df79abea5f5244b8135a205f7d4352f86 io: Provide _inX() and _outX()
date: 10 weeks ago
config: microblaze-randconfig-s031-20200713 (attached as .config)
compiler: microblaze-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.2-37-gc9676a3b-dirty
git checkout f009c89df79abea5f5244b8135a205f7d4352f86
# 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=microblaze
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 >>)
drivers/atm/ambassador.c:1747:58: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void *address @@ got struct loader_block volatile [usertype] *lb @@
drivers/atm/ambassador.c:1747:58: sparse: expected void *address
drivers/atm/ambassador.c:1747:58: sparse: got struct loader_block volatile [usertype] *lb
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
>> drivers/atm/ambassador.c:329:19: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __be32 [usertype] be @@ got unsigned short @@
drivers/atm/ambassador.c:329:19: sparse: expected restricted __be32 [usertype] be
>> drivers/atm/ambassador.c:329:19: sparse: got unsigned short
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
drivers/atm/ambassador.c:321:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] be @@
drivers/atm/ambassador.c:321:9: sparse: expected unsigned int [usertype] value
drivers/atm/ambassador.c:321:9: sparse: got restricted __be32 [usertype] be
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:490:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:521:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:521:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:521:22: sparse: got restricted __le32 [usertype]
vim +329 drivers/atm/ambassador.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 324
^1da177e4c3f41 Linus Torvalds 2005-04-16 325 static inline u32 rd_mem (const amb_dev * dev, size_t addr) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 326 #ifdef AMB_MMIO
^1da177e4c3f41 Linus Torvalds 2005-04-16 327 __be32 be = dev->membase[addr / sizeof(u32)];
^1da177e4c3f41 Linus Torvalds 2005-04-16 328 #else
^1da177e4c3f41 Linus Torvalds 2005-04-16 @329 __be32 be = inl (dev->iobase + addr);
^1da177e4c3f41 Linus Torvalds 2005-04-16 330 #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16 331 u32 data = be32_to_cpu (be);
^1da177e4c3f41 Linus Torvalds 2005-04-16 332 PRINTD (DBG_FLOW|DBG_REGS, "rd: %08zx -> %08x b[%08x]", addr, data, be);
^1da177e4c3f41 Linus Torvalds 2005-04-16 333 return data;
^1da177e4c3f41 Linus Torvalds 2005-04-16 334 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 335
:::::: The code at line 329 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
2 years, 2 months
Re: [PATCHv3 3/4] watchdog: rti-wdt: attach to running watchdog during probe
by kernel test robot
Hi Tero,
I love your patch! Yet something to improve:
[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on linux/master linus/master v5.8-rc5 next-20200713]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Tero-Kristo/watchdog-rti-support...
base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: mips-allyesconfig (attached as .config)
compiler: mips-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 >>):
arch/mips/kernel/head.o: in function `dtb_found':
(.ref.text+0xc8): relocation truncated to fit: R_MIPS_26 against `start_kernel'
init/main.o: in function `set_reset_devices':
main.c:(.init.text+0x20): relocation truncated to fit: R_MIPS_26 against `_mcount'
main.c:(.init.text+0x30): relocation truncated to fit: R_MIPS_26 against `__sanitizer_cov_trace_pc'
init/main.o: in function `debug_kernel':
main.c:(.init.text+0x9c): relocation truncated to fit: R_MIPS_26 against `_mcount'
main.c:(.init.text+0xac): relocation truncated to fit: R_MIPS_26 against `__sanitizer_cov_trace_pc'
init/main.o: in function `quiet_kernel':
main.c:(.init.text+0x118): relocation truncated to fit: R_MIPS_26 against `_mcount'
main.c:(.init.text+0x128): relocation truncated to fit: R_MIPS_26 against `__sanitizer_cov_trace_pc'
init/main.o: in function `init_setup':
main.c:(.init.text+0x1a4): relocation truncated to fit: R_MIPS_26 against `_mcount'
main.c:(.init.text+0x1c8): relocation truncated to fit: R_MIPS_26 against `__sanitizer_cov_trace_pc'
main.c:(.init.text+0x1e8): relocation truncated to fit: R_MIPS_26 against `__sanitizer_cov_trace_pc'
main.c:(.init.text+0x1fc): additional relocation overflows omitted from the output
mips-linux-ld: drivers/watchdog/rti_wdt.o: in function `rti_wdt_probe':
>> rti_wdt.c:(.text.rti_wdt_probe+0x33c): undefined reference to `__udivdi3'
>> mips-linux-ld: rti_wdt.c:(.text.rti_wdt_probe+0x35c): undefined reference to `__udivdi3'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1483:13: sparse: sparse: cast removes address space '__user' of expression
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 11ba468877bb23f28956a35e896356252d63c983
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 4 weeks ago
config: powerpc-randconfig-s032-20200714 (attached as .config)
compiler: powerpc64-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.2-37-gc9676a3b-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# 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=powerpc
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 >>)
>> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1483:13: sparse: sparse: cast removes address space '__user' of expression
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1485:13: sparse: sparse: cast removes address space '__user' of expression
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1611:13: sparse: sparse: cast removes address space '__user' of expression
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1613:13: sparse: sparse: cast removes address space '__user' of expression
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1688:13: sparse: sparse: cast removes address space '__user' of expression
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1691:13: sparse: sparse: cast removes address space '__user' of expression
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1738:13: sparse: sparse: cast removes address space '__user' of expression
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1768:59: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *uptr @@ got struct vchiq_header *[addressable] header @@
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1768:59: sparse: expected void [noderef] __user *uptr
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1768:59: sparse: got struct vchiq_header *[addressable] header
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1770:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *uptr @@ got void *[addressable] service_userdata @@
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1770:45: sparse: expected void [noderef] __user *uptr
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1770:45: sparse: got void *[addressable] service_userdata
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1772:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __user *uptr @@ got void *[addressable] bulk_userdata @@
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1772:45: sparse: expected void [noderef] __user *uptr
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1772:45: sparse: got void *[addressable] bulk_userdata
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1826:13: sparse: sparse: cast removes address space '__user' of expression
--
>> drivers/rpmsg/qcom_glink_smem.c:93:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *s @@ got void * @@
>> drivers/rpmsg/qcom_glink_smem.c:93:48: sparse: expected void const volatile [noderef] __iomem *s
drivers/rpmsg/qcom_glink_smem.c:93:48: sparse: got void *
>> drivers/rpmsg/qcom_glink_smem.c:96:47: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *s @@ got void *fifo @@
drivers/rpmsg/qcom_glink_smem.c:96:47: sparse: expected void const volatile [noderef] __iomem *s
drivers/rpmsg/qcom_glink_smem.c:96:47: sparse: got void *fifo
vim +/__user +1483 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
5569a1260933ae Michael Zoran 2017-03-07 1459
5569a1260933ae Michael Zoran 2017-03-07 1460 #define VCHIQ_IOC_CREATE_SERVICE32 \
5569a1260933ae Michael Zoran 2017-03-07 1461 _IOWR(VCHIQ_IOC_MAGIC, 2, struct vchiq_create_service32)
5569a1260933ae Michael Zoran 2017-03-07 1462
5569a1260933ae Michael Zoran 2017-03-07 1463 static long
5569a1260933ae Michael Zoran 2017-03-07 1464 vchiq_compat_ioctl_create_service(
5569a1260933ae Michael Zoran 2017-03-07 1465 struct file *file,
5569a1260933ae Michael Zoran 2017-03-07 1466 unsigned int cmd,
5569a1260933ae Michael Zoran 2017-03-07 1467 unsigned long arg)
5569a1260933ae Michael Zoran 2017-03-07 1468 {
562943286c7466 Dominic Braun 2018-12-14 1469 struct vchiq_create_service __user *args;
5569a1260933ae Michael Zoran 2017-03-07 1470 struct vchiq_create_service32 __user *ptrargs32 =
5569a1260933ae Michael Zoran 2017-03-07 1471 (struct vchiq_create_service32 __user *)arg;
5569a1260933ae Michael Zoran 2017-03-07 1472 struct vchiq_create_service32 args32;
5569a1260933ae Michael Zoran 2017-03-07 1473 long ret;
5569a1260933ae Michael Zoran 2017-03-07 1474
5569a1260933ae Michael Zoran 2017-03-07 1475 args = compat_alloc_user_space(sizeof(*args));
5569a1260933ae Michael Zoran 2017-03-07 1476 if (!args)
5569a1260933ae Michael Zoran 2017-03-07 1477 return -EFAULT;
5569a1260933ae Michael Zoran 2017-03-07 1478
ffb99752e93053 Jasminko Dedic 2019-03-25 1479 if (copy_from_user(&args32, ptrargs32, sizeof(args32)))
5569a1260933ae Michael Zoran 2017-03-07 1480 return -EFAULT;
5569a1260933ae Michael Zoran 2017-03-07 1481
5569a1260933ae Michael Zoran 2017-03-07 1482 if (put_user(args32.params.fourcc, &args->params.fourcc) ||
5569a1260933ae Michael Zoran 2017-03-07 @1483 put_user(compat_ptr(args32.params.callback),
5569a1260933ae Michael Zoran 2017-03-07 1484 &args->params.callback) ||
5569a1260933ae Michael Zoran 2017-03-07 1485 put_user(compat_ptr(args32.params.userdata),
5569a1260933ae Michael Zoran 2017-03-07 1486 &args->params.userdata) ||
5569a1260933ae Michael Zoran 2017-03-07 1487 put_user(args32.params.version, &args->params.version) ||
5569a1260933ae Michael Zoran 2017-03-07 1488 put_user(args32.params.version_min,
5569a1260933ae Michael Zoran 2017-03-07 1489 &args->params.version_min) ||
5569a1260933ae Michael Zoran 2017-03-07 1490 put_user(args32.is_open, &args->is_open) ||
5569a1260933ae Michael Zoran 2017-03-07 1491 put_user(args32.is_vchi, &args->is_vchi) ||
5569a1260933ae Michael Zoran 2017-03-07 1492 put_user(args32.handle, &args->handle))
5569a1260933ae Michael Zoran 2017-03-07 1493 return -EFAULT;
5569a1260933ae Michael Zoran 2017-03-07 1494
5569a1260933ae Michael Zoran 2017-03-07 1495 ret = vchiq_ioctl(file, VCHIQ_IOC_CREATE_SERVICE, (unsigned long)args);
5569a1260933ae Michael Zoran 2017-03-07 1496
5569a1260933ae Michael Zoran 2017-03-07 1497 if (ret < 0)
5569a1260933ae Michael Zoran 2017-03-07 1498 return ret;
5569a1260933ae Michael Zoran 2017-03-07 1499
5569a1260933ae Michael Zoran 2017-03-07 1500 if (get_user(args32.handle, &args->handle))
5569a1260933ae Michael Zoran 2017-03-07 1501 return -EFAULT;
5569a1260933ae Michael Zoran 2017-03-07 1502
5569a1260933ae Michael Zoran 2017-03-07 1503 if (copy_to_user(&ptrargs32->handle,
5569a1260933ae Michael Zoran 2017-03-07 1504 &args32.handle,
5569a1260933ae Michael Zoran 2017-03-07 1505 sizeof(args32.handle)))
5569a1260933ae Michael Zoran 2017-03-07 1506 return -EFAULT;
5569a1260933ae Michael Zoran 2017-03-07 1507
5569a1260933ae Michael Zoran 2017-03-07 1508 return 0;
5569a1260933ae Michael Zoran 2017-03-07 1509 }
5569a1260933ae Michael Zoran 2017-03-07 1510
:::::: The code at line 1483 was first introduced by commit
:::::: 5569a1260933ae105acdd50d70decfa868f7c3b5 staging: vchiq_arm: Add compatibility wrappers for ioctls
:::::: TO: Michael Zoran <mzoran(a)crowfest.net>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-next:master 7820/7824] drivers/sh/clk/cpg.c:49:9: error: assignment to 'unsigned int from incompatible pointer type 'unsigned int void
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: be978f8feb1d4678b941a3ccf181eea1039110e2
commit: a28c9475256ffcbc9fb715b316fcb5e95e4df9be [7820/7824] sh: clkfwk: remove r8/r16/r32
config: sh-se7721_defconfig (attached as .config)
compiler: sh4-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 checkout a28c9475256ffcbc9fb715b316fcb5e95e4df9be
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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/sh/clk/cpg.c: In function 'sh_clk_mstp_enable':
>> drivers/sh/clk/cpg.c:49:9: error: assignment to 'unsigned int (*)(void *)' from incompatible pointer type 'unsigned int (*)(const void *)' [-Werror=incompatible-pointer-types]
49 | read = ioread8;
| ^
drivers/sh/clk/cpg.c:51:9: error: assignment to 'unsigned int (*)(void *)' from incompatible pointer type 'unsigned int (*)(const void *)' [-Werror=incompatible-pointer-types]
51 | read = ioread16;
| ^
drivers/sh/clk/cpg.c:53:9: error: assignment to 'unsigned int (*)(void *)' from incompatible pointer type 'unsigned int (*)(const void *)' [-Werror=incompatible-pointer-types]
53 | read = ioread32;
| ^
cc1: some warnings being treated as errors
vim +49 drivers/sh/clk/cpg.c
38
39 static int sh_clk_mstp_enable(struct clk *clk)
40 {
41 sh_clk_write(sh_clk_read(clk) & ~(1 << clk->enable_bit), clk);
42 if (clk->status_reg) {
43 unsigned int (*read)(void __iomem *addr);
44 int i;
45 void __iomem *mapped_status = (phys_addr_t)clk->status_reg -
46 (phys_addr_t)clk->enable_reg + clk->mapped_reg;
47
48 if (clk->flags & CLK_ENABLE_REG_8BIT)
> 49 read = ioread8;
50 else if (clk->flags & CLK_ENABLE_REG_16BIT)
51 read = ioread16;
52 else
53 read = ioread32;
54
55 for (i = 1000;
56 (read(mapped_status) & (1 << clk->enable_bit)) && i;
57 i--)
58 cpu_relax();
59 if (!i) {
60 pr_err("cpg: failed to enable %p[%d]\n",
61 clk->enable_reg, clk->enable_bit);
62 return -ETIMEDOUT;
63 }
64 }
65 return 0;
66 }
67
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH bpf-next 06/13] bpf: implement bpf iterator for array maps
by kernel test robot
Hi Yonghong,
I love your patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Yonghong-Song/bpf-implement-bpf-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: arc-allyesconfig (attached as .config)
compiler: arc-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
# 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/bpf/arraymap.c: In function '__bpf_array_map_seq_show':
>> kernel/bpf/arraymap.c:540:20: warning: variable 'array' set but not used [-Wunused-but-set-variable]
540 | struct bpf_array *array;
| ^~~~~
In file included from include/linux/perf_event.h:25,
from kernel/bpf/arraymap.c:11:
At top level:
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 +/array +540 kernel/bpf/arraymap.c
533
534 static int __bpf_array_map_seq_show(struct seq_file *seq, void *v)
535 {
536 struct bpf_iter_seq_array_map_info *info = seq->private;
537 struct bpf_iter__bpf_map_elem ctx = {};
538 struct bpf_map *map = info->map;
539 struct bpf_iter_meta meta;
> 540 struct bpf_array *array;
541 struct bpf_prog *prog;
542 int off = 0, cpu = 0;
543 void __percpu **pptr;
544 u32 size;
545
546 meta.seq = seq;
547 prog = bpf_iter_get_info(&meta, v == NULL);
548 if (!prog)
549 return 0;
550
551 ctx.meta = &meta;
552 ctx.map = info->map;
553 if (v) {
554 ctx.key = &info->index;
555
556 array = container_of(map, struct bpf_array, map);
557 if (!info->percpu_value_buf) {
558 ctx.value = v;
559 } else {
560 pptr = v;
561 size = round_up(map->value_size, 8);
562 for_each_possible_cpu(cpu) {
563 bpf_long_memcpy(info->percpu_value_buf + off,
564 per_cpu_ptr(pptr, cpu),
565 size);
566 off += size;
567 }
568 ctx.value = info->percpu_value_buf;
569 }
570 }
571
572 return bpf_iter_run_prog(prog, &ctx);
573 }
574
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months