Skip to contentSkip to conversation

drivers/soc/fsl/qe/qmc.c:2002:30: warning: 'qmc_data_qe' defined but not used

PATCH kernel test robot 2 participants 2 messages Sep 7, 2024 – Sep 9, 2024 Memory management

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9aaeb87ce1e966169a57f53a02ba05b30880ffb8
commit: eb680d563089e55b20cb7730ed881638fe4425b7 [8170/10296] soc: fsl: cpm1: qmc: Add support for QUICC Engine (QE) implementation
config: powerpc-randconfig-r031-20230616 (https://download.01.org/0day-ci/archive/20240907/[email protected]/config)
compiler: powerpc-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240907/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/soc/fsl/qe/qmc.c:2002:30: warning: 'qmc_data_qe' defined but not used [-Wunused-const-variable=]
    2002 | static const struct qmc_data qmc_data_qe = {
         |                              ^~~~~~~~~~~
   drivers/soc/fsl/qe/qmc.c:1992:30: warning: 'qmc_data_cpm1' defined but not used [-Wunused-const-variable=]
    1992 | static const struct qmc_data qmc_data_cpm1 = {
         |                              ^~~~~~~~~~~~~

vim +/qmc_data_qe +2002 drivers/soc/fsl/qe/qmc.c

2001

> 2002	static const struct qmc_data qmc_data_qe = {

2003 .version = QMC_QE,
2004 .tstate = 0x30000000,
2005 .rstate = 0x30000000,
2006 .zistate = 0x00000200,
2007 .zdstate_hdlc = 0x80FFFFE0,
2008 .zdstate_transp = 0x003FFFE2,
2009 .rpack = 0x80000000,
2010 };
2011

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw

Hi,

Quoted 12 lines · On Sat, 7 Sep 2024 17:30:44 +0800 kernel test robot <[email protected]> wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9aaeb87ce1e966169a57f53a02ba05b30880ffb8
commit: eb680d563089e55b20cb7730ed881638fe4425b7 [8170/10296] soc: fsl: cpm1: qmc: Add support for QUICC Engine (QE) implementation
config: powerpc-randconfig-r031-20230616 (https://download.01.org/0day-ci/archive/20240907/[email protected]/config)
compiler: powerpc-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240907/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

Quoted 9 lines

All warnings (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

drivers/soc/fsl/qe/qmc.c:2002:30: warning: 'qmc_data_qe' defined but not used [-Wunused-const-variable=]

    2002 | static const struct qmc_data qmc_data_qe = {
         |                              ^~~~~~~~~~~
   drivers/soc/fsl/qe/qmc.c:1992:30: warning: 'qmc_data_cpm1' defined but not used [-Wunused-const-variable=]
    1992 | static const struct qmc_data qmc_data_cpm1 = {
         |                              ^~~~~~~~~~~~~

Patch sent to fix the issue:
https://lore.kernel.org/lkml/[email protected]/

Regards,
Hervé