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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202212070624.HcjgKbpI-lkp@intel.com>
Date:   Wed, 7 Dec 2022 06:50:59 +0800
From:   kernel test robot <lkp@...el.com>
To:     Song Chen <chensong_2000@....cn>, rostedt@...dmis.org,
        mhiramat@...nel.org, arnd@...db.de
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        linux-trace-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
        Song Chen <chensong_2000@....cn>
Subject: Re: [PATCH v3 3/4] include/asm-generic/io.h: remove performing
 pointer arithmetic on a null pointer

Hi Song,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on arnd-asm-generic/master]
[also build test WARNING on linus/master v6.1-rc8 next-20221206]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Song-Chen/reorganize-trace_peobe_tmpl-h/20221206-205410
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master
patch link:    https://lore.kernel.org/r/1670229006-4063-1-git-send-email-chensong_2000%40189.cn
patch subject: [PATCH v3 3/4] include/asm-generic/io.h: remove performing pointer arithmetic on a null pointer
config: arc-randconfig-s051-20221206
compiler: arc-elf-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://github.com/intel-lab-lkp/linux/commit/7dbc7861ae2072e177c0665ac10fe0e3810bd454
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Song-Chen/reorganize-trace_peobe_tmpl-h/20221206-205410
        git checkout 7dbc7861ae2072e177c0665ac10fe0e3810bd454
        # 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=arc SHELL=/bin/bash drivers/i2c/busses/

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 >>)
   drivers/i2c/busses/i2c-parport.c: note: in included file (through arch/arc/include/asm/io.h, include/linux/parport_pc.h, include/linux/parport.h):
>> include/asm-generic/io.h:586:28: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *pci_iobase @@     got void [noderef] __iomem * @@
   include/asm-generic/io.h:586:28: sparse:     expected void *pci_iobase
   include/asm-generic/io.h:586:28: sparse:     got void [noderef] __iomem *
   include/asm-generic/io.h:589:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   include/asm-generic/io.h:589:40: sparse:     expected void volatile [noderef] __iomem *addr
   include/asm-generic/io.h:589:40: sparse:     got void *
>> include/asm-generic/io.h:586:28: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *pci_iobase @@     got void [noderef] __iomem * @@
   include/asm-generic/io.h:586:28: sparse:     expected void *pci_iobase
   include/asm-generic/io.h:586:28: sparse:     got void [noderef] __iomem *
   include/asm-generic/io.h:589:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   include/asm-generic/io.h:589:40: sparse:     expected void volatile [noderef] __iomem *addr
   include/asm-generic/io.h:589:40: sparse:     got void *
>> include/asm-generic/io.h:586:28: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *pci_iobase @@     got void [noderef] __iomem * @@
   include/asm-generic/io.h:586:28: sparse:     expected void *pci_iobase
   include/asm-generic/io.h:586:28: sparse:     got void [noderef] __iomem *
   include/asm-generic/io.h:589:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   include/asm-generic/io.h:589:40: sparse:     expected void volatile [noderef] __iomem *addr
   include/asm-generic/io.h:589:40: sparse:     got void *
   include/asm-generic/io.h:545:28: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *pci_iobase @@     got void [noderef] __iomem * @@
   include/asm-generic/io.h:545:28: sparse:     expected void *pci_iobase
   include/asm-generic/io.h:545:28: sparse:     got void [noderef] __iomem *
   include/asm-generic/io.h:548:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   include/asm-generic/io.h:548:38: sparse:     expected void const volatile [noderef] __iomem *addr
   include/asm-generic/io.h:548:38: sparse:     got void *
   include/asm-generic/io.h:545:28: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *pci_iobase @@     got void [noderef] __iomem * @@
   include/asm-generic/io.h:545:28: sparse:     expected void *pci_iobase
   include/asm-generic/io.h:545:28: sparse:     got void [noderef] __iomem *
   include/asm-generic/io.h:548:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   include/asm-generic/io.h:548:38: sparse:     expected void const volatile [noderef] __iomem *addr
   include/asm-generic/io.h:548:38: sparse:     got void *
>> include/asm-generic/io.h:586:28: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *pci_iobase @@     got void [noderef] __iomem * @@
   include/asm-generic/io.h:586:28: sparse:     expected void *pci_iobase
   include/asm-generic/io.h:586:28: sparse:     got void [noderef] __iomem *
   include/asm-generic/io.h:589:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   include/asm-generic/io.h:589:40: sparse:     expected void volatile [noderef] __iomem *addr
   include/asm-generic/io.h:589:40: sparse:     got void *
>> include/asm-generic/io.h:586:28: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *pci_iobase @@     got void [noderef] __iomem * @@
   include/asm-generic/io.h:586:28: sparse:     expected void *pci_iobase
   include/asm-generic/io.h:586:28: sparse:     got void [noderef] __iomem *
   include/asm-generic/io.h:589:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   include/asm-generic/io.h:589:40: sparse:     expected void volatile [noderef] __iomem *addr
   include/asm-generic/io.h:589:40: sparse:     got void *
>> include/asm-generic/io.h:586:28: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void *pci_iobase @@     got void [noderef] __iomem * @@
   include/asm-generic/io.h:586:28: sparse:     expected void *pci_iobase
   include/asm-generic/io.h:586:28: sparse:     got void [noderef] __iomem *
   include/asm-generic/io.h:589:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   include/asm-generic/io.h:589:40: sparse:     expected void volatile [noderef] __iomem *addr
   include/asm-generic/io.h:589:40: sparse:     got void *

vim +586 include/asm-generic/io.h

   581	
   582	#if !defined(outb) && !defined(_outb)
   583	#define _outb _outb
   584	static inline void _outb(u8 value, unsigned long addr)
   585	{
 > 586		void *pci_iobase = PCI_IOBASE;
   587	
   588		__io_pbw();
   589		__raw_writeb(value, pci_iobase + addr);
   590		__io_paw();
   591	}
   592	#endif
   593	

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

View attachment "config" of type "text/plain" (143900 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ