public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [pm:build-test 122/130] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy'
@ 2018-01-04 14:28 kbuild test robot
  2018-01-04 21:44 ` Schmauss, Erik
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2018-01-04 14:28 UTC (permalink / raw)
  To: Bob Moore
  Cc: kbuild-all, linux-acpi, devel, linux-pm, Rafael J. Wysocki,
	Erik Schmauss

[-- Attachment #1: Type: text/plain, Size: 3406 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git build-test
head:   3fd9789833d2e4a4a10ec7cf20b762290ed50b62
commit: fe2aa18300b9b49d94e509f045602beca40db0aa [122/130] ACPICA: Create and deploy safe version of strncpy
config: x86_64-randconfig-s2-01042137 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout fe2aa18300b9b49d94e509f045602beca40db0aa
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from drivers/acpi/acpica/accommon.h:56:0,
                    from drivers/acpi/acpica/psutils.c:45:
   drivers/acpi/acpica/psutils.c: In function 'acpi_ps_init_op':
>> drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy' [-Werror=implicit-function-declaration]
     ACPI_DISASM_ONLY_MEMBERS(acpi_ut_safe_strncpy(op->common.aml_op_name,
                              ^
   drivers/acpi/acpica/aclocal.h:753:41: note: in definition of macro 'ACPI_DISASM_ONLY_MEMBERS'
    #define ACPI_DISASM_ONLY_MEMBERS(a)     a;
                                            ^
   cc1: some warnings being treated as errors

vim +/acpi_ut_safe_strncpy +97 drivers/acpi/acpica/psutils.c

  > 45	#include "accommon.h"
    46	#include "acparser.h"
    47	#include "amlcode.h"
    48	#include "acconvert.h"
    49	
    50	#define _COMPONENT          ACPI_PARSER
    51	ACPI_MODULE_NAME("psutils")
    52	
    53	/*******************************************************************************
    54	 *
    55	 * FUNCTION:    acpi_ps_create_scope_op
    56	 *
    57	 * PARAMETERS:  None
    58	 *
    59	 * RETURN:      A new Scope object, null on failure
    60	 *
    61	 * DESCRIPTION: Create a Scope and associated namepath op with the root name
    62	 *
    63	 ******************************************************************************/
    64	union acpi_parse_object *acpi_ps_create_scope_op(u8 *aml)
    65	{
    66		union acpi_parse_object *scope_op;
    67	
    68		scope_op = acpi_ps_alloc_op(AML_SCOPE_OP, aml);
    69		if (!scope_op) {
    70			return (NULL);
    71		}
    72	
    73		scope_op->named.name = ACPI_ROOT_NAME;
    74		return (scope_op);
    75	}
    76	
    77	/*******************************************************************************
    78	 *
    79	 * FUNCTION:    acpi_ps_init_op
    80	 *
    81	 * PARAMETERS:  op              - A newly allocated Op object
    82	 *              opcode          - Opcode to store in the Op
    83	 *
    84	 * RETURN:      None
    85	 *
    86	 * DESCRIPTION: Initialize a parse (Op) object
    87	 *
    88	 ******************************************************************************/
    89	
    90	void acpi_ps_init_op(union acpi_parse_object *op, u16 opcode)
    91	{
    92		ACPI_FUNCTION_ENTRY();
    93	
    94		op->common.descriptor_type = ACPI_DESC_TYPE_PARSER;
    95		op->common.aml_opcode = opcode;
    96	
  > 97		ACPI_DISASM_ONLY_MEMBERS(acpi_ut_safe_strncpy(op->common.aml_op_name,
    98							      (acpi_ps_get_opcode_info
    99							       (opcode))->name,
   100							      sizeof(op->common.
   101								     aml_op_name)));
   102	}
   103	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30920 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [pm:build-test 122/130] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy'
  2018-01-04 14:28 [pm:build-test 122/130] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy' kbuild test robot
@ 2018-01-04 21:44 ` Schmauss, Erik
  0 siblings, 0 replies; 2+ messages in thread
From: Schmauss, Erik @ 2018-01-04 21:44 UTC (permalink / raw)
  To: Wu, Fengguang
  Cc: kbuild-all@01.org, linux-acpi@vger.kernel.org, devel@acpica.org,
	linux-pm@vger.kernel.org, Rafael J. Wysocki, Moore, Robert

I posted a revision (V2) of this patch to the mailinglist just now.
> -----Original Message-----
> From: Wu, Fengguang
> Sent: Thursday, January 4, 2018 6:29 AM
> To: Moore, Robert <robert.moore@intel.com>
> Cc: kbuild-all@01.org; linux-acpi@vger.kernel.org; devel@acpica.org; linux-
> pm@vger.kernel.org; Rafael J. Wysocki <rjw@rjwysocki.net>; Schmauss, Erik
> <erik.schmauss@intel.com>
> Subject: [pm:build-test 122/130] drivers/acpi/acpica/psutils.c:97:27: error:
> implicit declaration of function 'acpi_ut_safe_strncpy'
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git build-
> test
> head:   3fd9789833d2e4a4a10ec7cf20b762290ed50b62
> commit: fe2aa18300b9b49d94e509f045602beca40db0aa [122/130] ACPICA:
> Create and deploy safe version of strncpy
> config: x86_64-randconfig-s2-01042137 (attached as .config)
> compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
> reproduce:
>         git checkout fe2aa18300b9b49d94e509f045602beca40db0aa
>         # save the attached .config to linux build tree
>         make ARCH=x86_64
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from drivers/acpi/acpica/accommon.h:56:0,
>                     from drivers/acpi/acpica/psutils.c:45:
>    drivers/acpi/acpica/psutils.c: In function 'acpi_ps_init_op':
> >> drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function
> 'acpi_ut_safe_strncpy' [-Werror=implicit-function-declaration]
>      ACPI_DISASM_ONLY_MEMBERS(acpi_ut_safe_strncpy(op-
> >common.aml_op_name,
>                               ^
>    drivers/acpi/acpica/aclocal.h:753:41: note: in definition of macro
> 'ACPI_DISASM_ONLY_MEMBERS'
>     #define ACPI_DISASM_ONLY_MEMBERS(a)     a;
>                                             ^
>    cc1: some warnings being treated as errors
> 
> vim +/acpi_ut_safe_strncpy +97 drivers/acpi/acpica/psutils.c
> 
>   > 45	#include "accommon.h"
>     46	#include "acparser.h"
>     47	#include "amlcode.h"
>     48	#include "acconvert.h"
>     49
>     50	#define _COMPONENT          ACPI_PARSER
>     51	ACPI_MODULE_NAME("psutils")
>     52
>     53
> 	/*********************************************************
> **********************
>     54	 *
>     55	 * FUNCTION:    acpi_ps_create_scope_op
>     56	 *
>     57	 * PARAMETERS:  None
>     58	 *
>     59	 * RETURN:      A new Scope object, null on failure
>     60	 *
>     61	 * DESCRIPTION: Create a Scope and associated namepath op with the
> root name
>     62	 *
>     63
> *****************************************************************
> *************/
>     64	union acpi_parse_object *acpi_ps_create_scope_op(u8 *aml)
>     65	{
>     66		union acpi_parse_object *scope_op;
>     67
>     68		scope_op = acpi_ps_alloc_op(AML_SCOPE_OP, aml);
>     69		if (!scope_op) {
>     70			return (NULL);
>     71		}
>     72
>     73		scope_op->named.name = ACPI_ROOT_NAME;
>     74		return (scope_op);
>     75	}
>     76
>     77
> 	/*********************************************************
> **********************
>     78	 *
>     79	 * FUNCTION:    acpi_ps_init_op
>     80	 *
>     81	 * PARAMETERS:  op              - A newly allocated Op object
>     82	 *              opcode          - Opcode to store in the Op
>     83	 *
>     84	 * RETURN:      None
>     85	 *
>     86	 * DESCRIPTION: Initialize a parse (Op) object
>     87	 *
>     88
> *****************************************************************
> *************/
>     89
>     90	void acpi_ps_init_op(union acpi_parse_object *op, u16 opcode)
>     91	{
>     92		ACPI_FUNCTION_ENTRY();
>     93
>     94		op->common.descriptor_type = ACPI_DESC_TYPE_PARSER;
>     95		op->common.aml_opcode = opcode;
>     96
>   > 97		ACPI_DISASM_ONLY_MEMBERS(acpi_ut_safe_strncpy(op-
> >common.aml_op_name,
>     98
> (acpi_ps_get_opcode_info
>     99							       (opcode))->name,
>    100							      sizeof(op-
> >common.
>    101
> aml_op_name)));
>    102	}
>    103
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-04 21:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-04 14:28 [pm:build-test 122/130] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy' kbuild test robot
2018-01-04 21:44 ` Schmauss, Erik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox