[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202211042259.uLsx8l1W-lkp@intel.com>
Date: Fri, 4 Nov 2022 22:35:58 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: arch/arm/mm/copypage-feroceon.c:65:6: sparse: sparse: symbol
'feroceon_copy_user_highpage' was not declared. Should it be static?
Hi Stephen,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ee6050c8af96bba2f81e8b0793a1fc2f998fcd20
commit: 250c1a694ff304e5d69e74ab32755eddcc2b8f65 ARM: pxa: convert to multiplatform
date: 6 months ago
config: arm-randconfig-s033-20221104
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=250c1a694ff304e5d69e74ab32755eddcc2b8f65
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 250c1a694ff304e5d69e74ab32755eddcc2b8f65
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mach-lpc32xx/ arch/arm/mach-orion5x/ arch/arm/mach-spear/ arch/arm/mm/ drivers/irqchip/ drivers/mtd/devices/ drivers/scsi/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> arch/arm/mm/copypage-feroceon.c:65:6: sparse: sparse: symbol 'feroceon_copy_user_highpage' was not declared. Should it be static?
>> arch/arm/mm/copypage-feroceon.c:78:6: sparse: sparse: symbol 'feroceon_clear_user_highpage' was not declared. Should it be static?
--
>> arch/arm/mm/copypage-fa.c:38:6: sparse: sparse: symbol 'fa_copy_user_highpage' was not declared. Should it be static?
>> arch/arm/mm/copypage-fa.c:55:6: sparse: sparse: symbol 'fa_clear_user_highpage' was not declared. Should it be static?
--
>> arch/arm/mm/copypage-v4wt.c:43:6: sparse: sparse: symbol 'v4wt_copy_user_highpage' was not declared. Should it be static?
>> arch/arm/mm/copypage-v4wt.c:60:6: sparse: sparse: symbol 'v4wt_clear_user_highpage' was not declared. Should it be static?
--
>> arch/arm/mm/copypage-v4wb.c:47:6: sparse: sparse: symbol 'v4wb_copy_user_highpage' was not declared. Should it be static?
>> arch/arm/mm/copypage-v4wb.c:65:6: sparse: sparse: symbol 'v4wb_clear_user_highpage' was not declared. Should it be static?
--
>> arch/arm/mach-lpc32xx/pm.c:88:35: sparse: sparse: cast removes address space '__iomem' of expression
arch/arm/mach-lpc32xx/pm.c:98:17: sparse: sparse: cast removes address space '__iomem' of expression
arch/arm/mach-lpc32xx/pm.c:104:32: sparse: sparse: cast removes address space '__iomem' of expression
arch/arm/mach-lpc32xx/pm.c:109:17: sparse: sparse: cast removes address space '__iomem' of expression
--
>> arch/arm/mach-orion5x/board-d2net.c:104:13: sparse: sparse: symbol 'd2net_init' was not declared. Should it be static?
--
>> arch/arm/mach-spear/spear320.c:31:27: sparse: sparse: symbol 'spear320_dma_info' was not declared. Should it be static?
>> arch/arm/mach-spear/spear320.c:251:17: sparse: sparse: symbol 'spear320_io_desc' was not declared. Should it be static?
--
>> arch/arm/mach-spear/spear3xx.c:53:17: sparse: sparse: symbol 'spear3xx_io_desc' was not declared. Should it be static?
--
>> drivers/irqchip/irq-clps711x.c:215:13: sparse: sparse: symbol 'clps711x_intc_init' was not declared. Should it be static?
--
drivers/irqchip/irq-ftintc010.c:128:39: sparse: sparse: symbol 'ft010_irqchip_handle_irq' was not declared. Should it be static?
>> drivers/irqchip/irq-ftintc010.c:165:12: sparse: sparse: symbol 'ft010_of_init_irq' was not declared. Should it be static?
--
drivers/mtd/devices/pmc551.c:743:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [usertype] *start @@ got void [noderef] __iomem * @@
drivers/mtd/devices/pmc551.c:743:29: sparse: expected unsigned char [usertype] *start
drivers/mtd/devices/pmc551.c:743:29: sparse: got void [noderef] __iomem *
>> drivers/mtd/devices/pmc551.c:783:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned char [usertype] *start @@
drivers/mtd/devices/pmc551.c:783:53: sparse: expected void [noderef] __iomem *addr
drivers/mtd/devices/pmc551.c:783:53: sparse: got unsigned char [usertype] *start
drivers/mtd/devices/pmc551.c:833:52: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned char [usertype] *start @@
drivers/mtd/devices/pmc551.c:833:52: sparse: expected void [noderef] __iomem *addr
drivers/mtd/devices/pmc551.c:833:52: sparse: got unsigned char [usertype] *start
--
>> drivers/scsi/mvumi.c:81:52: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got void * @@
drivers/scsi/mvumi.c:81:52: sparse: expected void [noderef] __iomem *addr
drivers/scsi/mvumi.c:81:52: sparse: got void *
drivers/scsi/mvumi.c:90:39: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void * @@ got void [noderef] __iomem * @@
drivers/scsi/mvumi.c:90:39: sparse: expected void *
drivers/scsi/mvumi.c:90:39: sparse: got void [noderef] __iomem *
drivers/scsi/mvumi.c:210:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] baseaddr_l @@ got restricted __le32 [usertype] @@
drivers/scsi/mvumi.c:210:34: sparse: expected unsigned int [usertype] baseaddr_l
drivers/scsi/mvumi.c:210:34: sparse: got restricted __le32 [usertype]
drivers/scsi/mvumi.c:211:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] baseaddr_h @@ got restricted __le32 [usertype] @@
drivers/scsi/mvumi.c:211:34: sparse: expected unsigned int [usertype] baseaddr_h
drivers/scsi/mvumi.c:211:34: sparse: got restricted __le32 [usertype]
drivers/scsi/mvumi.c:213:17: sparse: sparse: invalid assignment: |=
drivers/scsi/mvumi.c:213:17: sparse: left side has type unsigned int
drivers/scsi/mvumi.c:213:17: sparse: right side has type restricted __le32
drivers/scsi/mvumi.c:213:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] size @@ got restricted __le32 [usertype] @@
drivers/scsi/mvumi.c:213:17: sparse: expected unsigned int [usertype] size
drivers/scsi/mvumi.c:213:17: sparse: got restricted __le32 [usertype]
drivers/scsi/mvumi.c:242:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] baseaddr_l @@ got restricted __le32 [usertype] @@
drivers/scsi/mvumi.c:242:26: sparse: expected unsigned int [usertype] baseaddr_l
drivers/scsi/mvumi.c:242:26: sparse: got restricted __le32 [usertype]
drivers/scsi/mvumi.c:243:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] baseaddr_h @@ got restricted __le32 [usertype] @@
drivers/scsi/mvumi.c:243:26: sparse: expected unsigned int [usertype] baseaddr_h
drivers/scsi/mvumi.c:243:26: sparse: got restricted __le32 [usertype]
drivers/scsi/mvumi.c:245:9: sparse: sparse: invalid assignment: |=
drivers/scsi/mvumi.c:245:9: sparse: left side has type unsigned int
drivers/scsi/mvumi.c:245:9: sparse: right side has type restricted __le32
drivers/scsi/mvumi.c:245:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] size @@ got restricted __le32 [usertype] @@
drivers/scsi/mvumi.c:245:9: sparse: expected unsigned int [usertype] size
drivers/scsi/mvumi.c:245:9: sparse: got restricted __le32 [usertype]
drivers/scsi/mvumi.c:407:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *inb_read_pointer @@
drivers/scsi/mvumi.c:407:40: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:407:40: sparse: got void *inb_read_pointer
drivers/scsi/mvumi.c:429:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *ib_shadow @@
drivers/scsi/mvumi.c:429:30: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:429:30: sparse: got void *ib_shadow
drivers/scsi/mvumi.c:458:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *ib_shadow @@
drivers/scsi/mvumi.c:458:31: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:458:31: sparse: got void *ib_shadow
drivers/scsi/mvumi.c:459:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *inb_write_pointer @@
drivers/scsi/mvumi.c:459:48: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:459:48: sparse: got void *inb_write_pointer
drivers/scsi/mvumi.c:496:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *outb_copy_pointer @@
drivers/scsi/mvumi.c:496:41: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:496:41: sparse: got void *outb_copy_pointer
drivers/scsi/mvumi.c:497:48: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *ob_shadow @@
drivers/scsi/mvumi.c:497:48: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:497:48: sparse: got void *ob_shadow
drivers/scsi/mvumi.c:516:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *outb_read_pointer @@
drivers/scsi/mvumi.c:516:33: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:516:33: sparse: got void *outb_read_pointer
drivers/scsi/mvumi.c:517:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *outb_copy_pointer @@
drivers/scsi/mvumi.c:517:33: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:517:33: sparse: got void *outb_copy_pointer
drivers/scsi/mvumi.c:578:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *outb_read_pointer @@
drivers/scsi/mvumi.c:578:42: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:578:42: sparse: got void *outb_read_pointer
drivers/scsi/mvumi.c:585:26: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *enpointa_mask_reg @@
drivers/scsi/mvumi.c:585:26: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:585:26: sparse: got void *enpointa_mask_reg
drivers/scsi/mvumi.c:586:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_msg1 @@
drivers/scsi/mvumi.c:586:26: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:586:26: sparse: got void *arm_to_pciea_msg1
drivers/scsi/mvumi.c:589:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *pciea_to_arm_drbl_reg @@
drivers/scsi/mvumi.c:589:40: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:589:40: sparse: got void *pciea_to_arm_drbl_reg
drivers/scsi/mvumi.c:1281:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_drbl_reg @@
drivers/scsi/mvumi.c:1281:28: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1281:28: sparse: got void *arm_to_pciea_drbl_reg
drivers/scsi/mvumi.c:1282:28: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_drbl_reg @@
drivers/scsi/mvumi.c:1282:28: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1282:28: sparse: got void *arm_to_pciea_drbl_reg
drivers/scsi/mvumi.c:1284:48: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_mask_reg @@
drivers/scsi/mvumi.c:1284:48: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1284:48: sparse: got void *arm_to_pciea_mask_reg
drivers/scsi/mvumi.c:1285:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *enpointa_mask_reg @@
drivers/scsi/mvumi.c:1285:28: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1285:28: sparse: got void *enpointa_mask_reg
drivers/scsi/mvumi.c:1286:28: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *enpointa_mask_reg @@
drivers/scsi/mvumi.c:1286:28: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:1286:28: sparse: got void *enpointa_mask_reg
drivers/scsi/mvumi.c:612:26: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *enpointa_mask_reg @@
drivers/scsi/mvumi.c:612:26: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:612:26: sparse: got void *enpointa_mask_reg
drivers/scsi/mvumi.c:613:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_msg1 @@
drivers/scsi/mvumi.c:613:28: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:613:28: sparse: got void *arm_to_pciea_msg1
drivers/scsi/mvumi.c:615:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *pciea_to_arm_drbl_reg @@
drivers/scsi/mvumi.c:615:46: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:615:46: sparse: got void *pciea_to_arm_drbl_reg
drivers/scsi/mvumi.c:624:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void *arm_to_pciea_msg1 @@
drivers/scsi/mvumi.c:624:36: sparse: expected void const volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:624:36: sparse: got void *arm_to_pciea_msg1
drivers/scsi/mvumi.c:670:32: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *reset_enable @@
drivers/scsi/mvumi.c:670:32: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:670:32: sparse: got void *reset_enable
drivers/scsi/mvumi.c:671:34: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *reset_request @@
drivers/scsi/mvumi.c:671:34: sparse: expected void volatile [noderef] __iomem *addr
drivers/scsi/mvumi.c:671:34: sparse: got void *reset_request
drivers/scsi/mvumi.c:673:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got void *reset_enable @@
drivers/scsi/mvumi.c:673:35: sparse: expected void volatile [noderef] __iomem *addr
vim +/feroceon_copy_user_highpage +65 arch/arm/mm/copypage-feroceon.c
d73e60b7144a86 Russell King 2008-10-31 64
063b0a4207e43a Russell King 2008-10-31 @65 void feroceon_copy_user_highpage(struct page *to, struct page *from,
f00a75c094c340 Russell King 2009-10-05 66 unsigned long vaddr, struct vm_area_struct *vma)
063b0a4207e43a Russell King 2008-10-31 67 {
063b0a4207e43a Russell King 2008-10-31 68 void *kto, *kfrom;
063b0a4207e43a Russell King 2008-10-31 69
5472e862de2bc4 Cong Wang 2011-11-25 70 kto = kmap_atomic(to);
5472e862de2bc4 Cong Wang 2011-11-25 71 kfrom = kmap_atomic(from);
2725898fc9bb21 Russell King 2009-10-05 72 flush_cache_page(vma, vaddr, page_to_pfn(from));
063b0a4207e43a Russell King 2008-10-31 73 feroceon_copy_user_page(kto, kfrom);
5472e862de2bc4 Cong Wang 2011-11-25 74 kunmap_atomic(kfrom);
5472e862de2bc4 Cong Wang 2011-11-25 75 kunmap_atomic(kto);
063b0a4207e43a Russell King 2008-10-31 76 }
063b0a4207e43a Russell King 2008-10-31 77
303c6443659bc1 Russell King 2008-10-31 @78 void feroceon_clear_user_highpage(struct page *page, unsigned long vaddr)
d73e60b7144a86 Russell King 2008-10-31 79 {
5472e862de2bc4 Cong Wang 2011-11-25 80 void *ptr, *kaddr = kmap_atomic(page);
43ae286b7d4d8c Nicolas Pitre 2008-11-04 81 asm volatile ("\
43ae286b7d4d8c Nicolas Pitre 2008-11-04 82 mov r1, %2 \n\
d73e60b7144a86 Russell King 2008-10-31 83 mov r2, #0 \n\
d73e60b7144a86 Russell King 2008-10-31 84 mov r3, #0 \n\
d73e60b7144a86 Russell King 2008-10-31 85 mov r4, #0 \n\
d73e60b7144a86 Russell King 2008-10-31 86 mov r5, #0 \n\
d73e60b7144a86 Russell King 2008-10-31 87 mov r6, #0 \n\
d73e60b7144a86 Russell King 2008-10-31 88 mov r7, #0 \n\
d73e60b7144a86 Russell King 2008-10-31 89 mov ip, #0 \n\
d73e60b7144a86 Russell King 2008-10-31 90 mov lr, #0 \n\
303c6443659bc1 Russell King 2008-10-31 91 1: stmia %0, {r2-r7, ip, lr} \n\
d73e60b7144a86 Russell King 2008-10-31 92 subs r1, r1, #1 \n\
303c6443659bc1 Russell King 2008-10-31 93 mcr p15, 0, %0, c7, c14, 1 @ clean and invalidate D line\n\
43ae286b7d4d8c Nicolas Pitre 2008-11-04 94 add %0, %0, #32 \n\
d73e60b7144a86 Russell King 2008-10-31 95 bne 1b \n\
303c6443659bc1 Russell King 2008-10-31 96 mcr p15, 0, r1, c7, c10, 4 @ drain WB"
43ae286b7d4d8c Nicolas Pitre 2008-11-04 97 : "=r" (ptr)
43ae286b7d4d8c Nicolas Pitre 2008-11-04 98 : "0" (kaddr), "I" (PAGE_SIZE / 32)
303c6443659bc1 Russell King 2008-10-31 99 : "r1", "r2", "r3", "r4", "r5", "r6", "r7", "ip", "lr");
5472e862de2bc4 Cong Wang 2011-11-25 100 kunmap_atomic(kaddr);
d73e60b7144a86 Russell King 2008-10-31 101 }
d73e60b7144a86 Russell King 2008-10-31 102
:::::: The code at line 65 was first introduced by commit
:::::: 063b0a4207e43acbeff3d4b09f43e750e0212b48 [ARM] copypage: provide our own copy_user_highpage()
:::::: TO: Russell King <rmk@...-67.arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@....linux.org.uk>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (174805 bytes)
Powered by blists - more mailing lists