Skip to content

Commit

Permalink
m68k: Convert access_ok() to an inline function
Browse files Browse the repository at this point in the history
Convert access_ok() from a macro to an inline function, so the compiler no
longer complains about unused variables:

    fs/read_write.c: In function 'rw_copy_check_uvector':
    fs/read_write.c:556: warning: unused variable 'buf'

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed May 18, 2008
1 parent 29e92f4 commit 70f9cac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/asm-m68k/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
#define VERIFY_WRITE 1

/* We let the MMU do all checking */
#define access_ok(type,addr,size) 1
static inline int access_ok(int type, const void __user *addr,
unsigned long size)
{
return 1;
}

/*
* The exception table consists of pairs of addresses: the first is the
Expand Down

0 comments on commit 70f9cac

Please sign in to comment.