Title: [5823] trunk/arch/blackfin/include/asm/uaccess.h: add __must_check markings to our user functions like other arches
Revision
5823
Author
vapier
Date
2008-12-04 23:57:24 -0600 (Thu, 04 Dec 2008)

Log Message

add __must_check markings to our user functions like other arches

Modified Paths


Diff

Modified: trunk/arch/blackfin/include/asm/uaccess.h (5822 => 5823)


--- trunk/arch/blackfin/include/asm/uaccess.h	2008-12-05 05:53:47 UTC (rev 5822)
+++ trunk/arch/blackfin/include/asm/uaccess.h	2008-12-05 05:57:24 UTC (rev 5823)
@@ -197,8 +197,8 @@
 #define copy_from_user_ret(to,from,n,retval) ({ if (copy_from_user(to,from,n))\
                                                    return retval; })
 
-static inline long copy_from_user(void *to,
-				  const void __user * from, unsigned long n)
+static inline unsigned long __must_check
+copy_from_user(void *to, const void __user *from, unsigned long n)
 {
 	if (access_ok(VERIFY_READ, from, n))
 		memcpy(to, from, n);
@@ -207,8 +207,8 @@
 	return 0;
 }
 
-static inline long copy_to_user(void *to,
-				const void __user * from, unsigned long n)
+static inline unsigned long __must_check
+copy_to_user(void *to, const void __user *from, unsigned long n)
 {
 	if (access_ok(VERIFY_WRITE, to, n))
 		memcpy(to, from, n);
@@ -221,8 +221,8 @@
  * Copy a null terminated string from userspace.
  */
 
-static inline long strncpy_from_user(char *dst,
-                                     const char *src, long count)
+static inline long __must_check
+strncpy_from_user(char *dst, const char *src, long count)
 {
 	char *tmp;
 	if (!access_ok(VERIFY_READ, src, 1))
@@ -248,7 +248,8 @@
  * Zero Userspace
  */
 
-static inline unsigned long __clear_user(void *to, unsigned long n)
+static inline unsigned long __must_check
+__clear_user(void *to, unsigned long n)
 {
 	memset(to, 0, n);
 	return 0;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to