Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: fix up an off-by-1 in the number of early ioremap fixmaps.

There was an off-by-1 in the begin/end of the ioremap fixmaps, leaving us
with a spurious entry. In practice this wasn't a problem since we aligned
on a PMD boundary anyways, but this makes it consistent with the
intention and the other fixmaps.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

+2 -2
+2 -2
arch/sh/include/asm/fixmap.h
··· 58 58 59 59 #ifdef CONFIG_HIGHMEM 60 60 FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */ 61 - FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1, 61 + FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1, 62 62 #endif 63 63 64 64 #ifdef CONFIG_IOREMAP_FIXED ··· 69 69 */ 70 70 #define FIX_N_IOREMAPS 32 71 71 FIX_IOREMAP_BEGIN, 72 - FIX_IOREMAP_END = FIX_IOREMAP_BEGIN + FIX_N_IOREMAPS, 72 + FIX_IOREMAP_END = FIX_IOREMAP_BEGIN + FIX_N_IOREMAPS - 1, 73 73 #endif 74 74 75 75 __end_of_fixed_addresses