]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: keystone: remove SECTION_SIZE_BITS/MAX_PHYSMEM_BITS
authorArnd Bergmann <arnd@arndb.de>
Thu, 3 Dec 2020 23:18:40 +0000 (00:18 +0100)
committerArnd Bergmann <arnd@arndb.de>
Mon, 7 Dec 2020 14:32:04 +0000 (15:32 +0100)
commitb9f69d364835b3e92fad62d9efb47f6447d976e3
tree90827e8d7af24acda3f501664a1f4002db4cf688
parent1fb6a6564106ea101211b3abf25804f3922f2e27
ARM: keystone: remove SECTION_SIZE_BITS/MAX_PHYSMEM_BITS

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>
arch/arm/mach-keystone/memory.h