lkml.org 
[lkml]   [2022]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 20/28] mfd: arizona: Remove #ifdef guards for PM related functions
Hi Paul,

I love your patch! Yet something to improve:

[auto build test ERROR on v5.19]
[cannot apply to lee-mfd/for-mfd-next linus/master next-20220805]
[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/Paul-Cercueil/mfd-Remove-ifdef-guards-for-PM-functions/20220807-225947
base: 3d7cb6b04c3f3115719235cc6866b10326de34cd
config: hexagon-randconfig-r013-20220807 (https://download.01.org/0day-ci/archive/20220808/202208080141.UIoxRyzL-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 5f1c7e2cc5a3c07cbc2412e851a7283c1841f520)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/03342844cafff973ffa39ce471f64a76c4d87b06
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Paul-Cercueil/mfd-Remove-ifdef-guards-for-PM-functions/20220807-225947
git checkout 03342844cafff973ffa39ce471f64a76c4d87b06
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/mfd/arizona-core.c:788:25: error: static declaration of 'arizona_pm_ops' follows non-static declaration
const struct dev_pm_ops arizona_pm_ops = {
^
drivers/mfd/arizona.h:29:32: note: previous declaration is here
extern const struct dev_pm_ops arizona_pm_ops;
^
1 error generated.


vim +/arizona_pm_ops +788 drivers/mfd/arizona-core.c

dc781d0e10fca2 Mark Brown 2013-01-27 784
03342844cafff9 Paul Cercueil 2022-08-07 785 #ifndef CONFIG_PM
03342844cafff9 Paul Cercueil 2022-08-07 786 static __maybe_unused
03342844cafff9 Paul Cercueil 2022-08-07 787 #endif
3cc72986947501 Mark Brown 2012-06-19 @788 const struct dev_pm_ops arizona_pm_ops = {
03342844cafff9 Paul Cercueil 2022-08-07 789 RUNTIME_PM_OPS(arizona_runtime_suspend,
3cc72986947501 Mark Brown 2012-06-19 790 arizona_runtime_resume,
3cc72986947501 Mark Brown 2012-06-19 791 NULL)
03342844cafff9 Paul Cercueil 2022-08-07 792 SYSTEM_SLEEP_PM_OPS(arizona_suspend, arizona_resume)
03342844cafff9 Paul Cercueil 2022-08-07 793 NOIRQ_SYSTEM_SLEEP_PM_OPS(arizona_suspend_noirq,
3612b27cfb4a07 Charles Keepax 2016-08-30 794 arizona_resume_noirq)
3cc72986947501 Mark Brown 2012-06-19 795 };
03342844cafff9 Paul Cercueil 2022-08-07 796 #ifdef CONFIG_PM
3cc72986947501 Mark Brown 2012-06-19 797 EXPORT_SYMBOL_GPL(arizona_pm_ops);
03342844cafff9 Paul Cercueil 2022-08-07 798 #endif
3cc72986947501 Mark Brown 2012-06-19 799

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

\
 
 \ /
  Last update: 2022-08-07 19:35    [W:0.465 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site