From: Deepak Chitriki <deepak.chitriki@ti.com>
To: linux-omap <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] DSPBRIDGE:Fix sparse warnings
Date: Tue, 30 Mar 2010 11:40:30 -0500 [thread overview]
Message-ID: <4BB2297E.7090802@ti.com> (raw)
In-Reply-To: <1269646243-9236-1-git-send-email-deepak.chitriki@ti.com>
Please ignore this patch.
Regards,
Deepak
Chitriki Rudramuni, Deepak wrote:
> This patch fixes sparse warning "cast removes address space of expression"
> in drivers/dsp/bridge/wmd/tiomap_io.c
>
> Signed-off-by: Deepak Chitriki <deepak.chitriki@ti.com>
> ---
> drivers/dsp/bridge/wmd/tiomap_io.c | 10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/dsp/bridge/wmd/tiomap_io.c b/drivers/dsp/bridge/wmd/tiomap_io.c
> index b5504a9..cc20f65 100644
> --- a/drivers/dsp/bridge/wmd/tiomap_io.c
> +++ b/drivers/dsp/bridge/wmd/tiomap_io.c
> @@ -431,22 +431,22 @@ dsp_status sm_interrupt_dsp(struct wmd_dev_context *dev_context, u16 mb_val)
> * 2:0 AUTO_IVA2_DPLL - Enabling IVA2 DPLL auto control
> * in CM_AUTOIDLE_PLL_IVA2 register
> */
> - *(reg_uword32 *) (resources.dw_cm_base + 0x34) = 0x1;
> + *(reg_uword32 *) ((u32)(resources.dw_cm_base) + 0x34) = 0x1;
>
> /*
> * 7:4 IVA2_DPLL_FREQSEL - IVA2 internal frq set to
> * 0.75 MHz - 1.0 MHz
> * 2:0 EN_IVA2_DPLL - Enable IVA2 DPLL in lock mode
> */
> - temp = *(reg_uword32 *) (resources.dw_cm_base + 0x4);
> + temp = *(reg_uword32 *) ((u32)(resources.dw_cm_base) + 0x4);
> temp = (temp & 0xFFFFFF08) | 0x37;
> - *(reg_uword32 *) (resources.dw_cm_base + 0x4) = temp;
> + *(reg_uword32 *) ((u32)(resources.dw_cm_base) + 0x4) = temp;
>
> /* Restore mailbox settings */
> omap_mbox_restore_ctx(dev_context->mbox);
>
> /* Access MMU SYS CONFIG register to generate a short wakeup */
> - temp = *(reg_uword32 *) (resources.dw_dmmu_base + 0x10);
> + temp = *(reg_uword32 *) ((u32)(resources.dw_dmmu_base) + 0x10);
>
> dev_context->dw_brd_state = BRD_RUNNING;
> } else if (dev_context->dw_brd_state == BRD_RETENTION) {
> @@ -462,4 +462,4 @@ dsp_status sm_interrupt_dsp(struct wmd_dev_context *dev_context, u16 mb_val)
> }
>
> return DSP_SOK;
> -}
> \ No newline at end of file
> +}
>
prev parent reply other threads:[~2010-03-30 16:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 23:30 [PATCH] DSPBRIDGE:Fix sparse warnings Deepak Chitriki
2010-03-30 16:40 ` Deepak Chitriki [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=4BB2297E.7090802@ti.com \
--to=deepak.chitriki@ti.com \
--cc=linux-omap@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.