Re: [PATCH 2/5] x86: test early command-line code

From: kbuild test robot
Date: Thu Dec 17 2015 - 17:45:18 EST


Hi Dave,

[auto build test ERROR on v4.4-rc5]
[also build test ERROR on next-20151217]
[cannot apply to tip/x86/core]

url: https://github.com/0day-ci/linux/commits/Dave-Hansen/x86-pass-in-size-to-early-cmdline-parsing/20151218-055822
config: x86_64-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All error/warnings (new ones prefixed by >>):

include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute
arch/x86/kernel/check.c:170:1: sparse: expected ';' at end of parameter declaration
arch/x86/kernel/check.c:170:1: sparse: expected function body
arch/x86/kernel/check.c:170:1: sparse: Expected ; at the end of type declaration
arch/x86/kernel/check.c:170:1: sparse: got =
In file included from arch/x86/kernel/check.c:1:0:
arch/x86/kernel/check.c: In function 'test_early_cmdline':
>> include/linux/init.h:183:20: error: storage class specified for parameter '__initcall_test_early_cmdline7'
static initcall_t __initcall_##fn##id __used \
^
include/linux/init.h:216:28: note: in expansion of macro '__define_initcall'
#define late_initcall(fn) __define_initcall(fn, 7)
^
>> arch/x86/kernel/check.c:170:1: note: in expansion of macro 'late_initcall'
late_initcall(test_early_cmdline);
^
>> arch/x86/kernel/check.c:170:1: error: parameter '__initcall_test_early_cmdline7' is initialized
>> arch/x86/kernel/check.c:170:1: warning: '__used__' attribute ignored [-Wattributes]
In file included from arch/x86/kernel/check.c:1:0:
>> include/linux/init.h:183:20: error: section attribute not allowed for '__initcall_test_early_cmdline7'
static initcall_t __initcall_##fn##id __used \
^
include/linux/init.h:216:28: note: in expansion of macro '__define_initcall'
#define late_initcall(fn) __define_initcall(fn, 7)
^
>> arch/x86/kernel/check.c:170:1: note: in expansion of macro 'late_initcall'
late_initcall(test_early_cmdline);
^
>> arch/x86/kernel/check.c:170:34: error: expected declaration specifiers before ';' token
late_initcall(test_early_cmdline);
^
>> arch/x86/kernel/check.c:169:5: error: old-style parameter declarations in prototyped function definition
int test_early_cmdline(void)
^
>> arch/x86/kernel/check.c:170:34: error: expected '{' at end of input
late_initcall(test_early_cmdline);
^
>> arch/x86/kernel/check.c:170:34: warning: control reaches end of non-void function [-Wreturn-type]
late_initcall(test_early_cmdline);
^

sparse warnings: (new ones prefixed by >>)

include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> arch/x86/kernel/check.c:170:1: sparse: expected ';' at end of parameter declaration
>> arch/x86/kernel/check.c:170:1: sparse: expected function body
arch/x86/kernel/check.c:170:1: sparse: Expected ; at the end of type declaration
arch/x86/kernel/check.c:170:1: sparse: got =
In file included from arch/x86/kernel/check.c:1:0:
arch/x86/kernel/check.c: In function 'test_early_cmdline':
include/linux/init.h:183:20: error: storage class specified for parameter '__initcall_test_early_cmdline7'
static initcall_t __initcall_##fn##id __used \
^
include/linux/init.h:216:28: note: in expansion of macro '__define_initcall'
#define late_initcall(fn) __define_initcall(fn, 7)
^
arch/x86/kernel/check.c:170:1: note: in expansion of macro 'late_initcall'
late_initcall(test_early_cmdline);
^
arch/x86/kernel/check.c:170:1: error: parameter '__initcall_test_early_cmdline7' is initialized
arch/x86/kernel/check.c:170:1: warning: '__used__' attribute ignored [-Wattributes]
In file included from arch/x86/kernel/check.c:1:0:
include/linux/init.h:183:20: error: section attribute not allowed for '__initcall_test_early_cmdline7'
static initcall_t __initcall_##fn##id __used \
^
include/linux/init.h:216:28: note: in expansion of macro '__define_initcall'
#define late_initcall(fn) __define_initcall(fn, 7)
^
arch/x86/kernel/check.c:170:1: note: in expansion of macro 'late_initcall'
late_initcall(test_early_cmdline);
^
arch/x86/kernel/check.c:170:34: error: expected declaration specifiers before ';' token
late_initcall(test_early_cmdline);
^
arch/x86/kernel/check.c:169:5: error: old-style parameter declarations in prototyped function definition
int test_early_cmdline(void)
^
arch/x86/kernel/check.c:170:34: error: expected '{' at end of input
late_initcall(test_early_cmdline);
^
arch/x86/kernel/check.c:170:34: warning: control reaches end of non-void function [-Wreturn-type]
late_initcall(test_early_cmdline);
^

vim +/__initcall_test_early_cmdline7 +170 arch/x86/kernel/check.c

163 schedule_delayed_work(&bios_check_work, 0);
164 return 0;
165 }
166 device_initcall(start_periodic_check_for_corruption);
167
168 #ifdef CONFIG_X86_TEST_EARLY_CMDLINE
> 169 int test_early_cmdline(void)
> 170 late_initcall(test_early_cmdline);
171 #endif /* CONFIG_X86_TEST_EARLY_CMDLINE */

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

Attachment: .config.gz
Description: Binary data