[linux-next:master 8959/10357] drivers/pcmcia/pxa2xx_sharpsl.c:206:5: warning: no previous prototype for function 'pcmcia_collie_init'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nathan,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   4fafd96910add124586b549ad005dcd179de8a18
commit: 5eb6e280432ddc9b755193552f3a070da8d7455c [8959/10357] ARM: 9289/1: Allow pre-ARMv5 builds with ld.lld 16.0.0 and newer
config: arm-collie_defconfig (https://download.01.org/0day-ci/archive/20230204/202302040652.zkUBTjyo-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=5eb6e280432ddc9b755193552f3a070da8d7455c
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 5eb6e280432ddc9b755193552f3a070da8d7455c
        # 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=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/pcmcia/

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

All warnings (new ones prefixed by >>):

>> drivers/pcmcia/pxa2xx_sharpsl.c:206:5: warning: no previous prototype for function 'pcmcia_collie_init' [-Wmissing-prototypes]
   int pcmcia_collie_init(struct device *dev)
       ^
   drivers/pcmcia/pxa2xx_sharpsl.c:206:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int pcmcia_collie_init(struct device *dev)
   ^
   static 
   1 warning generated.


vim +/pcmcia_collie_init +206 drivers/pcmcia/pxa2xx_sharpsl.c

a63ae4427c6af6 Richard Purdie 2005-11-08  205  
34cdf25a126f05 Bill Pemberton 2012-11-19 @206  int pcmcia_collie_init(struct device *dev)
77bb86a1b9f8b8 Pavel Machek   2005-10-30  207  {
77bb86a1b9f8b8 Pavel Machek   2005-10-30  208         int ret = -ENODEV;
77bb86a1b9f8b8 Pavel Machek   2005-10-30  209  
77bb86a1b9f8b8 Pavel Machek   2005-10-30  210         if (machine_is_collie())
77bb86a1b9f8b8 Pavel Machek   2005-10-30  211                 ret = sa11xx_drv_pcmcia_probe(dev, &sharpsl_pcmcia_ops, 0, 1);
77bb86a1b9f8b8 Pavel Machek   2005-10-30  212  
77bb86a1b9f8b8 Pavel Machek   2005-10-30  213         return ret;
77bb86a1b9f8b8 Pavel Machek   2005-10-30  214  }
77bb86a1b9f8b8 Pavel Machek   2005-10-30  215  

:::::: The code at line 206 was first introduced by commit
:::::: 34cdf25a126f053698d549cc12a9c30e9a8a0bab pcmcia: remove use of __devinit

:::::: TO: Bill Pemberton <wfp5p@xxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux