diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-07-02 17:25:06 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-07-14 20:28:08 +0200 |
commit | e4f2c9e565b492ac4e008c3f72795e9f7e821662 (patch) | |
tree | 797a29bee9b91e183a301bbafe2263826beab61f /arch/sandbox/include/asm/types.h | |
parent | 96f20140348c76cfba7f32191bc700c9b5c607f2 (diff) | |
download | barebox-e4f2c9e565b492ac4e008c3f72795e9f7e821662.tar.gz barebox-e4f2c9e565b492ac4e008c3f72795e9f7e821662.tar.xz |
sandbox: specify sizeof(dma_addr_t) == sizeof(phys_addr_t) == 8 on 64BIT
sizeof(dma_addr_t) == 8 shouldn't introduce any functional change, because
we can't have DMA on sandbox. For now it suppresses benign warnings about
mismatched pointer and integer sizes when some headers are included.
sizeof(phys_addr_t) == 8 was already the case on systems with
__x86_64__. As CONFIG_64BIT now is set according to the bitness
of the compiler, we can migrate this fully to Kconfig.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/include/asm/types.h')
-rw-r--r-- | arch/sandbox/include/asm/types.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/sandbox/include/asm/types.h b/arch/sandbox/include/asm/types.h index 3e4a8f7ba3..28046670f4 100644 --- a/arch/sandbox/include/asm/types.h +++ b/arch/sandbox/include/asm/types.h @@ -10,12 +10,6 @@ */ #define INTERNAL_SIZE_T unsigned long -/* - * This is a Kconfig variable in the Kernel, but we want to detect - * this during compile time, so we set it here. - */ -#define CONFIG_PHYS_ADDR_T_64BIT - #endif #endif |