Re: [PATCH v2 3/5] ACPI / bus: Switch to use new generic UUID API

From: kbuild test robot
Date: Wed May 31 2017 - 19:56:54 EST


Hi Andy,

[auto build test WARNING on pm/linux-next]
[also build test WARNING on v4.12-rc3 next-20170531]
[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/Andy-Shevchenko/ACPI-et-al-convert-to-use-new-UUID-API/20170601-072311
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: x86_64-randconfig-x010-201722 (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=x86_64

All warnings (new ones prefixed by >>):

drivers/acpi/bus.c: In function 'acpi_run_osc':
drivers/acpi/bus.c:228:2: error: unknown type name 'guid_t'
guid_t guid;
^~~~~~
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from drivers/acpi/bus.c:21:
drivers/acpi/bus.c:234:6: error: implicit declaration of function 'guid_parse' [-Werror=implicit-function-declaration]
if (guid_parse(context->uuid_str, &guid))
^
include/linux/compiler.h:160:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/acpi/bus.c:234:2: note: in expansion of macro 'if'
if (guid_parse(context->uuid_str, &guid))
^~
cc1: some warnings being treated as errors

vim +/if +234 drivers/acpi/bus.c

218 return AE_OK;
219 }
220 EXPORT_SYMBOL_GPL(acpi_str_to_uuid);
221
222 acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context)
223 {
224 acpi_status status;
225 struct acpi_object_list input;
226 union acpi_object in_params[4];
227 union acpi_object *out_obj;
228 guid_t guid;
229 u32 errors;
230 struct acpi_buffer output = {ACPI_ALLOCATE_BUFFER, NULL};
231
232 if (!context)
233 return AE_ERROR;
> 234 if (guid_parse(context->uuid_str, &guid))
235 return AE_ERROR;
236 context->ret.length = ACPI_ALLOCATE_BUFFER;
237 context->ret.pointer = NULL;
238
239 /* Setting up input parameters */
240 input.count = 4;
241 input.pointer = in_params;
242 in_params[0].type = ACPI_TYPE_BUFFER;

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

Attachment: .config.gz
Description: application/gzip