Return-Path: Received: from ksp.mff.cuni.cz ([195.113.26.206]:36580 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751759Ab0C0GSC (ORCPT ); Sat, 27 Mar 2010 02:18:02 -0400 Date: Sat, 27 Mar 2010 07:17:49 +0100 From: Pavel Machek Subject: Re: [PATCH 3/7] arm: msm: smd: convert unsigned addr to unsigned long Message-ID: <20100327061749.GH18689@elf.ucw.cz> References: <> <1269647725-4577-3-git-send-email-dwalker@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1269647725-4577-3-git-send-email-dwalker@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org List-ID: To: Daniel Walker Cc: linux-arm-msm@vger.kernel.org On Fri 2010-03-26 16:55:21, Daniel Walker wrote: > "unsigned" translates to "unsigned int", but this value holds an > address. We always want to use unsigned long for addresses since > it will change size to fit the machine. > > This just convert the one address holder to unsigned long. > > Signed-off-by: Daniel Walker ACK. > --- > arch/arm/mach-msm/smd.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-msm/smd.c b/arch/arm/mach-msm/smd.c > index 130b7a7..2e32d9a 100644 > --- a/arch/arm/mach-msm/smd.c > +++ b/arch/arm/mach-msm/smd.c > @@ -872,9 +872,9 @@ static irqreturn_t smsm_irq_handler(int irq, void *data) > int smsm_change_state(enum smsm_state_item item, > uint32_t clear_mask, uint32_t set_mask) > { > + unsigned long addr = smd_info.state + item * 4; > unsigned long flags; > unsigned state; > - unsigned addr = smd_info.state + item * 4; > > if (!smd_info.ready) > return -EIO; -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html