Re: [PATCH] acpi: acpica: fix acpi operand cache leak

From: kbuild test robot
Date: Sat Feb 11 2017 - 22:56:15 EST


Hi Seunghun,

[auto build test WARNING on pm/linux-next]
[also build test WARNING on v4.10-rc7 next-20170210]
[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/Seunghun-Han/acpi-acpica-fix-acpi-operand-cache-leak/20170212-105735
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: i386-randconfig-x003-201707 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All warnings (new ones prefixed by >>):

drivers/acpi/acpica/nsutils.c: In function 'acpi_ns_terminate':
>> drivers/acpi/acpica/nsutils.c:600:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
union acpi_operand_object *prev;
^~~~~

vim +600 drivers/acpi/acpica/nsutils.c

^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 584 * FUNCTION: acpi_ns_terminate
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 585 *
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 586 * PARAMETERS: none
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 587 *
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 588 * RETURN: none
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 589 *
44f6c012 drivers/acpi/namespace/nsutils.c Robert Moore 2005-04-18 590 * DESCRIPTION: free memory allocated for namespace and ACPI table storage.
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 591 *
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 592 ******************************************************************************/
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 593
4be44fcd drivers/acpi/namespace/nsutils.c Len Brown 2005-08-05 594 void acpi_ns_terminate(void)
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 595 {
3f69fe15 drivers/acpi/acpica/nsutils.c Bob Moore 2013-11-21 596 acpi_status status;
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 597
b229cf92 drivers/acpi/namespace/nsutils.c Bob Moore 2006-04-21 598 ACPI_FUNCTION_TRACE(ns_terminate);
^1da177e drivers/acpi/namespace/nsutils.c Linus Torvalds 2005-04-16 599
25823e78 drivers/acpi/acpica/nsutils.c Bob Moore 2015-08-25 @600 union acpi_operand_object *prev;
25823e78 drivers/acpi/acpica/nsutils.c Bob Moore 2015-08-25 601 union acpi_operand_object *next;
25823e78 drivers/acpi/acpica/nsutils.c Bob Moore 2015-08-25 602
25823e78 drivers/acpi/acpica/nsutils.c Bob Moore 2015-08-25 603 /* Delete any module-level code blocks */
25823e78 drivers/acpi/acpica/nsutils.c Bob Moore 2015-08-25 604
25823e78 drivers/acpi/acpica/nsutils.c Bob Moore 2015-08-25 605 next = acpi_gbl_module_code_list;
25823e78 drivers/acpi/acpica/nsutils.c Bob Moore 2015-08-25 606 while (next) {
25823e78 drivers/acpi/acpica/nsutils.c Bob Moore 2015-08-25 607 prev = next;
25823e78 drivers/acpi/acpica/nsutils.c Bob Moore 2015-08-25 608 next = next->method.mutex;

:::::: The code at line 600 was first introduced by commit
:::::: 25823e784aac78964ada0e49efe2766d2aeb9fa4 ACPICA: Add additional debug info/statements

:::::: TO: Bob Moore <robert.moore@xxxxxxxxx>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip