[linusw-pinctrl:devel 16/25] drivers/pinctrl/realtek/pinctrl-rtd1315e.c:231:35: warning: 'rtd1315e_testmode_pins' defined but not used

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
head:   caaeb8c551123e26e86270c8dec99a78f1f6fe0f
commit: aa399e6c6b24c9cc8a8e4ccc205457205cd41491 [16/25] pinctrl: realtek: Add pinctrl driver for RTD1315E
config: arm-randconfig-001-20230926 (https://download.01.org/0day-ci/archive/20230927/202309270313.mBEc9o1A-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230927/202309270313.mBEc9o1A-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309270313.mBEc9o1A-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/pinctrl/realtek/pinctrl-rtd1315e.c:231:35: warning: 'rtd1315e_testmode_pins' defined but not used [-Wunused-const-variable=]
     231 |         static const unsigned int rtd1315e_## _name ##_pins[] = { _pin }
         |                                   ^~~~~~~~~
   drivers/pinctrl/realtek/pinctrl-rtd1315e.c:336:1: note: in expansion of macro 'DECLARE_RTD1315E_PIN'
     336 | DECLARE_RTD1315E_PIN(RTD1315E_ISO_TESTMODE, testmode);
         | ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/realtek/pinctrl-rtd1315e.c:231:35: warning: 'rtd1315e_reset_n_pins' defined but not used [-Wunused-const-variable=]
     231 |         static const unsigned int rtd1315e_## _name ##_pins[] = { _pin }
         |                                   ^~~~~~~~~
   drivers/pinctrl/realtek/pinctrl-rtd1315e.c:335:1: note: in expansion of macro 'DECLARE_RTD1315E_PIN'
     335 | DECLARE_RTD1315E_PIN(RTD1315E_ISO_RESET_N, reset_n);
         | ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/realtek/pinctrl-rtd1315e.c:231:35: warning: 'rtd1315e_boot_sel_pins' defined but not used [-Wunused-const-variable=]
     231 |         static const unsigned int rtd1315e_## _name ##_pins[] = { _pin }
         |                                   ^~~~~~~~~
   drivers/pinctrl/realtek/pinctrl-rtd1315e.c:334:1: note: in expansion of macro 'DECLARE_RTD1315E_PIN'
     334 | DECLARE_RTD1315E_PIN(RTD1315E_ISO_BOOT_SEL, boot_sel);
         | ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/realtek/pinctrl-rtd1315e.c:231:35: warning: 'rtd1315e_wd_rset_pins' defined but not used [-Wunused-const-variable=]
     231 |         static const unsigned int rtd1315e_## _name ##_pins[] = { _pin }
         |                                   ^~~~~~~~~
   drivers/pinctrl/realtek/pinctrl-rtd1315e.c:333:1: note: in expansion of macro 'DECLARE_RTD1315E_PIN'
     333 | DECLARE_RTD1315E_PIN(RTD1315E_ISO_WD_RSET, wd_rset);
         | ^~~~~~~~~~~~~~~~~~~~
>> drivers/pinctrl/realtek/pinctrl-rtd1315e.c:231:35: warning: 'rtd1315e_scan_switch_pins' defined but not used [-Wunused-const-variable=]
     231 |         static const unsigned int rtd1315e_## _name ##_pins[] = { _pin }
         |                                   ^~~~~~~~~
   drivers/pinctrl/realtek/pinctrl-rtd1315e.c:332:1: note: in expansion of macro 'DECLARE_RTD1315E_PIN'
     332 | DECLARE_RTD1315E_PIN(RTD1315E_ISO_SCAN_SWITCH, scan_switch);
         | ^~~~~~~~~~~~~~~~~~~~


vim +/rtd1315e_testmode_pins +231 drivers/pinctrl/realtek/pinctrl-rtd1315e.c

   229	
   230	#define DECLARE_RTD1315E_PIN(_pin, _name) \
 > 231		static const unsigned int rtd1315e_## _name ##_pins[] = { _pin }
   232	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux