diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-03-31 18:23:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 11:59:15 -0400 |
commit | 0b42afd0a3051952924ed373dcda61beb23fcb58 (patch) | |
tree | e9973473c5ec0455047c91ed7591bf0b91ba862a /arch/alpha/include | |
parent | 9fab5619bdd7f84cdd22cc760778f759f9819a33 (diff) |
alpha: fix macros
When this macros isn't called with 'fixup', e.g. with foo this will
incorectly expand to foo->foo.bits.errreg
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha/include')
-rw-r--r-- | arch/alpha/include/asm/uaccess.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/alpha/include/asm/uaccess.h b/arch/alpha/include/asm/uaccess.h index 22de3b434a22..163f3053001c 100644 --- a/arch/alpha/include/asm/uaccess.h +++ b/arch/alpha/include/asm/uaccess.h | |||
@@ -498,13 +498,13 @@ struct exception_table_entry | |||
498 | }; | 498 | }; |
499 | 499 | ||
500 | /* Returns the new pc */ | 500 | /* Returns the new pc */ |
501 | #define fixup_exception(map_reg, fixup, pc) \ | 501 | #define fixup_exception(map_reg, _fixup, pc) \ |
502 | ({ \ | 502 | ({ \ |
503 | if ((fixup)->fixup.bits.valreg != 31) \ | 503 | if ((_fixup)->fixup.bits.valreg != 31) \ |
504 | map_reg((fixup)->fixup.bits.valreg) = 0; \ | 504 | map_reg((_fixup)->fixup.bits.valreg) = 0; \ |
505 | if ((fixup)->fixup.bits.errreg != 31) \ | 505 | if ((_fixup)->fixup.bits.errreg != 31) \ |
506 | map_reg((fixup)->fixup.bits.errreg) = -EFAULT; \ | 506 | map_reg((_fixup)->fixup.bits.errreg) = -EFAULT; \ |
507 | (pc) + (fixup)->fixup.bits.nextinsn; \ | 507 | (pc) + (_fixup)->fixup.bits.nextinsn; \ |
508 | }) | 508 | }) |
509 | 509 | ||
510 | 510 | ||