Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754524Ab0BBF6p (ORCPT ); Tue, 2 Feb 2010 00:58:45 -0500 Received: from mail-fx0-f215.google.com ([209.85.220.215]:37694 "EHLO mail-fx0-f215.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753353Ab0BBF6n (ORCPT ); Tue, 2 Feb 2010 00:58:43 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; b=nvZExYCsJ7wvIqQMRFUoVbmjMVApH4fo9QEajJwWfumjwlWLZFwbFLnrXVWC4q/6Df u81a7zDW/z1rGO2rtcLQEj8g2drEMEGtBuGLg5wEAt7JOQ/TWvY+YrP6GMtxuaWNAoXu acuBejBiqgCVbRpnDECa5L2TfEx0fsZHrZfoA= Subject: Re: [PATCH] mtdchar.c: fix different address space noise From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: H Hartley Sweeten Cc: Linux Kernel , linux-mtd@lists.infradead.org, dwmw2@infradead.org In-Reply-To: <201001151125.39100.hartleys@visionengravers.com> References: <201001151125.39100.hartleys@visionengravers.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 02 Feb 2010 07:58:39 +0200 Message-Id: <1265090319.2517.14.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1049 Lines: 29 On Fri, 2010-01-15 at 11:25 -0700, H Hartley Sweeten wrote: > mtdchar.c: fix different address space noise > > In mtd_ioctl MEMGETREGIONINFO the region_user_info pointer ur > is cast in __kernel space. This produces a number of sparse warnings > like: > > warning: cast removes address space of expression > warning: incorrect type in initializer (different address spaces) > expected unsigned int const [noderef] *register __p > got unsigned int * > > Since argp is already a void __user * just use it dirrectly without > the cast and make ur a __user *. > > Signed-off-by: H Hartley Sweeten > Cc: David Woodhouse Pushed this one to my l2-mtd-2.6 / master -- Best Regards, Artem Bityutskiy (Артём Битюцкий) -- 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/