[usb:usb-testing 7/9] include/linux/regmap.h:1210:37: warning: initialized field overwritten

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
head:   83a9d2a05296bf5a5fee13206dc4499a40978908
commit: 54dacbcc6b8921a211bd736d2f208d3c78594241 [7/9] usb: isp1760: move to regmap for register access
config: h8300-randconfig-r036-20210506 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
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/gregkh/usb.git/commit/?id=54dacbcc6b8921a211bd736d2f208d3c78594241
        git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
        git fetch --no-tags usb usb-testing
        git checkout 54dacbcc6b8921a211bd736d2f208d3c78594241
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=h8300 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from drivers/usb/isp1760/isp1760-core.h:17,
                    from drivers/usb/isp1760/isp1760-if.c:22:
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:286:21: note: in expansion of macro 'REG_FIELD'
     286 |  [HW_OTG_DISABLE] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 10, 10),
         |                     ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[37]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:286:21: note: in expansion of macro 'REG_FIELD'
     286 |  [HW_OTG_DISABLE] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 10, 10),
         |                     ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:287:22: note: in expansion of macro 'REG_FIELD'
     287 |  [HW_SW_SEL_HC_DC] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 7, 7),
         |                      ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[38]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:287:22: note: in expansion of macro 'REG_FIELD'
     287 |  [HW_SW_SEL_HC_DC] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 7, 7),
         |                      ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:288:19: note: in expansion of macro 'REG_FIELD'
     288 |  [HW_VBUS_DRV]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 4, 4),
         |                   ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[39]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:288:19: note: in expansion of macro 'REG_FIELD'
     288 |  [HW_VBUS_DRV]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 4, 4),
         |                   ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:289:21: note: in expansion of macro 'REG_FIELD'
     289 |  [HW_SEL_CP_EXT]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 3, 3),
         |                     ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[40]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:289:21: note: in expansion of macro 'REG_FIELD'
     289 |  [HW_SEL_CP_EXT]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 3, 3),
         |                     ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:290:21: note: in expansion of macro 'REG_FIELD'
     290 |  [HW_DM_PULLDOWN] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 2, 2),
         |                     ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[41]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:290:21: note: in expansion of macro 'REG_FIELD'
     290 |  [HW_DM_PULLDOWN] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 2, 2),
         |                     ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:291:21: note: in expansion of macro 'REG_FIELD'
     291 |  [HW_DP_PULLDOWN] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 1, 1),
         |                     ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[42]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:291:21: note: in expansion of macro 'REG_FIELD'
     291 |  [HW_DP_PULLDOWN] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 1, 1),
         |                     ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:292:20: note: in expansion of macro 'REG_FIELD'
     292 |  [HW_DP_PULLUP]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 0, 0),
         |                    ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[43]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:292:20: note: in expansion of macro 'REG_FIELD'
     292 |  [HW_DP_PULLUP]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 0, 0),
         |                    ^~~~~~~~~
   In file included from drivers/usb/isp1760/isp1760-hcd.h:8,
                    from drivers/usb/isp1760/isp1760-core.h:19,
                    from drivers/usb/isp1760/isp1760-if.c:22:
   drivers/usb/isp1760/isp1760-regs.h:241:31: warning: 'isp1761_dc_reg_fields' defined but not used [-Wunused-const-variable=]
     241 | static const struct reg_field isp1761_dc_reg_fields[] = {
         |                               ^~~~~~~~~~~~~~~~~~~~~
   drivers/usb/isp1760/isp1760-regs.h:202:41: warning: 'isp176x_dc_volatile_table' defined but not used [-Wunused-const-variable=]
     202 | static const struct regmap_access_table isp176x_dc_volatile_table = {
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/usb/isp1760/isp1760-regs.h:107:31: warning: 'isp1760_hc_reg_fields' defined but not used [-Wunused-const-variable=]
     107 | static const struct reg_field isp1760_hc_reg_fields[] = {
         |                               ^~~~~~~~~~~~~~~~~~~~~
   drivers/usb/isp1760/isp1760-regs.h:70:41: warning: 'isp176x_hc_volatile_table' defined but not used [-Wunused-const-variable=]
      70 | static const struct regmap_access_table isp176x_hc_volatile_table = {
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from drivers/usb/isp1760/isp1760-core.h:17,
                    from drivers/usb/isp1760/isp1760-core.c:21:
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:286:21: note: in expansion of macro 'REG_FIELD'
     286 |  [HW_OTG_DISABLE] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 10, 10),
         |                     ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[37]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:286:21: note: in expansion of macro 'REG_FIELD'
     286 |  [HW_OTG_DISABLE] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 10, 10),
         |                     ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:287:22: note: in expansion of macro 'REG_FIELD'
     287 |  [HW_SW_SEL_HC_DC] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 7, 7),
         |                      ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[38]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:287:22: note: in expansion of macro 'REG_FIELD'
     287 |  [HW_SW_SEL_HC_DC] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 7, 7),
         |                      ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:288:19: note: in expansion of macro 'REG_FIELD'
     288 |  [HW_VBUS_DRV]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 4, 4),
         |                   ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[39]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:288:19: note: in expansion of macro 'REG_FIELD'
     288 |  [HW_VBUS_DRV]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 4, 4),
         |                   ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:289:21: note: in expansion of macro 'REG_FIELD'
     289 |  [HW_SEL_CP_EXT]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 3, 3),
         |                     ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[40]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:289:21: note: in expansion of macro 'REG_FIELD'
     289 |  [HW_SEL_CP_EXT]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 3, 3),
         |                     ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:290:21: note: in expansion of macro 'REG_FIELD'
     290 |  [HW_DM_PULLDOWN] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 2, 2),
         |                     ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[41]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:290:21: note: in expansion of macro 'REG_FIELD'
     290 |  [HW_DM_PULLDOWN] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 2, 2),
         |                     ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:291:21: note: in expansion of macro 'REG_FIELD'
     291 |  [HW_DP_PULLDOWN] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 1, 1),
         |                     ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[42]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:291:21: note: in expansion of macro 'REG_FIELD'
     291 |  [HW_DP_PULLDOWN] = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 1, 1),
         |                     ^~~~~~~~~
>> include/linux/regmap.h:1210:37: warning: initialized field overwritten [-Woverride-init]
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:292:20: note: in expansion of macro 'REG_FIELD'
     292 |  [HW_DP_PULLUP]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 0, 0),
         |                    ^~~~~~~~~
   include/linux/regmap.h:1210:37: note: (near initialization for 'isp1761_dc_reg_fields[43]')
    1210 | #define REG_FIELD(_reg, _lsb, _msb) {  \
         |                                     ^
   drivers/usb/isp1760/isp1760-regs.h:292:20: note: in expansion of macro 'REG_FIELD'
     292 |  [HW_DP_PULLUP]  = REG_FIELD(ISP1761_DC_OTG_CTRL_CLEAR, 0, 0),
         |                    ^~~~~~~~~


vim +1210 include/linux/regmap.h

67252287871113d Srinivas Kandagatla 2013-06-11  1209  
67252287871113d Srinivas Kandagatla 2013-06-11 @1210  #define REG_FIELD(_reg, _lsb, _msb) {		\
67252287871113d Srinivas Kandagatla 2013-06-11  1211  				.reg = _reg,	\
67252287871113d Srinivas Kandagatla 2013-06-11  1212  				.lsb = _lsb,	\
67252287871113d Srinivas Kandagatla 2013-06-11  1213  				.msb = _msb,	\
67252287871113d Srinivas Kandagatla 2013-06-11  1214  				}
67252287871113d Srinivas Kandagatla 2013-06-11  1215  

:::::: The code at line 1210 was first introduced by commit
:::::: 67252287871113deba96adf7e4df1752f3f08688 regmap: Add regmap_field APIs

:::::: TO: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux