[media-next:master 558/558] drivers/staging/media/atomisp/pci/atomisp_v4l2.c:357:47: warning: unused variable 'dfs_rules_byt_cr'

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

 



tree:   git://linuxtv.org/mchehab/media-next.git master
head:   83fac9617e226725b6e2db4a086465cdba2db1a5
commit: 83fac9617e226725b6e2db4a086465cdba2db1a5 [558/558] media: atomisp comment an unused code
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 83fac9617e226725b6e2db4a086465cdba2db1a5
        # 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:357:47: warning: unused variable 'dfs_rules_byt_cr' [-Wunused-const-variable]
static const struct atomisp_freq_scaling_rule dfs_rules_byt_cr[] = {
^
1 warning generated.

vim +/dfs_rules_byt_cr +357 drivers/staging/media/atomisp/pci/atomisp_v4l2.c

5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  356  
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23 @357  static const struct atomisp_freq_scaling_rule dfs_rules_byt_cr[] = {
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  358  	{
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  359  		.width = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  360  		.height = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  361  		.fps = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  362  		.isp_freq = ISP_FREQ_320MHZ,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  363  		.run_mode = ATOMISP_RUN_MODE_VIDEO,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  364  	},
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  365  	{
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  366  		.width = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  367  		.height = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  368  		.fps = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  369  		.isp_freq = ISP_FREQ_320MHZ,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  370  		.run_mode = ATOMISP_RUN_MODE_STILL_CAPTURE,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  371  	},
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  372  	{
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  373  		.width = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  374  		.height = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  375  		.fps = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  376  		.isp_freq = ISP_FREQ_320MHZ,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  377  		.run_mode = ATOMISP_RUN_MODE_CONTINUOUS_CAPTURE,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  378  	},
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  379  	{
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  380  		.width = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  381  		.height = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  382  		.fps = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  383  		.isp_freq = ISP_FREQ_320MHZ,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  384  		.run_mode = ATOMISP_RUN_MODE_PREVIEW,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  385  	},
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  386  	{
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  387  		.width = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  388  		.height = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  389  		.fps = ISP_FREQ_RULE_ANY,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  390  		.isp_freq = ISP_FREQ_320MHZ,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  391  		.run_mode = ATOMISP_RUN_MODE_SDV,
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  392  	},
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  393  };
5e0947450d16de drivers/staging/media/atomisp/pci/atomisp2/atomisp_v4l2.c Mauro Carvalho Chehab 2020-04-23  394  

:::::: The code at line 357 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