Re: [PATCH v10 03/13] media: amphion: add amphion vpu device driver

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

 



Hi Ming,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on 64cdf7e5a3aac0e7c9efdb079e74e22875b0419a]

url:    https://github.com/0day-ci/linux/commits/Ming-Qian/amphion-video-decoder-encoder-driver/20211013-163124
base:   64cdf7e5a3aac0e7c9efdb079e74e22875b0419a
config: arm64-randconfig-r015-20211014 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6c76d0101193aa4eb891a6954ff047eda2f9cf71)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/0day-ci/linux/commit/d009494a2472451fb05646fe6439d7918790be2d
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Ming-Qian/amphion-video-decoder-encoder-driver/20211013-163124
        git checkout d009494a2472451fb05646fe6439d7918790be2d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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

All warnings (new ones prefixed by >>):

>> drivers/media/platform/amphion/vpu_drv.c:215:12: warning: no previous prototype for function 'vpu_driver_init' [-Wmissing-prototypes]
   int __init vpu_driver_init(void)
              ^
   drivers/media/platform/amphion/vpu_drv.c:215:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __init vpu_driver_init(void)
   ^
   static 
>> drivers/media/platform/amphion/vpu_drv.c:226:13: warning: no previous prototype for function 'vpu_driver_exit' [-Wmissing-prototypes]
   void __exit vpu_driver_exit(void)
               ^
   drivers/media/platform/amphion/vpu_drv.c:226:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __exit vpu_driver_exit(void)
   ^
   static 
   2 warnings generated.


vim +/vpu_driver_init +215 drivers/media/platform/amphion/vpu_drv.c

   214	
 > 215	int __init vpu_driver_init(void)
   216	{
   217		int ret;
   218	
   219		ret = platform_driver_register(&amphion_vpu_driver);
   220		if (ret)
   221			return ret;
   222	
   223		return vpu_core_driver_init();
   224	}
   225	
 > 226	void __exit vpu_driver_exit(void)
   227	{
   228		vpu_core_driver_exit();
   229		platform_driver_unregister(&amphion_vpu_driver);
   230	}
   231	module_init(vpu_driver_init);
   232	module_exit(vpu_driver_exit);
   233	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux