RE: [PATCH 2/2] ACPI: ACPICA: Cleanup drivers/acpi/acpica Makefile

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

 



Hi, Rafael

According to the test, PATCH 02 is not possible unless ACPICA debugging function stubs are correctly prepared for ACPI_DEBUG_OUTPUT=n.
So please help to drop PATCH 02 and only PATCH 01 is useful for now.

Thanks and best regards
Lv


> From: linux-acpi-owner@xxxxxxxxxxxxxxx [mailto:linux-acpi-owner@xxxxxxxxxxxxxxx] On Behalf Of kbuild
> test robot
> Subject: Re: [PATCH 2/2] ACPI: ACPICA: Cleanup drivers/acpi/acpica Makefile
> 
> Hi Lv,
> 
> [auto build test WARNING on pm/linux-next]
> [also build test WARNING on v4.11-rc4 next-20170331]
> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
> 
> url:    https://github.com/0day-ci/linux/commits/Lv-Zheng/ACPI-ACPICA-Add-non-linux-host-build-
> support/20170402-125838
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
> reproduce:
>         # apt-get install sparse
>         make ARCH=x86_64 allmodconfig
>         make C=1 CF=-D__CHECK_ENDIAN__
> 
> 
> sparse warnings: (new ones prefixed by >>)
> 
> >> drivers/platform/x86/panasonic-laptop.c:266:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:282:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:289:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:295:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:306:25: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:462:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:478:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 3 given
>    drivers/platform/x86/panasonic-laptop.c:514:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:521:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:560:9: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 3 given
>    drivers/platform/x86/panasonic-laptop.c:579:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:585:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:605:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    drivers/platform/x86/panasonic-laptop.c:611:17: sparse: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>    include/linux/compiler.h:264:8: sparse: attribute 'no_sanitize_address': unknown attribute
>    drivers/platform/x86/panasonic-laptop.c:266:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:579:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:585:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:605:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:611:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:560:9: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:282:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:289:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:295:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:306:25: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:462:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:478:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:514:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c:521:17: sparse: undefined identifier 'ACPI_ACTUAL_DEBUG'
>    drivers/platform/x86/panasonic-laptop.c: In function 'acpi_pcc_get_sqty':
>    drivers/platform/x86/panasonic-laptop.c:267:38: error: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>           "evaluation error HKEY.SQTY\n"));
>                                          ^
>    In file included from include/acpi/acpi.h:61:0,
>                     from include/linux/acpi.h:33,
>                     from drivers/platform/x86/panasonic-laptop.c:128:
>    include/acpi/acoutput.h:338:41: error: 'ACPI_ACTUAL_DEBUG' undeclared (first use in this function)
>     #define ACPI_DEBUG_PRINT(plist)         ACPI_ACTUAL_DEBUG plist
>                                             ^
>    drivers/platform/x86/panasonic-laptop.c:266:3: note: in expansion of macro 'ACPI_DEBUG_PRINT'
>       ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
>       ^~~~~~~~~~~~~~~~
>    include/acpi/acoutput.h:338:41: note: each undeclared identifier is reported only once for each
> function it appears in
>     #define ACPI_DEBUG_PRINT(plist)         ACPI_ACTUAL_DEBUG plist
>                                             ^
>    drivers/platform/x86/panasonic-laptop.c:266:3: note: in expansion of macro 'ACPI_DEBUG_PRINT'
>       ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
>       ^~~~~~~~~~~~~~~~
>    drivers/platform/x86/panasonic-laptop.c: In function 'acpi_pcc_retrieve_biosdata':
>    drivers/platform/x86/panasonic-laptop.c:283:38: error: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>           "evaluation error HKEY.SINF\n"));
>                                          ^
>    In file included from include/acpi/acpi.h:61:0,
>                     from include/linux/acpi.h:33,
>                     from drivers/platform/x86/panasonic-laptop.c:128:
>    include/acpi/acoutput.h:338:41: error: 'ACPI_ACTUAL_DEBUG' undeclared (first use in this function)
>     #define ACPI_DEBUG_PRINT(plist)         ACPI_ACTUAL_DEBUG plist
>                                             ^
>    drivers/platform/x86/panasonic-laptop.c:282:3: note: in expansion of macro 'ACPI_DEBUG_PRINT'
>       ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
>       ^~~~~~~~~~~~~~~~
>    drivers/platform/x86/panasonic-laptop.c:289:58: error: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>       ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid HKEY.SINF\n"));
>                                                              ^
>    drivers/platform/x86/panasonic-laptop.c:296:39: error: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>          "SQTY reports bad SINF length\n"));
>                                           ^
>    drivers/platform/x86/panasonic-laptop.c:307:34: error: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>           "Invalid HKEY.SINF data\n"));
>                                      ^
>    drivers/platform/x86/panasonic-laptop.c: In function 'acpi_pcc_generate_keyinput':
>    drivers/platform/x86/panasonic-laptop.c:463:38: error: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>          "error getting hotkey status\n"));
>                                          ^
>    In file included from include/acpi/acpi.h:61:0,
>                     from include/linux/acpi.h:33,
>                     from drivers/platform/x86/panasonic-laptop.c:128:
>    include/acpi/acoutput.h:338:41: error: 'ACPI_ACTUAL_DEBUG' undeclared (first use in this function)
>     #define ACPI_DEBUG_PRINT(plist)         ACPI_ACTUAL_DEBUG plist
>                                             ^
>    drivers/platform/x86/panasonic-laptop.c:462:3: note: in expansion of macro 'ACPI_DEBUG_PRINT'
>       ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
>       ^~~~~~~~~~~~~~~~
>    drivers/platform/x86/panasonic-laptop.c:479:44: error: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 3 given
>           "Unknown hotkey event: %d\n", result));
>                                                ^
>    drivers/platform/x86/panasonic-laptop.c: In function 'acpi_pcc_init_input':
>    drivers/platform/x86/panasonic-laptop.c:515:47: error: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>           "Unable to setup input device keymap\n"));
>                                                   ^
>    In file included from include/acpi/acpi.h:61:0,
>                     from include/linux/acpi.h:33,
>                     from drivers/platform/x86/panasonic-laptop.c:128:
>    include/acpi/acoutput.h:338:41: error: 'ACPI_ACTUAL_DEBUG' undeclared (first use in this function)
>     #define ACPI_DEBUG_PRINT(plist)         ACPI_ACTUAL_DEBUG plist
>                                             ^
>    drivers/platform/x86/panasonic-laptop.c:514:3: note: in expansion of macro 'ACPI_DEBUG_PRINT'
>       ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
>       ^~~~~~~~~~~~~~~~
>    drivers/platform/x86/panasonic-laptop.c:522:43: error: macro "ACPI_ACTUAL_DEBUG" requires 6
> arguments, but only 2 given
>           "Unable to register input device\n"));
> 
> vim +/ACPI_ACTUAL_DEBUG +266 drivers/platform/x86/panasonic-laptop.c
> 
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  250  	status =
> acpi_evaluate_object(pcc->handle, METHOD_HKEY_SSET,
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  251
> &params, NULL);
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  252
> 9fab10cd drivers/platform/x86/panasonic-laptop.c Axel Lin     2010-07-07  253  	return (status ==
> AE_OK) ? 0 : -EIO;
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  254  }
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  255
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  256  static inline int
> acpi_pcc_get_sqty(struct acpi_device *device)
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  257  {
> 3e2dab9a drivers/misc/panasonic-laptop.c         Len Brown    2008-10-11  258  	unsigned long long
> s;
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  259  	acpi_status status;
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  260
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  261  	status =
> acpi_evaluate_integer(device->handle, METHOD_HKEY_SQTY,
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  262
> NULL, &s);
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  263  	if
> (ACPI_SUCCESS(status))
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  264  		return s;
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  265  	else {
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23 @266
> 	ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  267
> "evaluation error HKEY.SQTY\n"));
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  268  		return -
> EINVAL;
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  269  	}
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  270  }
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  271
> e253fb94 drivers/platform/x86/panasonic-laptop.c Jean Delvare 2010-10-21  272  static int
> acpi_pcc_retrieve_biosdata(struct pcc_acpi *pcc)
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  273  {
> 709ee531 drivers/misc/panasonic-laptop.c         Harald Welte 2008-09-23  274  	acpi_status status;
> 
> :::::: The code at line 266 was first introduced by commit
> :::::: 709ee531c153038d81b30649b9eeed3c44a4d5cc panasonic-laptop: add Panasonic Let's Note laptop
> extras driver v0.94
> 
> :::::: TO: Harald Welte <laforge@xxxxxxxxxxxx>
> :::::: CC: Len Brown <len.brown@xxxxxxxxx>
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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