[media-next:master 556/556] drivers/staging/media/atomisp/pci/atomisp_v4l2.c:395:40: warning: unused variable 'dfs_config_byt_cr'

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

 



tree:   git://linuxtv.org/mchehab/media-next.git master
head:   e2afb5f02e3a2a34982bbed4e712f7227cecf9c4
commit: e2afb5f02e3a2a34982bbed4e712f7227cecf9c4 [556/556] media: atomisp: re-enable warnings again
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2388a096e7865c043e83ece4e26654bd3d1a20d5)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git checkout e2afb5f02e3a2a34982bbed4e712f7227cecf9c4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/staging/media/atomisp/pci/atomisp_v4l2.c:395:40: warning: unused variable 'dfs_config_byt_cr' [-Wunused-const-variable]
static const struct atomisp_dfs_config dfs_config_byt_cr = {
^
1 warning generated.
--
>> drivers/staging/media/atomisp/pci/sh_css.c:1864:6: warning: no previous prototype for function 'sh_css_free' [-Wmissing-prototypes]
void sh_css_free(void *ptr)
^
drivers/staging/media/atomisp/pci/sh_css.c:1864:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sh_css_free(void *ptr)
^
static
1 warning generated.

vim +/dfs_config_byt_cr +395 drivers/staging/media/atomisp/pci/atomisp_v4l2.c

5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  394  
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23 @395  static const struct atomisp_dfs_config dfs_config_byt_cr = {
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  396  	.lowest_freq = ISP_FREQ_200MHZ,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  397  	.max_freq_at_vmin = ISP_FREQ_320MHZ,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  398  	.highest_freq = ISP_FREQ_320MHZ,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  399  	.dfs_table = dfs_rules_byt_cr,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  400  	.dfs_table_size = ARRAY_SIZE(dfs_rules_byt_cr),
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  401  };
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  402  

:::::: The code at line 395 was first introduced by commit
:::::: 5e0947450d16de5fd59fa43d04a53c5df037d54b media: atomisp: remove table duplication from dfs tables

:::::: TO: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>

---
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