]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: ixp4xx: use normal prototype for {read,write}s{b,w,l}
authorArnd Bergmann <arnd@arndb.de>
Fri, 15 Jan 2016 12:32:43 +0000 (13:32 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 27 Jul 2017 20:57:42 +0000 (22:57 +0200)
commit33864727d97b8bff65ae8e460e51035a7466b18e
tree9accfa6b2f98d0c85802254288c3351eb2cc5f08
parente099c26b2b6d0362d42304cf4a7d69a8b260ef3f
ARM: ixp4xx: use normal prototype for {read,write}s{b,w,l}

ixp4xx defines the arguments to its __indirect_writesb() and other
functions as pointers to fixed-size data. This is not necessarily
wrong, and it works most of the time, but it causes warnings in
at least one driver:

drivers/net/ethernet/smsc/smc91x.c: In function 'smc_rcv':
drivers/net/ethernet/smsc/smc91x.c:495:21: error: passing argument 2 of '__indirect_readsw' from incompatible pointer type [-Werror=incompatible-pointer-types]
   SMC_PULL_DATA(lp, data, packet_len - 4);

All other definitions of the same functions pass void pointers,
so doing the same here avoids the warnings.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Krzysztof Halasa <khalasa@piap.pl>
arch/arm/mach-ixp4xx/include/mach/io.h