* [matwey:bbb-3.8-3.9 159/312] drivers/acpi/acpi_memhotplug.c:302:12: error: too many arguments to function 'remove_memory'
@ 2018-02-02 19:29 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-02-02 19:29 UTC (permalink / raw)
To: Tang Chen
Cc: kbuild-all, Matwey V. Kornilov, Wen Congyang, Andrew Morton,
Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2284 bytes --]
tree: https://github.com/matwey/linux bbb-3.8-3.9
head: f24c5d4dc718b210b6a2d874187f43e63b99d162
commit: e43aea40d7391e921001118302c235a7cdf36c82 [159/312] memory-hotplug: remove sysfs file of node
config: x86_64-rhel (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout e43aea40d7391e921001118302c235a7cdf36c82
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/acpi/acpi_memhotplug.c: In function 'acpi_memory_remove_memory':
>> drivers/acpi/acpi_memhotplug.c:302:12: error: too many arguments to function 'remove_memory'
result = remove_memory(nid, info->start_addr, info->length);
^
In file included from include/linux/mmzone.h:761:0,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/acpi/acpi_memhotplug.c:29:
include/linux/memory_hotplug.h:250:12: note: declared here
extern int remove_memory(u64 start, u64 size);
^
vim +/remove_memory +302 drivers/acpi/acpi_memhotplug.c
280
281 static int acpi_memory_remove_memory(struct acpi_memory_device *mem_device)
282 {
283 int result = 0, nid;
284 struct acpi_memory_info *info, *n;
285
286 nid = acpi_get_node(mem_device->device->handle);
287
288 list_for_each_entry_safe(info, n, &mem_device->res_list, list) {
289 if (info->failed)
290 /* The kernel does not use this memory block */
291 continue;
292
293 if (!info->enabled)
294 /*
295 * The kernel uses this memory block, but it may be not
296 * managed by us.
297 */
298 return -EBUSY;
299
300 if (nid < 0)
301 nid = memory_add_physaddr_to_nid(info->start_addr);
> 302 result = remove_memory(nid, info->start_addr, info->length);
303 if (result)
304 return result;
305
306 list_del(&info->list);
307 kfree(info);
308 }
309
310 return result;
311 }
312
---
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: 29096 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-02 19:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-02 19:29 [matwey:bbb-3.8-3.9 159/312] drivers/acpi/acpi_memhotplug.c:302:12: error: too many arguments to function 'remove_memory' kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox