Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763269AbYBPGYb (ORCPT ); Sat, 16 Feb 2008 01:24:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753434AbYBPGXm (ORCPT ); Sat, 16 Feb 2008 01:23:42 -0500 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.121]:42612 "EHLO cdptpa-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752410AbYBPGXk (ORCPT ); Sat, 16 Feb 2008 01:23:40 -0500 Date: Sat, 16 Feb 2008 01:22:17 -0500 Message-ID: <87wsp5zahy.wl%ysato@users.sourceforge.jp> From: Yoshinori Sato To: Andrew Morton Cc: lkml Subject: Re: [PATCH 2/6] h8300 uaccess.h update In-Reply-To: <87d4qxo2d4.wl%ysato@users.sourceforge.jp> References: <87d4qxo2d4.wl%ysato@users.sourceforge.jp> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.1 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1328 Lines: 43 Signed-off-by: Yoshinori Sato At Sat, 16 Feb 2008 01:13:27 -0500, Yoshinori Sato wrote: > > get_user const *ptr access fix. > > include/asm-h8300/uaccess.h | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/asm-h8300/uaccess.h b/include/asm-h8300/uaccess.h > index ebe58c6..a22350e 100644 > --- a/include/asm-h8300/uaccess.h > +++ b/include/asm-h8300/uaccess.h > @@ -91,7 +91,7 @@ extern int __put_user_bad(void); > #define get_user(x, ptr) \ > ({ \ > int __gu_err = 0; \ > - typeof(*(ptr)) __gu_val = 0; \ > + uint32_t __gu_val = 0; \ > switch (sizeof(*(ptr))) { \ > case 1: \ > case 2: \ > @@ -106,7 +106,7 @@ extern int __put_user_bad(void); > __gu_err = __get_user_bad(); \ > break; \ > } \ > - (x) = __gu_val; \ > + (x) = (typeof(*(ptr)))__gu_val; \ > __gu_err; \ > }) > #define __get_user(x, ptr) get_user(x, ptr) > -- > 1.5.4.1 > > -- > Yoshinori Sato > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/