diff options
| author | Tom Rini <[email protected]> | 2021-06-03 09:39:02 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-06-23 08:45:03 -0400 |
| commit | 076c7bfb1f0f1b7c516391aeac6e46fac78fd7de (patch) | |
| tree | 10c5ee37675cba941788becd46204aae47732051 /arch/arc/include | |
| parent | 640e2cd6d4335bd1ec39d284cc913c3b90d608f0 (diff) | |
global_data: Ensure we have <config.h> when symbols are not in Kconfig yet
All symbols that are defined in Kconfig will always be defined (or not)
prior to preprocessing due to the -include directive while building.
However, symbols which are not yet migrated will only be defined (or
not) once the board config.h is included, via <config.h>. While the end
goal must be to migrate all symbols, today we have cases where the size
of gd will get mismatched within the build, based on include order.
Mitigate this by making sure that any <asm/global_data.h> that uses
symbols not in Kconfig does start with <config.h>. Remove this when not
needed.
Cc: Alexey Brodkin <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: Huan Wang <[email protected]>
Cc: Angelo Dureghello <[email protected]>
Cc: Rick Chen <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'arch/arc/include')
| -rw-r--r-- | arch/arc/include/asm/global_data.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arc/include/asm/global_data.h b/arch/arc/include/asm/global_data.h index 8f9c83d3c28..e35a26f1eb1 100644 --- a/arch/arc/include/asm/global_data.h +++ b/arch/arc/include/asm/global_data.h @@ -6,8 +6,6 @@ #ifndef __ASM_ARC_GLOBAL_DATA_H #define __ASM_ARC_GLOBAL_DATA_H -#include <config.h> - #ifndef __ASSEMBLY__ /* Architecture-specific global data */ struct arch_global_data { |
