[pm:bleeding-edge 102/108] include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   7604cba9f860bcae8fd95c907ffee8ebeab73bef
commit: f06e8901662d5c5c80f47d1cef6207688ee42e81 [102/108] ACPI: PRM: implement OperationRegion handler for the PlatformRtMechanism subtype
config: x86_64-randconfig-b001-20210608 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=f06e8901662d5c5c80f47d1cef6207688ee42e81
        git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags pm bleeding-edge
        git checkout f06e8901662d5c5c80f47d1cef6207688ee42e81
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from drivers/hwmon/acpi_power_meter.c:20:
>> include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                                          ^
   include/linux/acpi.h:135:9: note: forward declaration of 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                  ^
   1 error generated.
--
   In file included from drivers/hwmon/ads7828.c:18:
   In file included from include/linux/i2c.h:13:
>> include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                                          ^
   include/linux/acpi.h:135:9: note: forward declaration of 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                  ^
   drivers/hwmon/ads7828.c:142:10: warning: cast to smaller integer type 'enum ads7828_chips' from 'const void *' [-Wvoid-pointer-to-enum-cast]
                   chip = (enum ads7828_chips)
                          ^~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from drivers/hwmon/lm63.c:31:
   In file included from include/linux/i2c.h:13:
>> include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                                          ^
   include/linux/acpi.h:135:9: note: forward declaration of 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                  ^
   drivers/hwmon/lm63.c:1108:16: warning: cast to smaller integer type 'enum chips' from 'const void *' [-Wvoid-pointer-to-enum-cast]
                   data->kind = (enum chips)of_device_get_match_data(&client->dev);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from drivers/hwmon/ad7418.c:14:
   In file included from include/linux/i2c.h:13:
>> include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                                          ^
   include/linux/acpi.h:135:9: note: forward declaration of 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                  ^
   drivers/hwmon/ad7418.c:256:16: warning: cast to smaller integer type 'enum chips' from 'const void *' [-Wvoid-pointer-to-enum-cast]
                   data->type = (enum chips)of_device_get_match_data(dev);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from drivers/hwmon/lm75.c:12:
   In file included from include/linux/i2c.h:13:
>> include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                                          ^
   include/linux/acpi.h:135:9: note: forward declaration of 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                  ^
   drivers/hwmon/lm75.c:565:10: warning: cast to smaller integer type 'enum lm75_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
                   kind = (enum lm75_type)of_device_get_match_data(&client->dev);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from drivers/hwmon/max6697.c:13:
   In file included from include/linux/i2c.h:13:
>> include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                                          ^
   include/linux/acpi.h:135:9: note: forward declaration of 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                  ^
   drivers/hwmon/max6697.c:706:16: warning: cast to smaller integer type 'enum chips' from 'const void *' [-Wvoid-pointer-to-enum-cast]
                   data->type = (enum chips)of_device_get_match_data(&client->dev);
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from drivers/hwmon/tmp513.c:24:
   In file included from include/linux/i2c.h:13:
>> include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                                          ^
   include/linux/acpi.h:135:9: note: forward declaration of 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                  ^
   drivers/hwmon/tmp513.c:724:14: warning: cast to smaller integer type 'enum tmp51x_ids' from 'const void *' [-Wvoid-pointer-to-enum-cast]
                   data->id = (enum tmp51x_ids)device_get_match_data(&client->dev);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from drivers/hwmon/pmbus/ibm-cffps.c:11:
   In file included from include/linux/i2c.h:13:
>> include/linux/acpi.h:135:33: error: field has incomplete type 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                                          ^
   include/linux/acpi.h:135:9: note: forward declaration of 'struct acpi_prmt_module_header'
           struct acpi_prmt_module_header prmt;
                  ^
   drivers/hwmon/pmbus/ibm-cffps.c:489:8: warning: cast to smaller integer type 'enum versions' from 'const void *' [-Wvoid-pointer-to-enum-cast]
                   vs = (enum versions)md;
                        ^~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.


vim +135 include/linux/acpi.h

   129	
   130	
   131	/* Table Handlers */
   132	union acpi_subtable_headers {
   133		struct acpi_subtable_header common;
   134		struct acpi_hmat_structure hmat;
 > 135		struct acpi_prmt_module_header prmt;
   136	};
   137	

---
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 IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux