All of lore.kernel.org
 help / color / mirror / Atom feed
* [pm:bleeding-edge 122/129] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy'; did you mean 'acpi_ut_trace_str'?
@ 2018-01-04 13:50 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2018-01-04 13:50 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: 3422 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   e65587cfad0fd464e31bcf288c084b9f4d5c302c
commit: fe2aa18300b9b49d94e509f045602beca40db0aa [122/129] ACPICA: Create and deploy safe version of strncpy
config: x86_64-randconfig-x010-201800 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
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'; did you mean 'acpi_ut_trace_str'? [-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 +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: 31898 bytes --]

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

* [Devel] [pm:bleeding-edge 122/129] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy'; did you mean 'acpi_ut_trace_str'?
@ 2018-01-04 13:50 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2018-01-04 13:50 UTC (permalink / raw)
  To: devel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   e65587cfad0fd464e31bcf288c084b9f4d5c302c
commit: fe2aa18300b9b49d94e509f045602beca40db0aa [122/129] ACPICA: Create and deploy safe version of strncpy
config: x86_64-randconfig-x010-201800 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
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'; did you mean 'acpi_ut_trace_str'? [-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 +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: 31898 bytes --]

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

* RE: [pm:bleeding-edge 122/129] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy'; did you mean 'acpi_ut_trace_str'?
@ 2018-01-04 16:43   ` Moore, Robert
  0 siblings, 0 replies; 4+ messages in thread
From: Moore, Robert @ 2018-01-04 16:43 UTC (permalink / raw)
  To: Wu, Fengguang
  Cc: kbuild-all, linux-acpi, devel, linux-pm, Rafael J. Wysocki,
	Schmauss, Erik

May have something to do with this:

#if defined (ACPI_DEBUGGER) || defined (ACPI_APPLICATION)



> -----Original Message-----
> From: Wu, Fengguang
> Sent: Thursday, January 4, 2018 5:51 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:bleeding-edge 122/129] drivers/acpi/acpica/psutils.c:97:27:
> error: implicit declaration of function 'acpi_ut_safe_strncpy'; did you
> mean 'acpi_ut_trace_str'?
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-
> pm.git bleeding-edge
> head:   e65587cfad0fd464e31bcf288c084b9f4d5c302c
> commit: fe2aa18300b9b49d94e509f045602beca40db0aa [122/129] ACPICA:
> Create and deploy safe version of strncpy
> config: x86_64-randconfig-x010-201800 (attached as .config)
> compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
> 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'; did you mean 'acpi_ut_trace_str'? [-
> 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 +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] 4+ messages in thread

* Re: [Devel] [pm:bleeding-edge 122/129] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy'; did you mean 'acpi_ut_trace_str'?
@ 2018-01-04 16:43   ` Moore, Robert
  0 siblings, 0 replies; 4+ messages in thread
From: Moore, Robert @ 2018-01-04 16:43 UTC (permalink / raw)
  To: devel

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

May have something to do with this:

#if defined (ACPI_DEBUGGER) || defined (ACPI_APPLICATION)



> -----Original Message-----
> From: Wu, Fengguang
> Sent: Thursday, January 4, 2018 5:51 AM
> To: Moore, Robert <robert.moore(a)intel.com>
> Cc: kbuild-all(a)01.org; linux-acpi(a)vger.kernel.org; devel(a)acpica.org;
> linux-pm(a)vger.kernel.org; Rafael J. Wysocki <rjw(a)rjwysocki.net>;
> Schmauss, Erik <erik.schmauss(a)intel.com>
> Subject: [pm:bleeding-edge 122/129] drivers/acpi/acpica/psutils.c:97:27:
> error: implicit declaration of function 'acpi_ut_safe_strncpy'; did you
> mean 'acpi_ut_trace_str'?
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-
> pm.git bleeding-edge
> head:   e65587cfad0fd464e31bcf288c084b9f4d5c302c
> commit: fe2aa18300b9b49d94e509f045602beca40db0aa [122/129] ACPICA:
> Create and deploy safe version of strncpy
> config: x86_64-randconfig-x010-201800 (attached as .config)
> compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
> 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'; did you mean 'acpi_ut_trace_str'? [-
> 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 +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] 4+ messages in thread

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-04 13:50 [pm:bleeding-edge 122/129] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy'; did you mean 'acpi_ut_trace_str'? kbuild test robot
2018-01-04 13:50 ` [Devel] " kbuild test robot
2018-01-04 16:43 ` Moore, Robert
2018-01-04 16:43   ` [Devel] " Moore, Robert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.