All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC][PATCH] hwmon: (pmbus) Support 4th PSU temperature sensor
Date: Thu, 29 Jul 2021 16:35:36 +0800	[thread overview]
Message-ID: <202107291625.KCwVMeRA-lkp@intel.com> (raw)
In-Reply-To: <20210728093815.8395-1-pmenzel@molgen.mpg.de>

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

Hi Paul,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on hwmon/hwmon-next]
[also build test ERROR on v5.14-rc3 next-20210728]
[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/Paul-Menzel/hwmon-pmbus-Support-4th-PSU-temperature-sensor/20210728-174022
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
config: x86_64-randconfig-a011-20210728 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c49df15c278857adecd12db6bb1cdc96885f7079)
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/a5972c52662d165d963025cb03ebc14bf638e310
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Paul-Menzel/hwmon-pmbus-Support-4th-PSU-temperature-sensor/20210728-174022
        git checkout a5972c52662d165d963025cb03ebc14bf638e310
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> drivers/hwmon/pmbus/pmbus_core.c:1884:12: error: use of undeclared identifier 'PB_STATUS_TEMP_BASE'
                   .sbase = PB_STATUS_TEMP_BASE,
                            ^
>> drivers/hwmon/pmbus/pmbus_core.c:2169:10: error: invalid application of 'sizeof' to an incomplete type 'const struct pmbus_sensor_attr []'
                                        ARRAY_SIZE(temp_attributes));
                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:44:32: note: expanded from macro 'ARRAY_SIZE'
   #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                  ^~~~~
   drivers/hwmon/pmbus/pmbus_core.c:2216:12: error: invalid application of 'sizeof' to an incomplete type 'const struct pmbus_sensor_attr []'
                   .nattr = ARRAY_SIZE(temp_attributes),
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:44:32: note: expanded from macro 'ARRAY_SIZE'
   #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                  ^~~~~
>> drivers/hwmon/pmbus/pmbus_core.c:2264:18: error: invalid application of 'sizeof' to an incomplete type 'const struct pmbus_class_attr_map []'
           for (i = 0; i < ARRAY_SIZE(class_attr_map); i++) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:44:32: note: expanded from macro 'ARRAY_SIZE'
   #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                  ^~~~~
   4 errors generated.


vim +/PB_STATUS_TEMP_BASE +1884 drivers/hwmon/pmbus/pmbus_core.c

  1838	
  1839	static const struct pmbus_sensor_attr temp_attributes[] = {
  1840		{
  1841			.reg = PMBUS_READ_TEMPERATURE_1,
  1842			.class = PSC_TEMPERATURE,
  1843			.paged = true,
  1844			.update = true,
  1845			.compare = true,
  1846			.func = PMBUS_HAVE_TEMP,
  1847			.sfunc = PMBUS_HAVE_STATUS_TEMP,
  1848			.sreg = PMBUS_STATUS_TEMPERATURE,
  1849			.gbit = PB_STATUS_TEMPERATURE,
  1850			.limit = temp_limit_attrs,
  1851			.nlimit = ARRAY_SIZE(temp_limit_attrs),
  1852		}, {
  1853			.reg = PMBUS_READ_TEMPERATURE_2,
  1854			.class = PSC_TEMPERATURE,
  1855			.paged = true,
  1856			.update = true,
  1857			.compare = true,
  1858			.func = PMBUS_HAVE_TEMP2,
  1859			.sfunc = PMBUS_HAVE_STATUS_TEMP,
  1860			.sreg = PMBUS_STATUS_TEMPERATURE,
  1861			.gbit = PB_STATUS_TEMPERATURE,
  1862			.limit = temp_limit_attrs2,
  1863			.nlimit = ARRAY_SIZE(temp_limit_attrs2),
  1864		}, {
  1865			.reg = PMBUS_READ_TEMPERATURE_3,
  1866			.class = PSC_TEMPERATURE,
  1867			.paged = true,
  1868			.update = true,
  1869			.compare = true,
  1870			.func = PMBUS_HAVE_TEMP3,
  1871			.sfunc = PMBUS_HAVE_STATUS_TEMP,
  1872			.sreg = PMBUS_STATUS_TEMPERATURE,
  1873			.gbit = PB_STATUS_TEMPERATURE,
  1874			.limit = temp_limit_attrs3,
  1875			.nlimit = ARRAY_SIZE(temp_limit_attrs3),
  1876		}, {
  1877			.reg = PMBUS_READ_TEMPERATURE_4,
  1878			.class = PSC_TEMPERATURE,
  1879			.paged = true,
  1880			.update = true,
  1881			.compare = true,
  1882			.func = PMBUS_HAVE_TEMP4,
  1883			.sfunc = PMBUS_HAVE_STATUS_TEMP,
> 1884			.sbase = PB_STATUS_TEMP_BASE,
  1885			.gbit = PB_STATUS_TEMPERATURE,
  1886			.limit = temp_limit_attrs4,
  1887			.nlimit = ARRAY_SIZE(temp_limit_attrs4),
  1888		}
  1889	};
  1890	

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

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

      parent reply	other threads:[~2021-07-29  8:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-28  9:38 [RFC][PATCH] hwmon: (pmbus) Support 4th PSU temperature sensor Paul Menzel
2021-07-28  9:40 ` Paul Menzel
2021-07-28 13:05 ` Guenter Roeck
2021-07-28 13:38 ` kernel test robot
2021-07-29  8:35 ` kernel test robot [this message]

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=202107291625.KCwVMeRA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.