* [linux-next:master 5134/5845] arch/sh/include/asm/io.h:274:33: error: expected expression before 'do'
@ 2022-04-22 9:17 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-22 9:17 UTC (permalink / raw)
To: Vincent Whitchurch
Cc: kbuild-all, Linux Memory Management List, Miquel Raynal
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e7d6987e09a328d4a949701db40ef63fbb970670
commit: ec8615bcd6f3a02e983bbafb3a4e4d35cd7e8c47 [5134/5845] mtd: phram: Allow cached mappings
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220422/202204221700.1Sx3Vvzv-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ec8615bcd6f3a02e983bbafb3a4e4d35cd7e8c47
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout ec8615bcd6f3a02e983bbafb3a4e4d35cd7e8c47
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash drivers/mtd/devices/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/io.h:13,
from drivers/mtd/devices/phram.c:21:
drivers/mtd/devices/phram.c: In function 'register_device':
>> arch/sh/include/asm/io.h:274:33: error: expected expression before 'do'
274 | #define iounmap(addr) do { } while (0)
| ^~
drivers/mtd/devices/phram.c:150:44: note: in expansion of macro 'iounmap'
150 | cached ? memunmap(new->mtd.priv) : iounmap(new->mtd.priv);
| ^~~~~~~
drivers/mtd/devices/phram.c: In function 'phram_remove':
>> arch/sh/include/asm/io.h:274:33: error: expected expression before 'do'
274 | #define iounmap(addr) do { } while (0)
| ^~
drivers/mtd/devices/phram.c:372:53: note: in expansion of macro 'iounmap'
372 | phram->cached ? memunmap(phram->mtd.priv) : iounmap(phram->mtd.priv);
| ^~~~~~~
vim +/do +274 arch/sh/include/asm/io.h
d57d64080ddc0f Paul Mundt 2010-01-19 272
13f1fc870dd747 Christoph Hellwig 2020-07-14 273 #else /* CONFIG_MMU */
13f1fc870dd747 Christoph Hellwig 2020-07-14 @274 #define iounmap(addr) do { } while (0)
13f1fc870dd747 Christoph Hellwig 2020-07-14 275 #define ioremap(offset, size) ((void __iomem *)(unsigned long)(offset))
13f1fc870dd747 Christoph Hellwig 2020-07-14 276 #endif /* CONFIG_MMU */
d627a2ebd1a303 Paul Mundt 2010-01-28 277
:::::: The code at line 274 was first introduced by commit
:::::: 13f1fc870dd747131f21ba6f20dc0d81cc5d4474 sh: move the ioremap implementation out of line
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Rich Felker <dalias@libc.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-22 9:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-22 9:17 [linux-next:master 5134/5845] arch/sh/include/asm/io.h:274:33: error: expected expression before 'do' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox