* [tglx-devel:x86/entry 40/46] arch/x86/include/asm/idtentry.h:102:29: error: storage class specified for parameter '__exc_stack_segment'
@ 2020-03-09 17:00 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-09 17:00 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 29819 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/entry
head: dd8fc8ae84a99ac6c71c380e85543f0623b6ac08
commit: fb6881f25db444d96ddc7608e3f2d6ecf213a42c [40/46] x86/entry: Convert Stack segment exception to IDTENTRY
config: i386-randconfig-a001-20200308 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
git checkout fb6881f25db444d96ddc7608e3f2d6ecf213a42c
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
^
arch/x86/kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__gnu_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:29: error: 'no_instrument_function' attribute applies only to functions
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__always_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/idtentry.h:105:1: note: in expansion of macro '__visible'
__visible notrace void func(struct pt_regs *regs, \
^~~~~~~~~
arch/x86/kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86/kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:112:22: error: expected declaration specifiers before ';' token
NOKPROBE_SYMBOL(func); \
^
arch/x86/kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/traps.c:315:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86/kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:102:29: error: storage class specified for parameter '__exc_segment_not_present'
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:29: warning: parameter '__exc_segment_not_present' declared 'inline'
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__gnu_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:29: error: 'no_instrument_function' attribute applies only to functions
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__always_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/idtentry.h:105:1: note: in expansion of macro '__visible'
__visible notrace void func(struct pt_regs *regs, \
^~~~~~~~~
arch/x86/kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86/kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:112:22: error: expected declaration specifiers before ';' token
NOKPROBE_SYMBOL(func); \
^
arch/x86/kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/traps.c:321:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86/kernel/traps.c:46:
>> arch/x86/include/asm/idtentry.h:102:29: error: storage class specified for parameter '__exc_stack_segment'
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/idtentry.h:102:29: warning: parameter '__exc_stack_segment' declared 'inline'
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__gnu_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:29: error: 'no_instrument_function' attribute applies only to functions
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__always_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86/kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/idtentry.h:105:1: note: in expansion of macro '__visible'
__visible notrace void func(struct pt_regs *regs, \
^~~~~~~~~
arch/x86/kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86/kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:112:22: error: expected declaration specifiers before ';' token
NOKPROBE_SYMBOL(func); \
^
arch/x86/kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/traps.c:327:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/traps.h:12:23: note: in expansion of macro '__visible'
#define dotraplinkage __visible
^~~~~~~~~
arch/x86/kernel/traps.c:334:1: note: in expansion of macro 'dotraplinkage'
dotraplinkage void do_##name(struct pt_regs *regs, long error_code) \
^~~~~~~~~~~~~
arch/x86/kernel/traps.c:339:1: note: in expansion of macro 'DO_ERROR'
DO_ERROR(X86_TRAP_AC, SIGBUS, BUS_ADRALN, NULL, "alignment check", alignment_check)
^~~~~~~~
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86/kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:63:29: error: storage class specified for parameter '__exc_bounds'
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86/kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:63:29: warning: parameter '__exc_bounds' declared 'inline'
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86/kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:63:45: warning: '__gnu_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86/kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:63:29: error: 'no_instrument_function' attribute applies only to functions
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86/kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:63:45: warning: '__always_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86/kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/idtentry.h:65:1: note: in expansion of macro '__visible'
__visible notrace void func(struct pt_regs *regs) \
^~~~~~~~~
arch/x86/kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
--
^
arch/x86//kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__gnu_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:29: error: 'no_instrument_function' attribute applies only to functions
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__always_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/idtentry.h:105:1: note: in expansion of macro '__visible'
__visible notrace void func(struct pt_regs *regs, \
^~~~~~~~~
arch/x86//kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86//kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:112:22: error: expected declaration specifiers before ';' token
NOKPROBE_SYMBOL(func); \
^
arch/x86//kernel/traps.c:314:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_invalid_tss)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86//kernel/traps.c:315:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86//kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:102:29: error: storage class specified for parameter '__exc_segment_not_present'
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:29: warning: parameter '__exc_segment_not_present' declared 'inline'
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__gnu_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:29: error: 'no_instrument_function' attribute applies only to functions
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__always_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/idtentry.h:105:1: note: in expansion of macro '__visible'
__visible notrace void func(struct pt_regs *regs, \
^~~~~~~~~
arch/x86//kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86//kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:112:22: error: expected declaration specifiers before ';' token
NOKPROBE_SYMBOL(func); \
^
arch/x86//kernel/traps.c:320:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_segment_not_present)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86//kernel/traps.c:321:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86//kernel/traps.c:46:
>> arch/x86/include/asm/idtentry.h:102:29: error: storage class specified for parameter '__exc_stack_segment'
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/idtentry.h:102:29: warning: parameter '__exc_stack_segment' declared 'inline'
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__gnu_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:29: error: 'no_instrument_function' attribute applies only to functions
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:102:45: warning: '__always_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs, \
^
arch/x86//kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/idtentry.h:105:1: note: in expansion of macro '__visible'
__visible notrace void func(struct pt_regs *regs, \
^~~~~~~~~
arch/x86//kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86//kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:112:22: error: expected declaration specifiers before ';' token
NOKPROBE_SYMBOL(func); \
^
arch/x86//kernel/traps.c:326:1: note: in expansion of macro 'DEFINE_IDTENTRY_ERRORCODE'
DEFINE_IDTENTRY_ERRORCODE(exc_stack_segment)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86//kernel/traps.c:327:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/traps.h:12:23: note: in expansion of macro '__visible'
#define dotraplinkage __visible
^~~~~~~~~
arch/x86//kernel/traps.c:334:1: note: in expansion of macro 'dotraplinkage'
dotraplinkage void do_##name(struct pt_regs *regs, long error_code) \
^~~~~~~~~~~~~
arch/x86//kernel/traps.c:339:1: note: in expansion of macro 'DO_ERROR'
DO_ERROR(X86_TRAP_AC, SIGBUS, BUS_ADRALN, NULL, "alignment check", alignment_check)
^~~~~~~~
In file included from arch/x86/include/asm/traps.h:9:0,
from arch/x86//kernel/traps.c:46:
arch/x86/include/asm/idtentry.h:63:29: error: storage class specified for parameter '__exc_bounds'
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86//kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:63:29: warning: parameter '__exc_bounds' declared 'inline'
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86//kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:63:45: warning: '__gnu_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86//kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:63:29: error: 'no_instrument_function' attribute applies only to functions
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86//kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
arch/x86/include/asm/idtentry.h:63:45: warning: '__always_inline__' attribute ignored [-Wattributes]
static __always_inline void __##func(struct pt_regs *regs); \
^
arch/x86//kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
DEFINE_IDTENTRY(exc_bounds)
^~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:59:0,
from <command-line>:0:
include/linux/compiler_attributes.h:149:41: error: expected declaration specifiers before '__attribute__'
# define __visible __attribute__((__externally_visible__))
^
arch/x86/include/asm/idtentry.h:65:1: note: in expansion of macro '__visible'
__visible notrace void func(struct pt_regs *regs) \
^~~~~~~~~
arch/x86//kernel/traps.c:483:1: note: in expansion of macro 'DEFINE_IDTENTRY'
vim +/__exc_stack_segment +102 arch/x86/include/asm/idtentry.h
d6bf56db0c42e3 Thomas Gleixner 2020-02-25 74
a761e92a0aca07 Thomas Gleixner 2020-02-25 75 /**
a761e92a0aca07 Thomas Gleixner 2020-02-25 76 * DECLARE_IDTENTRY_ERRORCODE - Declare functions for simple IDT entry points
a761e92a0aca07 Thomas Gleixner 2020-02-25 77 * Error code pushed by hardware
a761e92a0aca07 Thomas Gleixner 2020-02-25 78 * @vector: Vector number (ignored for C)
a761e92a0aca07 Thomas Gleixner 2020-02-25 79 * @func: Function name of the entry point
a761e92a0aca07 Thomas Gleixner 2020-02-25 80 *
a761e92a0aca07 Thomas Gleixner 2020-02-25 81 * Declares three functions:
a761e92a0aca07 Thomas Gleixner 2020-02-25 82 * - The ASM entry point: asm_##func
a761e92a0aca07 Thomas Gleixner 2020-02-25 83 * - The XEN PV trap entry point: xen_##func (maybe unused)
a761e92a0aca07 Thomas Gleixner 2020-02-25 84 * - The C handler called from the ASM entry point
a761e92a0aca07 Thomas Gleixner 2020-02-25 85 *
a761e92a0aca07 Thomas Gleixner 2020-02-25 86 * Same as DECLARE_IDTENTRY, but has an extra error_code argument for the
a761e92a0aca07 Thomas Gleixner 2020-02-25 87 * C-handler.
a761e92a0aca07 Thomas Gleixner 2020-02-25 88 */
a761e92a0aca07 Thomas Gleixner 2020-02-25 89 #define DECLARE_IDTENTRY_ERRORCODE(vector, func) \
a761e92a0aca07 Thomas Gleixner 2020-02-25 90 asmlinkage void asm_##func(void); \
a761e92a0aca07 Thomas Gleixner 2020-02-25 91 asmlinkage void xen_asm_##func(void); \
a761e92a0aca07 Thomas Gleixner 2020-02-25 92 __visible void func(struct pt_regs *regs, unsigned long error_code)
a761e92a0aca07 Thomas Gleixner 2020-02-25 93
a761e92a0aca07 Thomas Gleixner 2020-02-25 94 /**
a761e92a0aca07 Thomas Gleixner 2020-02-25 95 * DEFINE_IDTENTRY_ERRORCODE - Emit code for simple IDT entry points
a761e92a0aca07 Thomas Gleixner 2020-02-25 96 * Error code pushed by hardware
a761e92a0aca07 Thomas Gleixner 2020-02-25 97 * @func: Function name of the entry point
a761e92a0aca07 Thomas Gleixner 2020-02-25 98 *
a761e92a0aca07 Thomas Gleixner 2020-02-25 99 * Same as DEFINE_IDTENTRY, but has an extra error_code argument
a761e92a0aca07 Thomas Gleixner 2020-02-25 100 */
a761e92a0aca07 Thomas Gleixner 2020-02-25 101 #define DEFINE_IDTENTRY_ERRORCODE(func) \
a761e92a0aca07 Thomas Gleixner 2020-02-25 @102 static __always_inline void __##func(struct pt_regs *regs, \
a761e92a0aca07 Thomas Gleixner 2020-02-25 103 unsigned long error_code); \
a761e92a0aca07 Thomas Gleixner 2020-02-25 104 \
a761e92a0aca07 Thomas Gleixner 2020-02-25 105 __visible notrace void func(struct pt_regs *regs, \
a761e92a0aca07 Thomas Gleixner 2020-02-25 106 unsigned long error_code) \
a761e92a0aca07 Thomas Gleixner 2020-02-25 107 { \
a761e92a0aca07 Thomas Gleixner 2020-02-25 108 idtentry_enter(regs); \
a761e92a0aca07 Thomas Gleixner 2020-02-25 109 __##func (regs, error_code); \
a761e92a0aca07 Thomas Gleixner 2020-02-25 110 idtentry_exit(regs); \
a761e92a0aca07 Thomas Gleixner 2020-02-25 111 } \
a761e92a0aca07 Thomas Gleixner 2020-02-25 112 NOKPROBE_SYMBOL(func); \
a761e92a0aca07 Thomas Gleixner 2020-02-25 113 \
a761e92a0aca07 Thomas Gleixner 2020-02-25 114 static __always_inline void __##func(struct pt_regs *regs, \
a761e92a0aca07 Thomas Gleixner 2020-02-25 115 unsigned long error_code)
a761e92a0aca07 Thomas Gleixner 2020-02-25 116
:::::: The code at line 102 was first introduced by commit
:::::: a761e92a0aca074f40ca69a008461e40c3c595b3 x86/entry: Provide IDTENTRY_ERRORCODE
:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33740 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-09 17:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-09 17:00 [tglx-devel:x86/entry 40/46] arch/x86/include/asm/idtentry.h:102:29: error: storage class specified for parameter '__exc_stack_segment' kbuild test robot
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.