linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'
@ 2020-05-31  3:00 kbuild test robot
  2020-06-10 15:31 ` Jerome Brunet
  0 siblings, 1 reply; 7+ messages in thread
From: kbuild test robot @ 2020-05-31  3:00 UTC (permalink / raw)
  To: Jerome, Brunet,; +Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ffeb595d84811dde16a28b33d8a7cf26d51d51b3
commit: 33901f5b9b16d212ee58865e9e8e80fc813f12da ASoC: meson: add t9015 internal DAC driver
date:   3 months ago
config: x86_64-randconfig-r033-20200531 (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 33901f5b9b16d212ee58865e9e8e80fc813f12da
        # 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@intel.com>

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

>> sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids' [-Wunused-const-variable]
static const struct of_device_id t9015_ids[] = {
^
1 warning generated.

vim +/t9015_ids +315 sound/soc/meson/t9015.c

   314	
 > 315	static const struct of_device_id t9015_ids[] = {
   316		{ .compatible = "amlogic,t9015", },
   317		{ }
   318	};
   319	MODULE_DEVICE_TABLE(of, t9015_ids);
   320	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 46446 bytes --]

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

* Re: sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'
  2020-05-31  3:00 sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids' kbuild test robot
@ 2020-06-10 15:31 ` Jerome Brunet
  2020-06-10 16:39   ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Jerome Brunet @ 2020-06-10 15:31 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown


On Sun 31 May 2020 at 05:00, kbuild test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   ffeb595d84811dde16a28b33d8a7cf26d51d51b3
> commit: 33901f5b9b16d212ee58865e9e8e80fc813f12da ASoC: meson: add t9015 internal DAC driver
> date:   3 months ago
> config: x86_64-randconfig-r033-20200531 (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 33901f5b9b16d212ee58865e9e8e80fc813f12da
>         # 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@intel.com>
>
> All warnings (new ones prefixed by >>, old ones prefixed by <<):
>
>>> sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids' [-Wunused-const-variable]
> static const struct of_device_id t9015_ids[] = {
> ^
> 1 warning generated.
>
> vim +/t9015_ids +315 sound/soc/meson/t9015.c
>
>    314	
>  > 315	static const struct of_device_id t9015_ids[] = {
>    316		{ .compatible = "amlogic,t9015", },
>    317		{ }
>    318	};
>    319	MODULE_DEVICE_TABLE(of, t9015_ids);
>    320	

Hi,

I'm not sure what to do with this report.
I tried to reproduce has instructed, the log is full of warnings and the
compilation eventually fails to link.

It seems that most (if not all) drivers with a MODULE_DEVICE_TABLE() show
this warning with the provided .config (COMPILE_TEST).

When compiled with gcc, no such warning is shown.
I can remove COMPILE_TEST for this driver, it will make the warning go
away but I'm not sure it is appropriate.

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


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

* Re: sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'
  2020-06-10 15:31 ` Jerome Brunet
@ 2020-06-10 16:39   ` Mark Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2020-06-10 16:39 UTC (permalink / raw)
  To: Jerome Brunet
  Cc: kbuild test robot, kbuild-all, clang-built-linux, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

On Wed, Jun 10, 2020 at 05:31:03PM +0200, Jerome Brunet wrote:

> I'm not sure what to do with this report.
> I tried to reproduce has instructed, the log is full of warnings and the
> compilation eventually fails to link.

> It seems that most (if not all) drivers with a MODULE_DEVICE_TABLE() show
> this warning with the provided .config (COMPILE_TEST).

> When compiled with gcc, no such warning is shown.
> I can remove COMPILE_TEST for this driver, it will make the warning go
> away but I'm not sure it is appropriate.

I'd just ignore it for now - it seems like there's lots of false
positives from this warning which like you say are more global issues
and only show up at W=1.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'
@ 2020-09-27  1:43 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-09-27  1:43 UTC (permalink / raw)
  To: Jerome Brunet; +Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 1925 bytes --]

Hi Jerome,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a1bffa48745afbb54cb4f873bba783b2ae8be042
commit: 33901f5b9b16d212ee58865e9e8e80fc813f12da ASoC: meson: add t9015 internal DAC driver
date:   7 months ago
config: x86_64-randconfig-r033-20200927 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a83eb048cb9a75da7a07a9d5318bbdbf54885c87)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=33901f5b9b16d212ee58865e9e8e80fc813f12da
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 33901f5b9b16d212ee58865e9e8e80fc813f12da
        # 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: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids' [-Wunused-const-variable]
   static const struct of_device_id t9015_ids[] = {
                                    ^
   1 warning generated.

vim +/t9015_ids +315 sound/soc/meson/t9015.c

   314	
 > 315	static const struct of_device_id t9015_ids[] = {
   316		{ .compatible = "amlogic,t9015", },
   317		{ }
   318	};
   319	MODULE_DEVICE_TABLE(of, t9015_ids);
   320	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41508 bytes --]

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

* sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'
@ 2020-09-18  6:37 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-09-18  6:37 UTC (permalink / raw)
  To: Jerome Brunet; +Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 1955 bytes --]

Hi Jerome,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   10b82d5176488acee2820e5a2cf0f2ec5c3488b6
commit: 33901f5b9b16d212ee58865e9e8e80fc813f12da ASoC: meson: add t9015 internal DAC driver
date:   7 months ago
config: x86_64-randconfig-a011-20200918 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0ff28fa6a75617d61b1aeea77463d6a1684c3c89)
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 33901f5b9b16d212ee58865e9e8e80fc813f12da
        # 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: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids' [-Wunused-const-variable]
   static const struct of_device_id t9015_ids[] = {
                                    ^
   1 warning generated.

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=33901f5b9b16d212ee58865e9e8e80fc813f12da
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 33901f5b9b16d212ee58865e9e8e80fc813f12da
vim +/t9015_ids +315 sound/soc/meson/t9015.c

   314	
 > 315	static const struct of_device_id t9015_ids[] = {
   316		{ .compatible = "amlogic,t9015", },
   317		{ }
   318	};
   319	MODULE_DEVICE_TABLE(of, t9015_ids);
   320	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 43524 bytes --]

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

* sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'
@ 2020-07-26 20:54 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-07-26 20:54 UTC (permalink / raw)
  To: Jerome Brunet; +Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]

Hi Jerome,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1ada9010e578150984039a770c98f41799b30bc4
commit: 33901f5b9b16d212ee58865e9e8e80fc813f12da ASoC: meson: add t9015 internal DAC driver
date:   5 months ago
config: x86_64-randconfig-r005-20200726 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 8bf4c1f4fb257774f66c8cda07adc6c5e8668326)
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 33901f5b9b16d212ee58865e9e8e80fc813f12da
        # 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: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids' [-Wunused-const-variable]
   static const struct of_device_id t9015_ids[] = {
                                    ^
   1 warning generated.

vim +/t9015_ids +315 sound/soc/meson/t9015.c

   314	
 > 315	static const struct of_device_id t9015_ids[] = {
   316		{ .compatible = "amlogic,t9015", },
   317		{ }
   318	};
   319	MODULE_DEVICE_TABLE(of, t9015_ids);
   320	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36977 bytes --]

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

* sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'
@ 2020-06-22  9:47 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-06-22  9:47 UTC (permalink / raw)
  To: Jerome Brunet; +Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

[-- Attachment #1: Type: text/plain, Size: 1642 bytes --]

Hi Jerome,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   625d3449788f85569096780592549d0340e9c0c7
commit: 33901f5b9b16d212ee58865e9e8e80fc813f12da ASoC: meson: add t9015 internal DAC driver
date:   4 months ago
config: x86_64-randconfig-a016-20200622 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 1d4c87335d5236ea1f35937e1014980ba961ae34)
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 33901f5b9b16d212ee58865e9e8e80fc813f12da
        # 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: kernel test robot <lkp@intel.com>

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

>> sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids' [-Wunused-const-variable]
static const struct of_device_id t9015_ids[] = {
^
1 warning generated.

vim +/t9015_ids +315 sound/soc/meson/t9015.c

   314	
 > 315	static const struct of_device_id t9015_ids[] = {
   316		{ .compatible = "amlogic,t9015", },
   317		{ }
   318	};
   319	MODULE_DEVICE_TABLE(of, t9015_ids);
   320	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37411 bytes --]

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

end of thread, other threads:[~2020-09-27  1:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-31  3:00 sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids' kbuild test robot
2020-06-10 15:31 ` Jerome Brunet
2020-06-10 16:39   ` Mark Brown
2020-06-22  9:47 kernel test robot
2020-07-26 20:54 kernel test robot
2020-09-18  6:37 kernel test robot
2020-09-27  1:43 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).