Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755096Ab3FMFZU (ORCPT ); Thu, 13 Jun 2013 01:25:20 -0400 Received: from mail-oa0-f52.google.com ([209.85.219.52]:37382 "EHLO mail-oa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753667Ab3FMFZS (ORCPT ); Thu, 13 Jun 2013 01:25:18 -0400 MIME-Version: 1.0 In-Reply-To: <1371072668-19027-1-git-send-email-mkl@pengutronix.de> References: <1371072668-19027-1-git-send-email-mkl@pengutronix.de> Date: Thu, 13 Jun 2013 10:55:17 +0530 Message-ID: Subject: Re: [RFC: PATCH] err.h: silence warning when using IS_ERR on void __iomem * From: Sachin Kamat To: Marc Kleine-Budde Cc: Andrew Morton , linux-kernel@vger.kernel.org, kernel@pengutronix.de, Thierry Reding Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 991 Lines: 20 On 13 June 2013 03:01, Marc Kleine-Budde wrote: > Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()") > introduced devm_ioremap_resource() and encourage to check its return value with > IS_ERR(). This however leads to the following sparse warnings, as > devm_ioremap_resource() returns a void __iomem pointer: > > drivers/net/can/c_can/c_can_platform.c:205:32: warning: incorrect type in argument 1 (different address spaces) > drivers/net/can/c_can/c_can_platform.c:205:32: expected void const *ptr > drivers/net/can/c_can/c_can_platform.c:205:32: got unsigned int [noderef] [usertype] *raminit_ctrlreg CC ing Thierry who has solved this issue some time back. -- With warm regards, Sachin -- 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/