Skip to content

Commit ec86539

Browse files
author
Greentime Hu
committed
nds32: fix build error because of wrong semicolon
It shall be removed in the define usage. We shall not put a semicolon there. /kisskb/src/arch/nds32/include/asm/elf.h:126:29: error: expected '}' before ';' token #define ELF_DATA ELFDATA2LSB; ^ /kisskb/src/fs/proc/kcore.c:318:17: note: in expansion of macro 'ELF_DATA' [EI_DATA] = ELF_DATA, ^~~~~~~~ /kisskb/src/fs/proc/kcore.c:312:15: note: to match this '{' .e_ident = { ^ /kisskb/src/scripts/Makefile.build:307: recipe for target 'fs/proc/kcore.o' failed Signed-off-by: Greentime Hu <[email protected]>
1 parent 0cde56e commit ec86539

File tree

1 file changed

+2
-2
lines changed
  • arch/nds32/include/asm

1 file changed

+2
-2
lines changed

arch/nds32/include/asm/elf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ struct elf32_hdr;
121121
*/
122122
#define ELF_CLASS ELFCLASS32
123123
#ifdef __NDS32_EB__
124-
#define ELF_DATA ELFDATA2MSB;
124+
#define ELF_DATA ELFDATA2MSB
125125
#else
126-
#define ELF_DATA ELFDATA2LSB;
126+
#define ELF_DATA ELFDATA2LSB
127127
#endif
128128
#define ELF_ARCH EM_NDS32
129129
#define USE_ELF_CORE_DUMP

0 commit comments

Comments
 (0)