[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202212171443.oVaTJxhR-lkp@intel.com>
Date: Sat, 17 Dec 2022 14:41:41 +0800
From: kernel test robot <lkp@...el.com>
To: Devarsh Thakkar <devarsht@...com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <brgl@...ev.pl>,
Aswath Govindraju <a-govindraju@...com>
Subject: drivers/gpio/gpio-davinci.c:704:1: sparse: sparse: symbol
'davinci_gpio_dev_pm_ops' was not declared. Should it be static?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 77856d911a8c8724ee8e2b09d55979fc1de8f1c0
commit: 0651a730924b172476f67c7c6e01e898f84cd8f3 gpio: davinci: Add support for system suspend/resume PM
date: 5 months ago
config: arm-randconfig-s052-20221216
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=0651a730924b172476f67c7c6e01e898f84cd8f3
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0651a730924b172476f67c7c6e01e898f84cd8f3
# 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 olddefconfig
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 drivers/gpio/ kernel/
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-davinci.c:704:1: sparse: sparse: symbol 'davinci_gpio_dev_pm_ops' was not declared. Should it be static?
vim +/davinci_gpio_dev_pm_ops +704 drivers/gpio/gpio-davinci.c
700
701 DEFINE_SIMPLE_DEV_PM_OPS(davinci_gpio_dev_pm_ops, davinci_gpio_suspend,
702 davinci_gpio_resume);
703
> 704 static const struct of_device_id davinci_gpio_ids[] = {
705 { .compatible = "ti,keystone-gpio", keystone_gpio_get_irq_chip},
706 { .compatible = "ti,am654-gpio", keystone_gpio_get_irq_chip},
707 { .compatible = "ti,dm6441-gpio", davinci_gpio_get_irq_chip},
708 { /* sentinel */ },
709 };
710 MODULE_DEVICE_TABLE(of, davinci_gpio_ids);
711
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (149338 bytes)
Powered by blists - more mailing lists