[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202302050901.FR4NtarP-lkp@intel.com>
Date: Sun, 5 Feb 2023 09:41:25 +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: 95078069c1e70d1b3b141132d18d0c563acedd0c
commit: 0651a730924b172476f67c7c6e01e898f84cd8f3 gpio: davinci: Add support for system suspend/resume PM
date: 7 months ago
config: arm64-randconfig-s053-20230205 (https://download.01.org/0day-ci/archive/20230205/202302050901.FR4NtarP-lkp@intel.com/config)
compiler: aarch64-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://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=arm64 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=arm64 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-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
699
700 DEFINE_SIMPLE_DEV_PM_OPS(davinci_gpio_dev_pm_ops, davinci_gpio_suspend,
701 davinci_gpio_resume);
702
703 static const struct of_device_id davinci_gpio_ids[] = {
> 704 { .compatible = "ti,keystone-gpio", keystone_gpio_get_irq_chip},
705 { .compatible = "ti,am654-gpio", keystone_gpio_get_irq_chip},
706 { .compatible = "ti,dm6441-gpio", davinci_gpio_get_irq_chip},
707 { /* sentinel */ },
708 };
709 MODULE_DEVICE_TABLE(of, davinci_gpio_ids);
710
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
Powered by blists - more mailing lists