lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 12 Aug 2022 19:08:25 +0800
From:   kernel test robot <lkp@...el.com>
To:     Arnd Bergmann <arnd@...db.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: arch/arm/mach-mmp/devices.c:262:17: sparse: sparse: symbol
 'pxa168_u2o_resources' 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:   7ebfc85e2cd7b08f518b526173e9a33b56b3913b
commit: 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8 ARM: dove: multiplatform support
date:   4 months ago
config: arm-randconfig-s041-20220812 (https://download.01.org/0day-ci/archive/20220812/202208121852.EWOy4J0A-lkp@intel.com/config)
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=09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8
        # 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-mmp/ arch/arm/mach-socfpga/ drivers/usb/gadget/udc/

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/mach-mmp/devices.c:241:17: sparse: sparse: symbol 'pxa168_usb_phy_resources' was not declared. Should it be static?
>> arch/arm/mach-mmp/devices.c:262:17: sparse: sparse: symbol 'pxa168_u2o_resources' was not declared. Should it be static?
--
>> arch/arm/mach-socfpga/pm.c:75:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const * @@     got void [noderef] __iomem *[assigned] suspend_ocram_base @@
   arch/arm/mach-socfpga/pm.c:75:25: sparse:     expected void const *
   arch/arm/mach-socfpga/pm.c:75:25: sparse:     got void [noderef] __iomem *[assigned] suspend_ocram_base
>> arch/arm/mach-socfpga/pm.c:75:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const * @@     got void [noderef] __iomem *[assigned] suspend_ocram_base @@
   arch/arm/mach-socfpga/pm.c:75:25: sparse:     expected void const *
   arch/arm/mach-socfpga/pm.c:75:25: sparse:     got void [noderef] __iomem *[assigned] suspend_ocram_base
>> arch/arm/mach-socfpga/pm.c:75:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void * @@     got void [noderef] __iomem *[assigned] suspend_ocram_base @@
   arch/arm/mach-socfpga/pm.c:75:25: sparse:     expected void *
   arch/arm/mach-socfpga/pm.c:75:25: sparse:     got void [noderef] __iomem *[assigned] suspend_ocram_base
--
>> drivers/usb/gadget/udc/atmel_usba_udc.c:1314:32: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] status @@     got restricted __le16 [usertype] @@
   drivers/usb/gadget/udc/atmel_usba_udc.c:1314:32: sparse:     expected unsigned short [usertype] status
   drivers/usb/gadget/udc/atmel_usba_udc.c:1314:32: sparse:     got restricted __le16 [usertype]
   drivers/usb/gadget/udc/atmel_usba_udc.c:1317:32: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] status @@     got restricted __le16 [usertype] @@
   drivers/usb/gadget/udc/atmel_usba_udc.c:1317:32: sparse:     expected unsigned short [usertype] status
   drivers/usb/gadget/udc/atmel_usba_udc.c:1317:32: sparse:     got restricted __le16 [usertype]
>> drivers/usb/gadget/udc/atmel_usba_udc.c:1328:40: sparse: sparse: invalid assignment: |=
>> drivers/usb/gadget/udc/atmel_usba_udc.c:1328:40: sparse:    left side has type unsigned short
>> drivers/usb/gadget/udc/atmel_usba_udc.c:1328:40: sparse:    right side has type restricted __le16

vim +/pxa168_u2o_resources +262 arch/arm/mach-mmp/devices.c

a225daf72ee788 Lubomir Rintel 2018-11-28  260  
3524080826c289 Arnd Bergmann  2014-03-12  261  #if IS_ENABLED(CONFIG_USB_MV_UDC)
75b1bdf51c4b5c Neil Zhang     2012-05-03 @262  struct resource pxa168_u2o_resources[] = {
75b1bdf51c4b5c Neil Zhang     2012-05-03  263  	/* regbase */
75b1bdf51c4b5c Neil Zhang     2012-05-03  264  	[0] = {
75b1bdf51c4b5c Neil Zhang     2012-05-03  265  		.start	= PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET,
75b1bdf51c4b5c Neil Zhang     2012-05-03  266  		.end	= PXA168_U2O_REGBASE + USB_REG_RANGE,
75b1bdf51c4b5c Neil Zhang     2012-05-03  267  		.flags	= IORESOURCE_MEM,
75b1bdf51c4b5c Neil Zhang     2012-05-03  268  		.name	= "capregs",
75b1bdf51c4b5c Neil Zhang     2012-05-03  269  	},
75b1bdf51c4b5c Neil Zhang     2012-05-03  270  	/* phybase */
75b1bdf51c4b5c Neil Zhang     2012-05-03  271  	[1] = {
75b1bdf51c4b5c Neil Zhang     2012-05-03  272  		.start	= PXA168_U2O_PHYBASE,
75b1bdf51c4b5c Neil Zhang     2012-05-03  273  		.end	= PXA168_U2O_PHYBASE + USB_PHY_RANGE,
75b1bdf51c4b5c Neil Zhang     2012-05-03  274  		.flags	= IORESOURCE_MEM,
75b1bdf51c4b5c Neil Zhang     2012-05-03  275  		.name	= "phyregs",
75b1bdf51c4b5c Neil Zhang     2012-05-03  276  	},
75b1bdf51c4b5c Neil Zhang     2012-05-03  277  	[2] = {
75b1bdf51c4b5c Neil Zhang     2012-05-03  278  		.start	= IRQ_PXA168_USB1,
75b1bdf51c4b5c Neil Zhang     2012-05-03  279  		.end	= IRQ_PXA168_USB1,
75b1bdf51c4b5c Neil Zhang     2012-05-03  280  		.flags	= IORESOURCE_IRQ,
75b1bdf51c4b5c Neil Zhang     2012-05-03  281  	},
75b1bdf51c4b5c Neil Zhang     2012-05-03  282  };
75b1bdf51c4b5c Neil Zhang     2012-05-03  283  

:::::: The code at line 262 was first introduced by commit
:::::: 75b1bdf51c4b5c383296de2df9ad83b1b8dd287f ARM: mmp: add usb device support for PXA910

:::::: TO: Neil Zhang <zhangwm@...vell.com>
:::::: CC: Haojian Zhuang <haojian.zhuang@...il.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ