Re: [PATCH] hwmon: Add driver for fsp-3y PSUs and PDUs

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

 



Hi "Václav,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on v5.12-rc5 next-20210329]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/V-clav-Kubern-t/hwmon-Add-driver-for-fsp-3y-PSUs-and-PDUs/20210329-224216
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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://github.com/0day-ci/linux/commit/48af68da782edb21e107a884db98beedfd691e81
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review V-clav-Kubern-t/hwmon-Add-driver-for-fsp-3y-PSUs-and-PDUs/20210329-224216
        git checkout 48af68da782edb21e107a884db98beedfd691e81
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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

All errors (new ones prefixed by >>):

>> drivers/hwmon/pmbus/fsp-3y.c:15:25: error: array index in initializer exceeds array bounds
      15 | #define YM2151_PAGE_5V  0x20
         |                         ^~~~
   drivers/hwmon/pmbus/fsp-3y.c:114:9: note: in expansion of macro 'YM2151_PAGE_5V'
     114 |   .func[YM2151_PAGE_5V] =
         |         ^~~~~~~~~~~~~~
   drivers/hwmon/pmbus/fsp-3y.c:15:25: note: (near initialization for 'fsp3y_info[0].func')
      15 | #define YM2151_PAGE_5V  0x20
         |                         ^~~~
   drivers/hwmon/pmbus/fsp-3y.c:114:9: note: in expansion of macro 'YM2151_PAGE_5V'
     114 |   .func[YM2151_PAGE_5V] =
         |         ^~~~~~~~~~~~~~
   In file included from include/linux/bits.h:6,
                    from include/linux/bitops.h:6,
                    from include/linux/kernel.h:11,
                    from drivers/hwmon/pmbus/fsp-3y.c:8:
   include/vdso/bits.h:7:19: warning: initialized field overwritten [-Woverride-init]
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                   ^
   drivers/hwmon/pmbus/pmbus.h:383:26: note: in expansion of macro 'BIT'
     383 | #define PMBUS_HAVE_VOUT  BIT(2)
         |                          ^~~
   drivers/hwmon/pmbus/fsp-3y.c:115:4: note: in expansion of macro 'PMBUS_HAVE_VOUT'
     115 |    PMBUS_HAVE_VOUT | PMBUS_HAVE_IOUT,
         |    ^~~~~~~~~~~~~~~
   include/vdso/bits.h:7:19: note: (near initialization for 'fsp3y_info[0].func[0]')
       7 | #define BIT(nr)   (UL(1) << (nr))
         |                   ^
   drivers/hwmon/pmbus/pmbus.h:383:26: note: in expansion of macro 'BIT'
     383 | #define PMBUS_HAVE_VOUT  BIT(2)
         |                          ^~~
   drivers/hwmon/pmbus/fsp-3y.c:115:4: note: in expansion of macro 'PMBUS_HAVE_VOUT'
     115 |    PMBUS_HAVE_VOUT | PMBUS_HAVE_IOUT,
         |    ^~~~~~~~~~~~~~~


vim +15 drivers/hwmon/pmbus/fsp-3y.c

    13	
    14	#define YM2151_PAGE_12V		0x00
  > 15	#define YM2151_PAGE_5V		0x20
    16	#define YH5151E_PAGE_12V	0x00
    17	#define YH5151E_PAGE_5V		0x10
    18	#define YH5151E_PAGE_3V3	0x11
    19	

---
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]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux