linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: linux

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: linux
From: ralf@linux-mips.org
Date: Thu, 17 Mar 2005 20:36:12 +0000
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
CVSROOT:        /home/cvs
Module name:    linux
Changes by:     ralf@ftp.linux-mips.org 05/03/17 20:36:06

Modified files:
        include/asm-mips: uaccess.h 

Log message:
        Fix sparse warning for __get_user() of a pointer.

diff -urN linux/include/asm-mips/uaccess.h linux/include/asm-mips/uaccess.h
--- linux/include/asm-mips/uaccess.h    2005/03/17 16:31:15     1.43
+++ linux/include/asm-mips/uaccess.h    2005/03/17 20:36:06     1.44
@@ -233,7 +233,7 @@
 
 #define __get_user_nocheck(x,ptr,size)                                 \
 ({                                                                     \
-       __typeof(*(ptr)) __gu_val = 0;                                  \
+       __typeof(*(ptr)) __gu_val =  (__typeof(*(ptr))) 0;              \
        long __gu_err = 0;                                              \
                                                                        \
        might_sleep();                                                  \

<Prev in Thread] Current Thread [Next in Thread>