spidev warning fix

Git rid of "warning: passing arg 2 of `access_ok' makes pointer from integer
without a cast" reported on SH ... most architectures use macros in that
test, SH uses inlined functions.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by David Brownell and committed by Linus Torvalds 96ddbf50 4a2a4da4

+3 -1
+3 -1
drivers/spi/spidev.c
··· 183 184 if (u_tmp->rx_buf) { 185 k_tmp->rx_buf = buf; 186 - if (!access_ok(VERIFY_WRITE, u_tmp->rx_buf, u_tmp->len)) 187 goto done; 188 } 189 if (u_tmp->tx_buf) {
··· 183 184 if (u_tmp->rx_buf) { 185 k_tmp->rx_buf = buf; 186 + if (!access_ok(VERIFY_WRITE, (u8 __user *) 187 + (ptrdiff_t) u_tmp->rx_buf, 188 + u_tmp->len)) 189 goto done; 190 } 191 if (u_tmp->tx_buf) {