Skip to content
Snippets Groups Projects
Commit c7dea6e2 authored by Alexey Brodkin's avatar Alexey Brodkin
Browse files

arc: make global_data.h usable in assembly files


Currently on attempt to use global_data.h in an assembly file following
will happen:
-------------------->8-----------------
./arch/arc/include/asm/global_data.h: Assembler messages:
./arch/arc/include/asm/global_data.h:11: Error: bad instruction 'struct arch_global_data{'
./arch/arc/include/asm/global_data.h:12: Error: junk at end of line, first unrecognized character is `}'
scripts/Makefile.build:316: recipe for target 'arch/arc/lib/start.o' failed
-------------------->8-----------------

In this change we disable struct arch_global_data in ASM which fixes
the issue above.

Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
parent 7a54f517
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
#ifndef __ASM_ARC_GLOBAL_DATA_H #ifndef __ASM_ARC_GLOBAL_DATA_H
#define __ASM_ARC_GLOBAL_DATA_H #define __ASM_ARC_GLOBAL_DATA_H
#ifndef __ASSEMBLY__
/* Architecture-specific global data */ /* Architecture-specific global data */
struct arch_global_data { struct arch_global_data {
}; };
#endif /* __ASSEMBLY__ */
#include <asm-generic/global_data.h> #include <asm-generic/global_data.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment