All of lore.kernel.org
 help / color / mirror / Atom feed
* [xilinx-xlnx:xlnx_rebase_v5.15_LTS 622/1129] drivers/media/i2c/adv7511-v4l2.c:2245:21: warning: no previous prototype for function 'adv7511_subdev'
@ 2022-05-06 15:51 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-05-06 15:51 UTC (permalink / raw)
  To: Radhey Shyam Pandey
  Cc: llvm, kbuild-all, linux-arm-kernel, Michal Simek, Davor Joja

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head:   3076249fc30bf463f8390f89009de928ad3e95ff
commit: 59e26517c7b77c4c82aad32cfac74ae39c32b76b [622/1129] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
config: arm-randconfig-r002-20220506 (https://download.01.org/0day-ci/archive/20220506/202205062304.jxNotrGO-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e004fb787698440a387750db7f8028e7cb14cfc)
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://github.com/Xilinx/linux-xlnx/commit/59e26517c7b77c4c82aad32cfac74ae39c32b76b
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS
        git checkout 59e26517c7b77c4c82aad32cfac74ae39c32b76b
        # 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 SHELL=/bin/bash drivers/media/i2c/

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

All warnings (new ones prefixed by >>):

>> drivers/media/i2c/adv7511-v4l2.c:2245:21: warning: no previous prototype for function 'adv7511_subdev' [-Wmissing-prototypes]
   struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
                       ^
   drivers/media/i2c/adv7511-v4l2.c:2245:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
   ^
   static 
   drivers/media/i2c/adv7511-v4l2.c:304:19: warning: unused function 'adv7511_cec_write_and_or' [-Wunused-function]
   static inline int adv7511_cec_write_and_or(struct v4l2_subdev *sd, u8 reg, u8 mask,
                     ^
   drivers/media/i2c/adv7511-v4l2.c:334:20: warning: unused function 'adv7511_pktmem_wr_and_or' [-Wunused-function]
   static inline void adv7511_pktmem_wr_and_or(struct v4l2_subdev *sd, u8 reg, u8 clr_mask, u8 val_mask)
                      ^
   3 warnings generated.


vim +/adv7511_subdev +2245 drivers/media/i2c/adv7511-v4l2.c

  2244	
> 2245	struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
  2246	{
  2247		static struct v4l2_subdev *subdev;
  2248	
  2249		if (sd)
  2250			subdev = sd;
  2251	
  2252		return subdev;
  2253	}
  2254	EXPORT_SYMBOL(adv7511_subdev);
  2255	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [xilinx-xlnx:xlnx_rebase_v5.15_LTS 622/1129] drivers/media/i2c/adv7511-v4l2.c:2245:21: warning: no previous prototype for function 'adv7511_subdev'
@ 2022-05-06 15:51 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-05-06 15:51 UTC (permalink / raw)
  To: Radhey Shyam Pandey
  Cc: llvm, kbuild-all, linux-arm-kernel, Michal Simek, Davor Joja

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head:   3076249fc30bf463f8390f89009de928ad3e95ff
commit: 59e26517c7b77c4c82aad32cfac74ae39c32b76b [622/1129] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
config: arm-randconfig-r002-20220506 (https://download.01.org/0day-ci/archive/20220506/202205062304.jxNotrGO-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e004fb787698440a387750db7f8028e7cb14cfc)
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://github.com/Xilinx/linux-xlnx/commit/59e26517c7b77c4c82aad32cfac74ae39c32b76b
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS
        git checkout 59e26517c7b77c4c82aad32cfac74ae39c32b76b
        # 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 SHELL=/bin/bash drivers/media/i2c/

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

All warnings (new ones prefixed by >>):

>> drivers/media/i2c/adv7511-v4l2.c:2245:21: warning: no previous prototype for function 'adv7511_subdev' [-Wmissing-prototypes]
   struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
                       ^
   drivers/media/i2c/adv7511-v4l2.c:2245:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
   ^
   static 
   drivers/media/i2c/adv7511-v4l2.c:304:19: warning: unused function 'adv7511_cec_write_and_or' [-Wunused-function]
   static inline int adv7511_cec_write_and_or(struct v4l2_subdev *sd, u8 reg, u8 mask,
                     ^
   drivers/media/i2c/adv7511-v4l2.c:334:20: warning: unused function 'adv7511_pktmem_wr_and_or' [-Wunused-function]
   static inline void adv7511_pktmem_wr_and_or(struct v4l2_subdev *sd, u8 reg, u8 clr_mask, u8 val_mask)
                      ^
   3 warnings generated.


vim +/adv7511_subdev +2245 drivers/media/i2c/adv7511-v4l2.c

  2244	
> 2245	struct v4l2_subdev *adv7511_subdev(struct v4l2_subdev *sd)
  2246	{
  2247		static struct v4l2_subdev *subdev;
  2248	
  2249		if (sd)
  2250			subdev = sd;
  2251	
  2252		return subdev;
  2253	}
  2254	EXPORT_SYMBOL(adv7511_subdev);
  2255	

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-06 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 15:51 [xilinx-xlnx:xlnx_rebase_v5.15_LTS 622/1129] drivers/media/i2c/adv7511-v4l2.c:2245:21: warning: no previous prototype for function 'adv7511_subdev' kernel test robot
2022-05-06 15:51 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.