Skip to content

Commit a077e91

Browse files
committed
sh: Conserve fixmap slots when IOREMAP_FIXED=n.
Presently the IOREMAP_FIXED fixmaps are always defined, even if the platform isn't capable of supporting it. Since we already have an ifdef for it, ifdef the entries, too. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 2dc2f8e commit a077e91

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/sh/include/asm/fixmap.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ enum fixed_addresses {
6161
FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1,
6262
#endif
6363

64+
#ifdef CONFIG_IOREMAP_FIXED
6465
/*
6566
* FIX_IOREMAP entries are useful for mapping physical address
6667
* space before ioremap() is useable, e.g. really early in boot
@@ -69,6 +70,7 @@ enum fixed_addresses {
6970
#define FIX_N_IOREMAPS 32
7071
FIX_IOREMAP_BEGIN,
7172
FIX_IOREMAP_END = FIX_IOREMAP_BEGIN + FIX_N_IOREMAPS,
73+
#endif
7274

7375
__end_of_fixed_addresses
7476
};

0 commit comments

Comments
 (0)