sh: drop include/asm/sparsemem.h

Move MAX_PHYSMEM_BITS declaration to include/asm/mmu.h and drop now
unneeded include/asm/sparsemem.h

Link: https://lore.kernel.org/20260510135546.13554-11-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Rich Felker <dalias@libc.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
This commit is contained in:
Mike Rapoport (Microsoft) 2026-05-10 16:55:46 +03:00 committed by Andrew Morton
parent c57f8d68a9
commit 2265938842
3 changed files with 2 additions and 13 deletions

View File

@ -2,6 +2,8 @@
#ifndef __MMU_H
#define __MMU_H
#define MAX_PHYSMEM_BITS 32
/*
* Privileged Space Mapping Buffer (PMB) definitions
*/

View File

@ -1,12 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_SPARSEMEM_H
#define __ASM_SH_SPARSEMEM_H
/*
* SECTION_SIZE_BITS 2^N: how big each section will be
* MAX_PHYSMEM_BITS 2^N: how much physical address space we have
*/
#define SECTION_SIZE_BITS 26
#define MAX_PHYSMEM_BITS 32
#endif /* __ASM_SH_SPARSEMEM_H */

View File

@ -41,7 +41,6 @@
#include <asm/smp.h>
#include <asm/mmu_context.h>
#include <asm/processor.h>
#include <asm/sparsemem.h>
#include <asm/platform_early.h>
/*