mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 12:04:46 +08:00
9280f72609
These definitions are evidently left over from the days when sparsemem settings were platform specific. This was no longer the case when the platform got merged. There was no warning in the past, but now the asm/sparsemem.h header ends up being included indirectly, causing this warning: In file included from /git/arm-soc/arch/arm/mach-keystone/keystone.c:24: arch/arm/mach-keystone/memory.h:10:9: warning: 'SECTION_SIZE_BITS' macro redefined [-Wmacro-redefined] #define SECTION_SIZE_BITS 34 ^ arch/arm/include/asm/sparsemem.h:23:9: note: previous definition is here #define SECTION_SIZE_BITS 28 ^ Clearly the definitions never had any effect here, so remove them. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20201203231847.1484900-1-arnd@kernel.org' Signed-off-by: Arnd Bergmann <arnd@arndb.de>
19 lines
604 B
C
19 lines
604 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright 2014 Texas Instruments, Inc.
|
|
* Santosh Shilimkar <santosh.shilimkar@ti.com>
|
|
*/
|
|
#ifndef __MEMORY_H
|
|
#define __MEMORY_H
|
|
|
|
#define KEYSTONE_LOW_PHYS_START 0x80000000ULL
|
|
#define KEYSTONE_LOW_PHYS_SIZE 0x80000000ULL /* 2G */
|
|
#define KEYSTONE_LOW_PHYS_END (KEYSTONE_LOW_PHYS_START + \
|
|
KEYSTONE_LOW_PHYS_SIZE - 1)
|
|
|
|
#define KEYSTONE_HIGH_PHYS_START 0x800000000ULL
|
|
#define KEYSTONE_HIGH_PHYS_SIZE 0x400000000ULL /* 16G */
|
|
#define KEYSTONE_HIGH_PHYS_END (KEYSTONE_HIGH_PHYS_START + \
|
|
KEYSTONE_HIGH_PHYS_SIZE - 1)
|
|
#endif /* __MEMORY_H */
|