]> git.baikalelectronics.ru Git - kernel.git/commit
caif: include linux/io.h
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Apr 2012 10:56:11 +0000 (10:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 19:28:47 +0000 (15:28 -0400)
commit6b7b43be9becee48b7b31c0a08719cd9ce20e57d
treeb0628ffa8ade84bc0d82efe47536a161c44af697
parentdab5d177d4dfdbbca7709b689be25b61a986bc3b
caif: include linux/io.h

The caif_shmcore requires io.h in order to use ioremap, so include that
explicitly to compile in all configurations.

Also add a note about the use of ioremap(), which is not a proper way
to map a DMA buffer into kernel space. It's not completely clear what
the intention is for using ioremap, but it is clear that the result
of ioremap must not simply be accessed using kernel pointers but
should use readl/writel or memcopy_{to,from}io. Assigning the result
of ioremap to a regular pointer that can also be set to something
else is not ok.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_shmcore.c