summary refs log tree commit diff
path: root/arch/arm/mach-prima2
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-15 13:32:43 +0100
committerArnd Bergmann <arnd@arndb.de>2017-07-27 22:57:42 +0200
commit1f3b4d8fcc28d68bc4b01bec0b886f31c4ea3efb (patch)
tree9accfa6b2f98d0c85802254288c3351eb2cc5f08 /arch/arm/mach-prima2
parent595a9f9a570f0372228f1f0cca95583043e54a4b (diff)
downloadlinux-1f3b4d8fcc28d68bc4b01bec0b886f31c4ea3efb.tar.gz
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>
Diffstat (limited to 'arch/arm/mach-prima2')
0 files changed, 0 insertions, 0 deletions