From: Pavel Machek <pavel@ucw.cz>
To: Daniel Walker <dwalker@codeaurora.org>
Cc: linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH 3/7] arm: msm: smd: convert unsigned addr to unsigned long
Date: Sat, 27 Mar 2010 07:17:49 +0100 [thread overview]
Message-ID: <20100327061749.GH18689@elf.ucw.cz> (raw)
In-Reply-To: <1269647725-4577-3-git-send-email-dwalker@codeaurora.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 <dwalker@codeaurora.org>
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
prev parent reply other threads:[~2010-03-27 6:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 23:55 [PATCH 3/7] arm: msm: smd: convert unsigned addr to unsigned long Daniel Walker
2010-03-27 6:17 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100327061749.GH18689@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=dwalker@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).