[Cbe-oss-dev] arch/powerpc/platforms/cell/pmu.c fix
Geoff Levand
geoffrey.levand at am.sony.com
Tue Mar 18 06:09:36 EST 2008
On 03/17/2008 09:51 AM, Denis Joseph Barrow wrote:
> Hi,
> Just putting a bit of lipstick on no code functionality changes.
>
> Subject: Cell Performance Measurment Unit
> WRITE_WO_MMIO(reg, x) macro etc. is using a cpu in the macro
> never defined in the parameter list, this is bad coding style.
> I used do it myself & other programmers got upset about it so I stopped.
> Signed-off-by: Denis Joseph Barrow <denis.barrow at sonycom.com>
> ---
> arch/powerpc/platforms/cell/pmu.c | 50 +++++++++++++++++++-------------------
> 1 file changed, 25 insertions(+), 25 deletions(-)
>
> --- a/arch/powerpc/platforms/cell/pmu.c
> +++ b/arch/powerpc/platforms/cell/pmu.c
> @@ -40,7 +40,7 @@
> * pmd_regs.
> */
>
> -#define WRITE_WO_MMIO(reg, x) \
> +#define WRITE_WO_MMIO(cpu, reg, x) \
These should be static inline functions as to get proper
scope and type checking.
-Geoff
More information about the cbe-oss-dev
mailing list