Skip to contentSkip to conversation

drivers/staging/vc04_services/bcm2835-camera/controls.c:62:18: warning: variable 'mains_freq_qmenu' is not needed and will not be emitted

PATCH Philip Li 1 participant 1 message Apr 4, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20200404041239.GA38008@ubuntu-m2-xlarge-x86

Philip Li

author
#1 lore raw
Quoted 44 lines · Nathan Chancellor
Quoted 43 lines · kbuild test robot

Hi Dirk,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.14.y
head:   e0066de56999ad01b6367b6a42064233ad8bc932
commit: 88f7a6aa7fb9aa5076b65489146045dac865f1d3 [9935/9999] scripts/dtc: Remove redundant YYLOC global declaration
config: x86_64-randconfig-b002-20200403 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project f68cc2a7ed766965028b8b0f0d9300a0460c3cf1)

reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
git checkout 88f7a6aa7fb9aa5076b65489146045dac865f1d3
# save the attached .config to linux build tree
COMPILER=clang make.cross ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate

All warnings (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

drivers/staging/vc04_services/bcm2835-camera/controls.c:62:18: warning: variable 'mains_freq_qmenu' is not needed and will not be emitted [-Wunneeded-internal-declaration]

   static const s64 mains_freq_qmenu[] = {
                    ^

1 warning generated.

vim +/mains_freq_qmenu +62 drivers/staging/vc04_services/bcm2835-camera/controls.c

7b3ad5abf027b76 drivers/staging/media/platform/bcm2835/controls.c Eric Anholt 2017-01-27 61

7b3ad5abf027b76 drivers/staging/media/platform/bcm2835/controls.c Eric Anholt 2017-01-27 @62  static const s64 mains_freq_qmenu[] = {
7b3ad5abf027b76 drivers/staging/media/platform/bcm2835/controls.c Eric Anholt 2017-01-27  63  	V4L2_CID_POWER_LINE_FREQUENCY_DISABLED,
7b3ad5abf027b76 drivers/staging/media/platform/bcm2835/controls.c Eric Anholt 2017-01-27  64  	V4L2_CID_POWER_LINE_FREQUENCY_50HZ,
7b3ad5abf027b76 drivers/staging/media/platform/bcm2835/controls.c Eric Anholt 2017-01-27  65  	V4L2_CID_POWER_LINE_FREQUENCY_60HZ,
7b3ad5abf027b76 drivers/staging/media/platform/bcm2835/controls.c Eric Anholt 2017-01-27  66  	V4L2_CID_POWER_LINE_FREQUENCY_AUTO
7b3ad5abf027b76 drivers/staging/media/platform/bcm2835/controls.c Eric Anholt 2017-01-27  67  };

7b3ad5abf027b76 drivers/staging/media/platform/bcm2835/controls.c Eric Anholt 2017-01-27 68

:::::: The code at line 62 was first introduced by commit
:::::: 7b3ad5abf027b7643b38c4006d7f4ce47a86dd3a staging: Import the BCM2835 MMAL-based V4L2 camera driver.

:::::: TO: Eric Anholt <[email protected]>
:::::: CC: Greg Kroah-Hartman <[email protected]>

Quoted 7 lines
Quoted 3 lines

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

Obviously not causes by that patch... Is there any way for 0day to blacklist that patch as being a problem so that it stops sending emails to the patch author?

Got it, we will blacklist this warning, meanwhile to check the bisection to see anything we can do better.

Quoted 7 lines

I did solve this warning a while ago, it just never got backported to 4.14: https://git.kernel.org/linus/9e3701b3809ab3ef22235c96ea69510e26d18d30

Cheers,
Nathan