public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [weiny2:v6.5-pks-core 17/34] include/linux/stddef.h:10:7: error: Expected an identifier after {
@ 2023-09-05  4:00 kernel test robot
  2023-09-05 18:29 ` Nathan Chancellor
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-09-05  4:00 UTC (permalink / raw)
  To: Ira Weiny; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/weiny2/linux-kernel.git v6.5-pks-core
head:   1333a49c014b15a2cf7584b4a3641f03e0602a40
commit: 3ee964a4772cd93458d8dbf48f2fd97b8b65551d [17/34] FIXME x86/entry: Add auxiliary pt_regs space
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230905/202309051156.S7BqDAQ8-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230905/202309051156.S7BqDAQ8-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309051156.S7BqDAQ8-lkp@intel.com/

All errors (new ones prefixed by >>):

>> include/linux/stddef.h:10:7: error: Expected an identifier after {
   enum {
         ^
>> include/linux/stddef.h:11:11: error: expected newline
    false = 0,
             ^
>> include/linux/stddef.h:13:1: error: invalid instruction mnemonic '}'
   };
   ^


vim +10 include/linux/stddef.h

6e218287432472 Richard Knutsson 2006-09-30   9  
6e218287432472 Richard Knutsson 2006-09-30 @10  enum {
6e218287432472 Richard Knutsson 2006-09-30 @11  	false	= 0,
6e218287432472 Richard Knutsson 2006-09-30  12  	true	= 1
6e218287432472 Richard Knutsson 2006-09-30 @13  };
6e218287432472 Richard Knutsson 2006-09-30  14  

:::::: The code at line 10 was first introduced by commit
:::::: 6e21828743247270d09a86756a0c11702500dbfb [PATCH] Generic boolean

:::::: TO: Richard Knutsson <ricknu-0@student.ltu.se>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [weiny2:v6.5-pks-core 17/34] include/linux/stddef.h:10:7: error: Expected an identifier after {
  2023-09-05  4:00 [weiny2:v6.5-pks-core 17/34] include/linux/stddef.h:10:7: error: Expected an identifier after { kernel test robot
@ 2023-09-05 18:29 ` Nathan Chancellor
  0 siblings, 0 replies; 2+ messages in thread
From: Nathan Chancellor @ 2023-09-05 18:29 UTC (permalink / raw)
  To: kernel test robot; +Cc: Ira Weiny, llvm, oe-kbuild-all

On Tue, Sep 05, 2023 at 12:00:05PM +0800, kernel test robot wrote:
> tree:   https://github.com/weiny2/linux-kernel.git v6.5-pks-core
> head:   1333a49c014b15a2cf7584b4a3641f03e0602a40
> commit: 3ee964a4772cd93458d8dbf48f2fd97b8b65551d [17/34] FIXME x86/entry: Add auxiliary pt_regs space
> config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230905/202309051156.S7BqDAQ8-lkp@intel.com/config)
> compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230905/202309051156.S7BqDAQ8-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202309051156.S7BqDAQ8-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
> >> include/linux/stddef.h:10:7: error: Expected an identifier after {
>    enum {
>          ^
> >> include/linux/stddef.h:11:11: error: expected newline
>     false = 0,
>              ^
> >> include/linux/stddef.h:13:1: error: invalid instruction mnemonic '}'
>    };
>    ^

Odd that GCC does not complain... This error comes from
arch/x86/kernel/ftrace_64.S. It appears that stddef.h gets included into
ftrace_64.S via the container_of.h include in
arch/x86/include/asm/ptrace.h, which obviously won't work. Something
like the following diff would avoid that:

diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h
index 5a9c85893459..4ea2a615c8c5 100644
--- a/arch/x86/include/asm/ptrace.h
+++ b/arch/x86/include/asm/ptrace.h
@@ -2,12 +2,12 @@
 #ifndef _ASM_X86_PTRACE_H
 #define _ASM_X86_PTRACE_H
 
-#include <linux/container_of.h>
 #include <asm/segment.h>
 #include <asm/page_types.h>
 #include <uapi/asm/ptrace.h>
 
 #ifndef __ASSEMBLY__
+#include <linux/container_of.h>
 #ifdef __i386__
 
 struct pt_regs {

Cheers,
Nathan

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-05 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-05  4:00 [weiny2:v6.5-pks-core 17/34] include/linux/stddef.h:10:7: error: Expected an identifier after { kernel test robot
2023-09-05 18:29 ` Nathan Chancellor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox