From: Arnd Bergmann <arnd@arndb.de>
To: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 01/10] cpm2: Infrastructure code cleanup.
Date: Sat, 8 Sep 2007 16:48:53 +0200 [thread overview]
Message-ID: <200709081648.54960.arnd@arndb.de> (raw)
In-Reply-To: <20070905192841.GA32441@ld0162-tx32.am.freescale.net>
On Wednesday 05 September 2007, Scott Wood wrote:
>=20
> =A0void *cpm_dpram_addr(unsigned long offset)
> =A0{
> -=A0=A0=A0=A0=A0=A0=A0return (void *)(im_dprambase + offset);
> +=A0=A0=A0=A0=A0=A0=A0return (void __force *)(im_dprambase + offset);
> =A0}
> =A0EXPORT_SYMBOL(cpm_dpram_addr);
This does not look like a legitimate use of __force. I think it's better
to leave the warning in place for cases like this, so that someone else
can clean up the remaining users of this.
In this particular case, it seems that the function should either
be removed or changed to return an __iomem pointer so you get the
warning in the mac-fcc driver using it.
The rest of your patch looks great.
Arnd <><
next prev parent reply other threads:[~2007-09-08 14:53 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-05 19:28 [PATCH 01/10] cpm2: Infrastructure code cleanup Scott Wood
2007-09-05 19:29 ` [PATCH 02/10] cpm2: Fix off-by-one error in setbrg() Scott Wood
2007-09-10 19:46 ` Kumar Gala
2007-09-10 19:44 ` Scott Wood
2007-09-10 21:07 ` Kumar Gala
2007-09-10 21:07 ` Scott Wood
2007-09-05 19:29 ` [PATCH 03/10] cpm2: Add SCCs to cpm2_clk_setup(), and cpm2_smc_clk_setup() Scott Wood
2007-09-05 19:29 ` [PATCH 04/10] cpm2: Add cpm2_set_pin() Scott Wood
2007-09-05 19:29 ` [PATCH 05/10] mpc82xx: Define CPU_FTR_NEED_COHERENT Scott Wood
2007-09-05 19:29 ` [PATCH 06/10] mpc82xx: Remove a bunch of cruft that duplicates generic functionality Scott Wood
2007-09-05 19:29 ` [PATCH 07/10] mpc82xx: Rename mpc82xx_ads to mpc8272_ads Scott Wood
2007-09-05 19:29 ` [PATCH 08/10] mpc8272ads: Change references from 82xx_ADS to 8272_ADS Scott Wood
2007-09-05 19:29 ` [PATCH 09/10] mpc82xx: Update mpc8272ads, and factor out PCI and reset Scott Wood
2007-09-05 19:29 ` [PATCH 10/10] mpc82xx: Add pq2fads board support Scott Wood
2007-09-13 6:39 ` Kumar Gala
2007-09-13 16:05 ` Scott Wood
2007-09-13 21:15 ` Kumar Gala
2007-09-13 21:20 ` Scott Wood
2007-09-08 14:48 ` Arnd Bergmann [this message]
2007-09-08 16:01 ` [PATCH 01/10] cpm2: Infrastructure code cleanup Scott Wood
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=200709081648.54960.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linuxppc-dev@ozlabs.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.