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

mtd: physmap_of_gemini: remove extranous __xipram annotation

Marking a local variable as __xipram causes a warning because of the
noinline attribute:

drivers/mtd/maps/physmap-gemini.c:89:11: error: '__noinline__' attribute only applies to functions [-Werror,-Wignored-attributes]
map_word __xipram ret;
^
include/linux/mtd/xip.h:34:18: note: expanded from macro '__xipram'
#define __xipram noinline __attribute__ ((__section__ (".xiptext")))

I can't see any reason for the anotation anyway, so just remove it here.

Fixes: 9d3b5086f6d4 ("mtd: physmap_of_gemini: Handle pin control")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by

Arnd Bergmann and committed by
Richard Weinberger
c58b1ff2 8b522c4b

+1 -1
+1 -1
drivers/mtd/maps/physmap-gemini.c
··· 86 86 static map_word __xipram gemini_flash_map_read(struct map_info *map, 87 87 unsigned long ofs) 88 88 { 89 - map_word __xipram ret; 89 + map_word ret; 90 90 91 91 gemini_flash_enable_pins(); 92 92 ret = inline_map_read(map, ofs);