On Thursday, November 17, 2016 9:38:23 AM CET Fengguang Wu wrote: > > > >Right here. > > > >What compiler version is this? > > Compiler is sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705. > > include/asm-generic/io.h conditionally defines iounmap() to be an > empty inline function, which may explain the warning on sh4. > > General speaking, it's a false warning. The solution could be to teach > the robot to ignore such 'unused variable' warnings in non-x86 archs.
I think we should change the iounmap stub macro into an inline function. Does this only happen on sh or other architectures too? I certainly wouldn't want the warning to be ignored on ARM, or in general on all architectures other than x86. Arnd