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

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

 



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
config: i386-allmodconfig (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 >>):

   In file included from include/acpi/acpi.h:61:0,
                    from include/linux/acpi.h:33,
                    from drivers/platform/x86/xo15-ebook.c:21:
   drivers/platform/x86/xo15-ebook.c: In function 'ebook_switch_notify':
   include/acpi/acoutput.h:283:55: error: '_COMPONENT' undeclared (first use in this function)
     __LINE__, ACPI_GET_FUNCTION_NAME, _acpi_module_name, _COMPONENT
                                                          ^
   include/acpi/acoutput.h:306:44: note: in definition of macro 'ACPI_DO_WHILE0'
    #define ACPI_DO_WHILE0(a)               do a while(0)
                                               ^
   include/acpi/acoutput.h:324:7: note: in expansion of macro 'ACPI_IS_DEBUG_ENABLED'
      if (ACPI_IS_DEBUG_ENABLED (level, component)) \
          ^~~~~~~~~~~~~~~~~~~~~
   include/acpi/acoutput.h:331:2: note: in expansion of macro 'ACPI_DO_DEBUG_PRINT'
     ACPI_DO_DEBUG_PRINT (acpi_debug_print, level, line, \
     ^~~~~~~~~~~~~~~~~~~
   include/acpi/acoutput.h:338:41: note: in expansion of macro 'ACPI_ACTUAL_DEBUG'
    #define ACPI_DEBUG_PRINT(plist)         ACPI_ACTUAL_DEBUG plist
                                            ^~~~~~~~~~~~~~~~~
>> drivers/platform/x86/xo15-ebook.c:73:3: note: in expansion of macro 'ACPI_DEBUG_PRINT'
      ACPI_DEBUG_PRINT((ACPI_DB_INFO,
      ^~~~~~~~~~~~~~~~
   include/acpi/acoutput.h:139:46: note: in expansion of macro 'ACPI_DEBUG_PARAMETERS'
    #define ACPI_DEBUG_LEVEL(dl)        (u32) dl,ACPI_DEBUG_PARAMETERS
                                                 ^~~~~~~~~~~~~~~~~~~~~
   include/acpi/acoutput.h:149:37: note: in expansion of macro 'ACPI_DEBUG_LEVEL'
    #define ACPI_DB_INFO                ACPI_DEBUG_LEVEL (ACPI_LV_INFO)
                                        ^~~~~~~~~~~~~~~~
>> drivers/platform/x86/xo15-ebook.c:73:21: note: in expansion of macro 'ACPI_DB_INFO'
      ACPI_DEBUG_PRINT((ACPI_DB_INFO,
                        ^~~~~~~~~~~~
   include/acpi/acoutput.h:283:55: note: each undeclared identifier is reported only once for each function it appears in
     __LINE__, ACPI_GET_FUNCTION_NAME, _acpi_module_name, _COMPONENT
                                                          ^
   include/acpi/acoutput.h:306:44: note: in definition of macro 'ACPI_DO_WHILE0'
    #define ACPI_DO_WHILE0(a)               do a while(0)
                                               ^
   include/acpi/acoutput.h:324:7: note: in expansion of macro 'ACPI_IS_DEBUG_ENABLED'
      if (ACPI_IS_DEBUG_ENABLED (level, component)) \
          ^~~~~~~~~~~~~~~~~~~~~
   include/acpi/acoutput.h:331:2: note: in expansion of macro 'ACPI_DO_DEBUG_PRINT'
     ACPI_DO_DEBUG_PRINT (acpi_debug_print, level, line, \
     ^~~~~~~~~~~~~~~~~~~
   include/acpi/acoutput.h:338:41: note: in expansion of macro 'ACPI_ACTUAL_DEBUG'
    #define ACPI_DEBUG_PRINT(plist)         ACPI_ACTUAL_DEBUG plist
                                            ^~~~~~~~~~~~~~~~~
>> drivers/platform/x86/xo15-ebook.c:73:3: note: in expansion of macro 'ACPI_DEBUG_PRINT'
      ACPI_DEBUG_PRINT((ACPI_DB_INFO,
      ^~~~~~~~~~~~~~~~
   include/acpi/acoutput.h:139:46: note: in expansion of macro 'ACPI_DEBUG_PARAMETERS'
    #define ACPI_DEBUG_LEVEL(dl)        (u32) dl,ACPI_DEBUG_PARAMETERS
                                                 ^~~~~~~~~~~~~~~~~~~~~
   include/acpi/acoutput.h:149:37: note: in expansion of macro 'ACPI_DEBUG_LEVEL'
    #define ACPI_DB_INFO                ACPI_DEBUG_LEVEL (ACPI_LV_INFO)
                                        ^~~~~~~~~~~~~~~~
>> drivers/platform/x86/xo15-ebook.c:73:21: note: in expansion of macro 'ACPI_DB_INFO'
      ACPI_DEBUG_PRINT((ACPI_DB_INFO,
                        ^~~~~~~~~~~~

vim +/ACPI_DEBUG_PRINT +73 drivers/platform/x86/xo15-ebook.c

89ca1177 Paul Fox          2011-02-03  57  		return -EIO;
89ca1177 Paul Fox          2011-02-03  58  
89ca1177 Paul Fox          2011-02-03  59  	/* input layer checks if event is redundant */
89ca1177 Paul Fox          2011-02-03  60  	input_report_switch(button->input, SW_TABLET_MODE, !state);
89ca1177 Paul Fox          2011-02-03  61  	input_sync(button->input);
89ca1177 Paul Fox          2011-02-03  62  	return 0;
89ca1177 Paul Fox          2011-02-03  63  }
89ca1177 Paul Fox          2011-02-03  64  
89ca1177 Paul Fox          2011-02-03  65  static void ebook_switch_notify(struct acpi_device *device, u32 event)
89ca1177 Paul Fox          2011-02-03  66  {
89ca1177 Paul Fox          2011-02-03  67  	switch (event) {
89ca1177 Paul Fox          2011-02-03  68  	case ACPI_FIXED_HARDWARE_EVENT:
89ca1177 Paul Fox          2011-02-03  69  	case XO15_EBOOK_NOTIFY_STATUS:
89ca1177 Paul Fox          2011-02-03  70  		ebook_send_state(device);
89ca1177 Paul Fox          2011-02-03  71  		break;
89ca1177 Paul Fox          2011-02-03  72  	default:
89ca1177 Paul Fox          2011-02-03 @73  		ACPI_DEBUG_PRINT((ACPI_DB_INFO,
89ca1177 Paul Fox          2011-02-03  74  				  "Unsupported event [0x%x]\n", event));
89ca1177 Paul Fox          2011-02-03  75  		break;
89ca1177 Paul Fox          2011-02-03  76  	}
89ca1177 Paul Fox          2011-02-03  77  }
89ca1177 Paul Fox          2011-02-03  78  
3567a4e2 Rafael J. Wysocki 2012-08-09  79  #ifdef CONFIG_PM_SLEEP
44cb98c4 Rafael J. Wysocki 2012-06-27  80  static int ebook_switch_resume(struct device *dev)
89ca1177 Paul Fox          2011-02-03  81  {

:::::: The code at line 73 was first introduced by commit
:::::: 89ca11771a4b50ed616ab6c37e0ef333d02f1d47 OLPC XO-1.5 ebook switch driver

:::::: TO: Paul Fox <pgf@xxxxxxxxxx>
:::::: CC: Matthew Garrett <mjg@xxxxxxxxxx>

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

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