mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
4a2a4da439
commit
96ddbf504a
1 changed files with 3 additions and 1 deletions
|
@ -183,7 +183,9 @@ static int spidev_message(struct spidev_data *spidev,
|
|||
|
||||
if (u_tmp->rx_buf) {
|
||||
k_tmp->rx_buf = buf;
|
||||
if (!access_ok(VERIFY_WRITE, u_tmp->rx_buf, u_tmp->len))
|
||||
if (!access_ok(VERIFY_WRITE, (u8 __user *)
|
||||
(ptrdiff_t) u_tmp->rx_buf,
|
||||
u_tmp->len))
|
||||
goto done;
|
||||
}
|
||||
if (u_tmp->tx_buf) {
|
||||
|
|
Loading…
Reference in a new issue