diff options
| author | Baruch Siach <[email protected]> | 2018-11-11 12:31:01 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2018-11-20 13:08:15 +0100 |
| commit | 5c8fd32b2295f4c502a526243ab253d1fd11c057 (patch) | |
| tree | 657ba4bcc0133f4b4db23fe0898fb54df8a697e6 /include | |
| parent | b26c48639934453fa038b7cb2ddb55d502f4c1de (diff) | |
Use _AC and UL macros from linux/const.h
Drop the _AC and UL macros from common.h. Linux headers is the original
source of this macro, so keep its definition in the same header.
Update existing users of these macros to include const.h directly.
Cc: Daniel Schwierzeck <[email protected]>
Cc: Rick Chen <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Rick Chen <[email protected]>
Signed-off-by: Baruch Siach <[email protected]>
Reviewed-by: Daniel Schwierzeck <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/common.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/common.h b/include/common.h index 8b9f859c07f..3f699438875 100644 --- a/include/common.h +++ b/include/common.h @@ -14,9 +14,6 @@ typedef volatile unsigned long vu_long; typedef volatile unsigned short vu_short; typedef volatile unsigned char vu_char; -/* Allow sharing constants with type modifiers between C and assembly. */ -#define _AC(X, Y) (X##Y) - #include <config.h> #include <errno.h> #include <time.h> @@ -541,16 +538,10 @@ int cpu_release(u32 nr, int argc, char * const argv[]); #else /* __ASSEMBLY__ */ -/* Drop a C type modifier (like in 3UL) for constants used in assembly. */ -#define _AC(X, Y) X - #endif /* __ASSEMBLY__ */ /* Put only stuff here that the assembler can digest */ -/* Declare an unsigned long constant digestable both by C and an assembler. */ -#define UL(x) _AC(x, UL) - #ifdef CONFIG_POST #define CONFIG_HAS_POST #ifndef CONFIG_POST_ALT_LIST |
