Re: compile error in 2.6.18-rc4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: David Miller <davem@xxxxxxxxxxxxx>
Date: Mon, 21 Aug 2006 12:22:30 -0700 (PDT)

> It's the "%uhi", it should be "%%uhi" since we want a real "%" there
> and not an argument expansion.

Meelis, give this patch a spin.

commit 45f3ec4f9d5415d99bd777776c431bce0e1ef383
Author: David S. Miller <davem@xxxxxxxxxxxxxxxxxxxx>
Date:   Mon Aug 21 15:27:16 2006 -0700

    [SPARC64]: Fix pfn_pte() build failure.
    
    The "%uhi" needs to be "%%uhi" because we want a real
    "%" character in the assembler here, instead of an
    assembler variable expansion.
    
    Aparently older GCCs were more liberal and interpreted
    this %-letter as a literal "%" for whatever reason.
    
    Based upon a build failure report from Meelis Roos.
    
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>

diff --git a/include/asm-sparc64/pgtable.h b/include/asm-sparc64/pgtable.h
index 1ba19eb..ebfe395 100644
--- a/include/asm-sparc64/pgtable.h
+++ b/include/asm-sparc64/pgtable.h
@@ -234,7 +234,7 @@ static inline pte_t pfn_pte(unsigned lon
 	sz_bits = 0UL;
 	if (_PAGE_SZBITS_4U != 0UL || _PAGE_SZBITS_4V != 0UL) {
 		__asm__ __volatile__(
-		"\n661:	sethi		%uhi(%1), %0\n"
+		"\n661:	sethi		%%uhi(%1), %0\n"
 		"	sllx		%0, 32, %0\n"
 		"	.section	.sun4v_2insn_patch, \"ax\"\n"
 		"	.word		661b\n"
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux