Skip to contentSkip to conversation

arch/x86/include/asm/fpu/internal.h:485:1: sparse: sparse: missing identifier in declaration

PATCH New Dan Carpenter 1 participant 1 message Apr 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 30/47 arch/x86/include/asm/fpu/internal.h:485:1: sparse: sparse: missing identifier in declaration

tree:   https://github.com/yyu168/linux_cet.git cet
head:   80138cab012f983a4395ac70e3804739eaff02eb
commit: 0087ee9f497dcb2ae98a00a0b6c95994848c9943 [30/47] x86/cet/shstk: Handle signals for shadow stack
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-191-gc51a0382-dirty
        git checkout 0087ee9f497dcb2ae98a00a0b6c95994848c9943
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate

sparse warnings: (new ones prefixed by >>)

Quoted 1 line
Quoted 1 line

arch/x86/include/asm/fpu/internal.h:485:1: sparse: sparse: missing identifier in declaration

arch/x86/include/asm/fpu/internal.h:485:1: sparse: sparse: Expected ; at the end of type declaration arch/x86/include/asm/fpu/internal.h:485:1: sparse: sparse: got { arch/x86/include/asm/fpu/internal.h:487:1: sparse: sparse: Expected ; at the end of type declaration arch/x86/include/asm/fpu/internal.h:487:1: sparse: sparse: got }
--

Quoted 1 line
Quoted 1 line

arch/x86/include/asm/fpu/internal.h:485:1: sparse: sparse: missing identifier in declaration

arch/x86/include/asm/fpu/internal.h:485:1: sparse: sparse: Expected ; at the end of type declaration arch/x86/include/asm/fpu/internal.h:485:1: sparse: sparse: got { arch/x86/include/asm/fpu/internal.h:487:1: sparse: sparse: Expected ; at the end of type declaration arch/x86/include/asm/fpu/internal.h:487:1: sparse: sparse: got } arch/x86/kernel/signal.c:282:15: sparse: sparse: undefined identifier 'copy_fpstate_to_sigframe'

# https://github.com/yyu168/linux_cet/commit/0087ee9f497dcb2ae98a00a0b6c95994848c9943
git remote add yyu168-linux_cet https://github.com/yyu168/linux_cet.git
git remote update yyu168-linux_cet
git checkout 0087ee9f497dcb2ae98a00a0b6c95994848c9943
vim +485 arch/x86/include/asm/fpu/internal.h

0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05  479  #ifdef CONFIG_X86_INTEL_CET
0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05  480  extern int save_cet_to_sigframe(int ia32, void __user *fp,
0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05  481  				unsigned long restorer);
0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05  482  #else
0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05  483  static inline int save_cet_to_sigframe(int ia32, void __user *fp,
0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05  484  				unsigned long restorer);
                                                                                                                                       ^

Extra semi-colon.

0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05 @485  {
0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05  486  	return 0;
0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05  487  }
0087ee9f497dcb arch/x86/include/asm/fpu/internal.h Yu-cheng Yu    2017-01-05  488  #endif
87dafd41a4423c arch/x86/include/asm/fpu/internal.h Ingo Molnar    2015-05-25  489  extern int copy_fpstate_to_sigframe(void __user *buf, void __user *fp, int size);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org