sparc32: avoid build warning at mm/percpu.c:1647
PATCH 1/1 sparc32: avoid build warning at mm/percpu.c:1647
--- arch/sparc/include/asm/pgtable_32.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/sparc/include/asm/pgtable_32.h +2 -2
@@ -456,9 +456,9 @@ extern int io_remap_pfn_range(struct vm_area_struct *vma,#endif /* !(__ASSEMBLY__) */ -#define VMALLOC_START 0xfe600000 +#define VMALLOC_START 0xfe600000UL/* XXX Alter this when I get around to fixing sun4c - Anton */ -#define VMALLOC_END 0xffc00000 +#define VMALLOC_END 0xffc00000UL/* We provide our own get_unmapped_area to cope with VA holes for userland */
Signature · 1 line
1.5.4
Quoted 5 lines · Daniel Hellstrom
Signed-off-by Daniel Hellstrom <[email protected]>--- arch/sparc/include/asm/pgtable_32.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
I guess this is the same warnign that has annoyed me. In general always include the warning that you fix, so we can google for it etc.
Sam
David Miller
maintainerFrom: Daniel Hellstrom <[email protected]>
Date: Wed, 20 Apr 2011 11:57:28 +0200
Quoted 1 line
Signed-off-by Daniel Hellstrom <[email protected]>
I find it amazing that this patch builds, yet with current tools it does.
It seems that some time in the recent past, binutils started accepting constants in assembler that have type tag suffixes such as "UL".
But I know that older binutils do not accept this, and we use VMALLOC_{START,END} in arch/sparc/kernel/entry.S
So please use the mechanism we have in place to handle this problem, include linux/const.h and use the AC() macros as we do in pgtable_64.h for this.
Thanks.
On Thu, 21 Apr 2011 11:03:56 -0700 (PDT), David Miller wrote:
From: Daniel Hellstrom <[email protected]>
Quoted 7 lines
Date: Wed, 20 Apr 2011 11:57:28 +0200
Quoted 1 line
Signed-off-by Daniel Hellstrom <[email protected]>So please use the mechanism we have in place to handle this problem, include
linux/const.hand use theAC()macros as we do inpgtable_64.hfor this.
Had forgotten that, will try to resend it tomorrow... unless Sam is quicker :)
Daniel
Quoted 12 lines · On Thu, 21 Apr 2011 14:50:02 -0400, [email protected] wrote:
On Thu, 21 Apr 2011 11:03:56 -0700 (PDT), David Miller wrote:
From: Daniel Hellstrom <[email protected]>Quoted 7 lines
Date: Wed, 20 Apr 2011 11:57:28 +0200
Quoted 1 line
Signed-off-by Daniel Hellstrom <[email protected]>So please use the mechanism we have in place to handle this problem, include
linux/const.hand use theAC()macros as we do inpgtable_64.hfor this. Had forgotten that, will try to resend it tomorrow...unless Sam is quicker :)
Sam was quicker... I'm getting old... :(