linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Václav Kubernát" <kubernat@cesnet.cz>
Cc: kbuild-all@lists.01.org, "Václav Kubernát" <kubernat@cesnet.cz>,
	"Guenter Roeck" <linux@roeck-us.net>,
	"Jean Delvare" <jdelvare@suse.com>,
	linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org
Subject: Re: [PATCH] hwmon: Add driver for fsp-3y PSUs and PDUs
Date: Tue, 30 Mar 2021 03:07:44 +0800	[thread overview]
Message-ID: <202103300230.bbE5RYdZ-lkp@intel.com> (raw)
In-Reply-To: <20210329143833.1047539-1-kubernat@cesnet.cz>

[-- Attachment #1: Type: text/plain, Size: 3607 bytes --]

Hi "Václav,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on hwmon/hwmon-next]
[also build test WARNING 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@intel.com>

All warnings (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 +7 include/vdso/bits.h

3945ff37d2f48d Vincenzo Frascino 2020-03-20  6  
3945ff37d2f48d Vincenzo Frascino 2020-03-20 @7  #define BIT(nr)			(UL(1) << (nr))
3945ff37d2f48d Vincenzo Frascino 2020-03-20  8  

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 59879 bytes --]

  parent reply	other threads:[~2021-03-29 19:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-29 14:38 [PATCH] hwmon: Add driver for fsp-3y PSUs and PDUs Václav Kubernát
2021-03-29 17:47 ` Guenter Roeck
2021-03-30  3:31   ` Václav Kubernát
2021-03-30  5:39     ` Guenter Roeck
2021-03-29 19:07 ` kernel test robot [this message]
2021-03-29 20:42 ` kernel test robot
2021-04-08  2:34 ` [PATCH v2] " Václav Kubernát
2021-04-08  3:44   ` Guenter Roeck
2021-04-09  1:27 ` [PATCH v3] " Václav Kubernát
2021-04-09  2:08   ` Guenter Roeck
     [not found]     ` <CABKa3npa9vra9jRrrG--3gtun7HtsAVxQvfzsV5rYTQDoDNN9g@mail.gmail.com>
     [not found]       ` <78016097-21df-8321-8b8b-33d15a6e6ff2@roeck-us.net>
2021-04-13 10:54         ` Václav Kubernát
2021-04-13 10:42 ` [PATCH v4] " Václav Kubernát
2021-04-13 14:59   ` Guenter Roeck
2021-04-14  0:27     ` Václav Kubernát
2021-04-14  0:13 ` [PATCH v5] " Václav Kubernát
     [not found]   ` <20210414032902.GA242591@roeck-us.net>
2021-04-14  8:02     ` Václav Kubernát
2021-04-14  8:00 ` [PATCH v6] " Václav Kubernát

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202103300230.bbE5RYdZ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jdelvare@suse.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kubernat@cesnet.cz \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).