diff options
| author | Geoff Levand <geoffrey.levand@am.sony.com> | 2008-04-30 18:24:58 -0400 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2008-05-02 01:00:44 -0400 |
| commit | bbea34606269efedf7d12c608924b47bafb344f5 (patch) | |
| tree | 161e7cc2cd5aa03586603383ce47227532a1a648 | |
| parent | 5be661a28b12aa43cc83ba935ba2b2c273d0da45 (diff) | |
[POWERPC] Fix slb.c compile warnings
Arrange for a syntax check to always be done on the powerpc/mm/slb.c
DBG() macro by defining it to pr_debug() for non-debug builds.
Also, fix these related compile warnings:
slb.c:273: warning: format '%04x' expects type 'unsigned int', but argument 2 has type 'long unsigned int
slb.c:274: warning: format '%04x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
| -rw-r--r-- | arch/powerpc/mm/slb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/mm/slb.c b/arch/powerpc/mm/slb.c index 906daeda59a8..497ec059bc82 100644 --- a/arch/powerpc/mm/slb.c +++ b/arch/powerpc/mm/slb.c | |||
| @@ -30,7 +30,7 @@ | |||
| 30 | #ifdef DEBUG | 30 | #ifdef DEBUG |
| 31 | #define DBG(fmt...) udbg_printf(fmt) | 31 | #define DBG(fmt...) udbg_printf(fmt) |
| 32 | #else | 32 | #else |
| 33 | #define DBG(fmt...) | 33 | #define DBG pr_debug |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
| 36 | extern void slb_allocate_realmode(unsigned long ea); | 36 | extern void slb_allocate_realmode(unsigned long ea); |
| @@ -279,8 +279,8 @@ void slb_initialize(void) | |||
| 279 | patch_slb_encoding(slb_compare_rr_to_size, | 279 | patch_slb_encoding(slb_compare_rr_to_size, |
| 280 | mmu_slb_size); | 280 | mmu_slb_size); |
| 281 | 281 | ||
| 282 | DBG("SLB: linear LLP = %04x\n", linear_llp); | 282 | DBG("SLB: linear LLP = %04lx\n", linear_llp); |
| 283 | DBG("SLB: io LLP = %04x\n", io_llp); | 283 | DBG("SLB: io LLP = %04lx\n", io_llp); |
| 284 | } | 284 | } |
| 285 | 285 | ||
| 286 | get_paca()->stab_rr = SLB_NUM_BOLTED; | 286 | get_paca()->stab_rr = SLB_NUM_BOLTED; |
