Re: [PATCH v2 2/2] hwmon: add MP5920 driver

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

 



Hi Alex,

kernel test robot noticed the following build errors:

[auto build test ERROR on groeck-staging/hwmon-next]
[also build test ERROR on next-20240627]
[cannot apply to robh/for-next krzk-dt/for-next linus/master v6.10-rc5]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Alex-Vdovydchenko/dt-bindings-hwmon-Add-MPS-mp5920/20240628-021125
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
patch link:    https://lore.kernel.org/r/20240627090113.391730-3-xzeol%40yahoo.com
patch subject: [PATCH v2 2/2] hwmon: add MP5920 driver
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240628/202406281512.NAdadCZX-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 326ba38a991250a8587a399a260b0f7af2c9166a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240628/202406281512.NAdadCZX-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/202406281512.NAdadCZX-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from drivers/hwmon/pmbus/mp5920.c:18:
   In file included from include/linux/i2c.h:13:
   In file included from include/linux/acpi.h:39:
   In file included from include/acpi/acpi_io.h:7:
   In file included from arch/arm64/include/asm/acpi.h:14:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:500:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     500 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     501 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:507:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     507 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     508 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:519:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     519 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     520 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:528:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     528 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     529 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/hwmon/pmbus/mp5920.c:26:2: error: use of undeclared identifier 'pages'
      26 |         pages = 1,
         |         ^
>> drivers/hwmon/pmbus/mp5920.c:27:2: error: use of undeclared identifier 'format'
      27 |         format[PSC_VOLTAGE_IN] = direct,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:28:2: error: use of undeclared identifier 'format'
      28 |         format[PSC_VOLTAGE_OUT] = direct,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:29:2: error: use of undeclared identifier 'format'
      29 |         format[PSC_CURRENT_OUT] = direct,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:30:2: error: use of undeclared identifier 'format'
      30 |         format[PSC_POWER] = direct,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:31:2: error: use of undeclared identifier 'format'
      31 |         format[PSC_TEMPERATURE] = direct,
         |         ^
>> drivers/hwmon/pmbus/mp5920.c:32:2: error: use of undeclared identifier 'm'
      32 |         m[PSC_VOLTAGE_IN] = 2266,
         |         ^
>> drivers/hwmon/pmbus/mp5920.c:33:2: error: use of undeclared identifier 'b'
      33 |         b[PSC_VOLTAGE_IN] = 0,
         |         ^
>> drivers/hwmon/pmbus/mp5920.c:34:2: error: use of undeclared identifier 'R'
      34 |         R[PSC_VOLTAGE_IN] = -1,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:35:2: error: use of undeclared identifier 'm'
      35 |         m[PSC_VOLTAGE_OUT] = 2266,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:36:2: error: use of undeclared identifier 'b'
      36 |         b[PSC_VOLTAGE_OUT] = 0,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:37:2: error: use of undeclared identifier 'R'
      37 |         R[PSC_VOLTAGE_OUT] = -1,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:38:2: error: use of undeclared identifier 'm'
      38 |         m[PSC_CURRENT_OUT] = 546,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:39:2: error: use of undeclared identifier 'b'
      39 |         b[PSC_CURRENT_OUT] = 0,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:40:2: error: use of undeclared identifier 'R'
      40 |         R[PSC_CURRENT_OUT] = -2,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:41:2: error: use of undeclared identifier 'm'
      41 |         m[PSC_POWER] = 5840,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:42:2: error: use of undeclared identifier 'b'
      42 |         b[PSC_POWER] = 0,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:43:2: error: use of undeclared identifier 'R'
      43 |         R[PSC_POWER] = -3,
         |         ^
   drivers/hwmon/pmbus/mp5920.c:44:2: error: use of undeclared identifier 'm'
      44 |         m[PSC_TEMPERATURE] = 1067,
         |         ^
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   5 warnings and 20 errors generated.


vim +/pages +26 drivers/hwmon/pmbus/mp5920.c

    24	
    25	static struct pmbus_driver_info mp5920_info = {
  > 26		pages = 1,
  > 27		format[PSC_VOLTAGE_IN] = direct,
    28		format[PSC_VOLTAGE_OUT] = direct,
    29		format[PSC_CURRENT_OUT] = direct,
    30		format[PSC_POWER] = direct,
    31		format[PSC_TEMPERATURE] = direct,
  > 32		m[PSC_VOLTAGE_IN] = 2266,
  > 33		b[PSC_VOLTAGE_IN] = 0,
  > 34		R[PSC_VOLTAGE_IN] = -1,
    35		m[PSC_VOLTAGE_OUT] = 2266,
    36		b[PSC_VOLTAGE_OUT] = 0,
    37		R[PSC_VOLTAGE_OUT] = -1,
    38		m[PSC_CURRENT_OUT] = 546,
    39		b[PSC_CURRENT_OUT] = 0,
    40		R[PSC_CURRENT_OUT] = -2,
    41		m[PSC_POWER] = 5840,
    42		b[PSC_POWER] = 0,
    43		R[PSC_POWER] = -3,
    44		m[PSC_TEMPERATURE] = 1067,
    45		b[PSC_TEMPERATURE] = 20500,
    46		R[PSC_TEMPERATURE] = -2,
    47		func[0] = PMBUS_HAVE_VIN  | PMBUS_HAVE_VOUT |
    48			PMBUS_HAVE_IOUT | PMBUS_HAVE_POUT |
    49			PMBUS_HAVE_TEMP,
    50	};
    51	

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




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux