From: kbuild test robot <fengguang.wu@intel.com>
To: Bob Moore <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>,
Erik Schmauss <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'
Date: Thu, 4 Jan 2018 22:28:58 +0800 [thread overview]
Message-ID: <201801042255.gff4Tm67%fengguang.wu@intel.com> (raw)
[-- 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 --]
next reply other threads:[~2018-01-04 14:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-04 14:28 kbuild test robot [this message]
2018-01-04 21:44 ` [pm:build-test 122/130] drivers/acpi/acpica/psutils.c:97:27: error: implicit declaration of function 'acpi_ut_safe_strncpy' Schmauss, Erik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201801042255.gff4Tm67%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=devel@acpica.org \
--cc=erik.schmauss@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=robert.moore@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox