Re: [PATCH] microblaze: correct PVR access macros

From: Michal Simek
Date: Mon Jan 03 2011 - 05:13:29 EST


roel kluin wrote:
A definition like:

#define PVR_IS_FULL(pvr) (pvr.pvr[0] & PVR0_PVR_FULL_MASK)

called with PVR_IS_FULL(foo) will be preprocessed to:

(foo.foo[0] & PVR0_PVR_FULL_MASK)
^^^
So to fix this and ensure the preprocessor compiles calls correctly:

Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>
---
arch/microblaze/include/asm/pvr.h | 160 ++++++++++++++++++------------------
1 files changed, 80 insertions(+), 80 deletions(-)

This was not compile tested.

Applied,

Thanks,
Michal

--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/