public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* drivers/soc/mediatek/mtk-svs.c:1287:34: warning: unused variable 'svs_of_match'
@ 2022-08-09 20:49 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-08-09 20:49 UTC (permalink / raw)
  To: Roger Lu
  Cc: llvm, kbuild-all, linux-kernel, Matthias Brugger,
	AngeloGioacchino Del Regno, Kevin Hilman

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   15205c2829ca2cbb5ece5ceaafe1171a8470e62b
commit: 681a02e9500073cd8b9c25a04f06166254b5a879 soc: mediatek: SVS: introduce MTK SVS engine
date:   8 weeks ago
config: hexagon-randconfig-r006-20220810 (https://download.01.org/0day-ci/archive/20220810/202208100401.D7X9SFYs-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 5f1c7e2cc5a3c07cbc2412e851a7283c1841f520)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=681a02e9500073cd8b9c25a04f06166254b5a879
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 681a02e9500073cd8b9c25a04f06166254b5a879
        # 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=hexagon SHELL=/bin/bash drivers/soc/mediatek/

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

All warnings (new ones prefixed by >>):

   drivers/soc/mediatek/mtk-svs.c:853:12: warning: unused function 'svs_suspend' [-Wunused-function]
   static int svs_suspend(struct device *dev)
              ^
   drivers/soc/mediatek/mtk-svs.c:880:12: warning: unused function 'svs_resume' [-Wunused-function]
   static int svs_resume(struct device *dev)
              ^
>> drivers/soc/mediatek/mtk-svs.c:1287:34: warning: unused variable 'svs_of_match' [-Wunused-const-variable]
   static const struct of_device_id svs_of_match[] = {
                                    ^
   3 warnings generated.


vim +/svs_of_match +1287 drivers/soc/mediatek/mtk-svs.c

  1286	
> 1287	static const struct of_device_id svs_of_match[] = {
  1288		{
  1289			.compatible = "mediatek,mt8183-svs",
  1290			.data = &svs_mt8183_platform_data,
  1291		}, {
  1292			/* Sentinel */
  1293		},
  1294	};
  1295	

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

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

* drivers/soc/mediatek/mtk-svs.c:1287:34: warning: unused variable 'svs_of_match'
@ 2022-08-20 20:38 kernel test robot
  2022-08-26  5:38 ` Roger Lu
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-08-20 20:38 UTC (permalink / raw)
  To: Roger Lu
  Cc: llvm, kbuild-all, linux-kernel, Matthias Brugger,
	AngeloGioacchino Del Regno, Kevin Hilman

Hi Roger,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   cc1807b9158a909ffe829a5e222be756c57c9a90
commit: 681a02e9500073cd8b9c25a04f06166254b5a879 soc: mediatek: SVS: introduce MTK SVS engine
date:   9 weeks ago
config: hexagon-randconfig-r022-20220821 (https://download.01.org/0day-ci/archive/20220821/202208210442.ZL8oxHze-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project c9a41fe60ab62f7a40049c100adcc8087a47669b)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=681a02e9500073cd8b9c25a04f06166254b5a879
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 681a02e9500073cd8b9c25a04f06166254b5a879
        # 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=hexagon SHELL=/bin/bash drivers/soc/mediatek/

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

All warnings (new ones prefixed by >>):

   drivers/soc/mediatek/mtk-svs.c:853:12: warning: unused function 'svs_suspend' [-Wunused-function]
   static int svs_suspend(struct device *dev)
              ^
   drivers/soc/mediatek/mtk-svs.c:880:12: warning: unused function 'svs_resume' [-Wunused-function]
   static int svs_resume(struct device *dev)
              ^
>> drivers/soc/mediatek/mtk-svs.c:1287:34: warning: unused variable 'svs_of_match' [-Wunused-const-variable]
   static const struct of_device_id svs_of_match[] = {
                                    ^
   3 warnings generated.


vim +/svs_of_match +1287 drivers/soc/mediatek/mtk-svs.c

  1286	
> 1287	static const struct of_device_id svs_of_match[] = {
  1288		{
  1289			.compatible = "mediatek,mt8183-svs",
  1290			.data = &svs_mt8183_platform_data,
  1291		}, {
  1292			/* Sentinel */
  1293		},
  1294	};
  1295	

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

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

* Re: drivers/soc/mediatek/mtk-svs.c:1287:34: warning: unused variable 'svs_of_match'
  2022-08-20 20:38 kernel test robot
@ 2022-08-26  5:38 ` Roger Lu
  0 siblings, 0 replies; 3+ messages in thread
From: Roger Lu @ 2022-08-26  5:38 UTC (permalink / raw)
  To: kernel test robot
  Cc: llvm, kbuild-all, linux-kernel, Matthias Brugger,
	AngeloGioacchino Del Regno, Kevin Hilman

Dear all,

Sorry for late reply. These issues are fixed by below patches. Thanks for the
heads-up.

  drivers/soc/mediatek/mtk-svs.c:1481:12: error: unused function 'svs_suspend'
[-Werror,-Wunused-function]
  static int svs_suspend(struct device *dev)
             ^
  drivers/soc/mediatek/mtk-svs.c:1515:12: error: unused function 'svs_resume' [-
Werror,-Wunused-function]
  static int svs_resume(struct device *dev)

=> fixed by 
https://patchwork.kernel.org/project/linux-mediatek/patch/20220622175649.1856337-1-nathan@kernel.org/

>> drivers/soc/mediatek/mtk-svs.c:1287:34: warning: unused variable
'svs_of_match' [-Wunused-const-variable]
   static const struct of_device_id svs_of_match[] = {

=> fixed by 
https://patchwork.kernel.org/project/linux-mediatek/patch/20220726141653.177948-5-angelogioacchino.delregno@collabora.com/

Sincerely,
Roger Lu.

On Sun, 2022-08-21 at 04:38 +0800, kernel test robot wrote:
> Hi Roger,
> 
> FYI, the error/warning still remains.
> 
> tree:   
> https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git__;!!CTRNKA9wMg0ARbw!0KbjAYXXstyhJQ4NbExdZ1NlNqc0lVccMpejf3AQ2614pGuQkpDXre1pRIYXvgh9$
>   master
> head:   cc1807b9158a909ffe829a5e222be756c57c9a90
> commit: 681a02e9500073cd8b9c25a04f06166254b5a879 soc: mediatek: SVS: introduce
> MTK SVS engine
> date:   9 weeks ago
> config: hexagon-randconfig-r022-20220821 (
> https://urldefense.com/v3/__https://download.01.org/0day-ci/archive/20220821/202208210442.ZL8oxHze-lkp@intel.com/config__;!!CTRNKA9wMg0ARbw!0KbjAYXXstyhJQ4NbExdZ1NlNqc0lVccMpejf3AQ2614pGuQkpDXre1pRKmS3VSy$
>  )
> compiler: clang version 16.0.0 (
> https://urldefense.com/v3/__https://github.com/llvm/llvm-project__;!!CTRNKA9wMg0ARbw!0KbjAYXXstyhJQ4NbExdZ1NlNqc0lVccMpejf3AQ2614pGuQkpDXre1pRIUR1DJG$
> $  c9a41fe60ab62f7a40049c100adcc8087a47669b)
> reproduce (this is a W=1 build):
>         wget 
> https://urldefense.com/v3/__https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross__;!!CTRNKA9wMg0ARbw!0KbjAYXXstyhJQ4NbExdZ1NlNqc0lVccMpejf3AQ2614pGuQkpDXre1pRF4kJosK$
>   -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # 
> https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=681a02e9500073cd8b9c25a04f06166254b5a879__;!!CTRNKA9wMg0ARbw!0KbjAYXXstyhJQ4NbExdZ1NlNqc0lVccMpejf3AQ2614pGuQkpDXre1pRNjbQMgG$
>  
>         git remote add linus 
> https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git__;!!CTRNKA9wMg0ARbw!0KbjAYXXstyhJQ4NbExdZ1NlNqc0lVccMpejf3AQ2614pGuQkpDXre1pRIYXvgh9$
>  
>         git fetch --no-tags linus master
>         git checkout 681a02e9500073cd8b9c25a04f06166254b5a879
>         # 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=hexagon SHELL=/bin/bash drivers/soc/mediatek/
> 
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All warnings (new ones prefixed by >>):
> 
>    drivers/soc/mediatek/mtk-svs.c:853:12: warning: unused function
> 'svs_suspend' [-Wunused-function]
>    static int svs_suspend(struct device *dev)
>               ^
>    drivers/soc/mediatek/mtk-svs.c:880:12: warning: unused function
> 'svs_resume' [-Wunused-function]
>    static int svs_resume(struct device *dev)
>               ^
> > > drivers/soc/mediatek/mtk-svs.c:1287:34: warning: unused variable
> > > 'svs_of_match' [-Wunused-const-variable]
> 
>    static const struct of_device_id svs_of_match[] = {
>                                     ^
>    3 warnings generated.
> 
> 
> vim +/svs_of_match +1287 drivers/soc/mediatek/mtk-svs.c
> 
>   1286	
> > 1287	static const struct of_device_id svs_of_match[] = {
> 
>   1288		{
>   1289			.compatible = "mediatek,mt8183-svs",
>   1290			.data = &svs_mt8183_platform_data,
>   1291		}, {
>   1292			/* Sentinel */
>   1293		},
>   1294	};
>   1295	
> 


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

end of thread, other threads:[~2022-08-26  5:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-09 20:49 drivers/soc/mediatek/mtk-svs.c:1287:34: warning: unused variable 'svs_of_match' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-08-20 20:38 kernel test robot
2022-08-26  5:38 ` Roger Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox