h8300/uaccess: add mising __clear_user()
authorGeert Uytterhoeven <[email protected]>
Wed, 11 Jul 2012 21:02:28 +0000 (14:02 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Jul 2012 23:04:46 +0000 (16:04 -0700)
Fix the build error:

  include/linux/regset.h: In function 'user_regset_copyout_zero':
  include/linux/regset.h:289:3: error: implicit declaration of function '__clear_user' [-Werror=implicit-function-declaration]

Signed-off-by: Geert Uytterhoeven <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Tony Breeds <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/h8300/include/asm/uaccess.h

index 534394f4cb0f72049f3707ab13cc8edc2b71722c..8725d1ad427263895a6e5d904c179e2c1440bbe0 100644 (file)
@@ -158,4 +158,6 @@ clear_user(void *to, unsigned long n)
        return 0;
 }
 
+#define __clear_user   clear_user
+
 #endif /* _H8300_UACCESS_H */