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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 9 Nov 2022 02:17:52 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jim Liu <jim.t90615@...il.com>, JJLIU0@...oton.com,
        KWLIU@...oton.com, linus.walleij@...aro.org, brgl@...ev.pl,
        robh+dt@...nel.org, krzysztof.kozlowski+dt@...aro.org
Cc:     oe-kbuild-all@...ts.linux.dev, devicetree@...r.kernel.org,
        linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
        openbmc@...ts.ozlabs.org
Subject: Re: [PATCH v2 1/3] gpio:gpio-npcm-sgpio: Add Nuvoton sgpio driver

Hi Jim,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on brgl/gpio/for-next]
[also build test WARNING on robh/for-next linus/master v6.1-rc4 next-20221108]
[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/Jim-Liu/Support-Nuvoton-NPCM750-SGPIO/20221108-173059
base:   https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next
patch link:    https://lore.kernel.org/r/20221108092840.14945-2-JJLIU0%40nuvoton.com
patch subject: [PATCH v2 1/3] gpio:gpio-npcm-sgpio: Add Nuvoton sgpio driver
config: sparc-randconfig-s032-20221108
compiler: sparc-linux-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/cd75b3ccf74c156e0116e57fc76169afd9f2163a
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Jim-Liu/Support-Nuvoton-NPCM750-SGPIO/20221108-173059
        git checkout cd75b3ccf74c156e0116e57fc76169afd9f2163a
        # 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=sparc SHELL=/bin/bash drivers/gpio/

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/gpio/gpio-npcm-sgpio.c:148:24: sparse: sparse: incorrect type in return expression (different base types) @@     expected void [noderef] __iomem * @@     got int @@
   drivers/gpio/gpio-npcm-sgpio.c:148:24: sparse:     expected void [noderef] __iomem *
   drivers/gpio/gpio-npcm-sgpio.c:148:24: sparse:     got int

vim +148 drivers/gpio/gpio-npcm-sgpio.c

   131	
   132	static void __iomem *bank_reg(struct npcm_sgpio *gpio,
   133				      const struct npcm_sgpio_bank *bank,
   134					const enum npcm_sgpio_reg reg)
   135	{
   136		switch (reg) {
   137		case READ_DATA:
   138			return gpio->base + bank->rdata_reg;
   139		case WRITE_DATA:
   140			return gpio->base + bank->wdata_reg;
   141		case EVENT_CFG:
   142			return gpio->base + bank->event_config;
   143		case EVENT_STS:
   144			return gpio->base + bank->event_status;
   145		default:
   146			/* acturally if code runs to here, it's an error case */
   147			WARN(1, "NPCM SGPIO REG SET failed!!\n");
 > 148			return -EINVAL;
   149		}
   150	}
   151	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ