Commit c46f4774 authored by David S. Miller's avatar David S. Miller

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent 2d8f6131
...@@ -234,7 +234,7 @@ static inline pte_t pfn_pte(unsigned long pfn, pgprot_t prot) ...@@ -234,7 +234,7 @@ static inline pte_t pfn_pte(unsigned long pfn, pgprot_t prot)
sz_bits = 0UL; sz_bits = 0UL;
if (_PAGE_SZBITS_4U != 0UL || _PAGE_SZBITS_4V != 0UL) { if (_PAGE_SZBITS_4U != 0UL || _PAGE_SZBITS_4V != 0UL) {
__asm__ __volatile__( __asm__ __volatile__(
"\n661: sethi %uhi(%1), %0\n" "\n661: sethi %%uhi(%1), %0\n"
" sllx %0, 32, %0\n" " sllx %0, 32, %0\n"
" .section .sun4v_2insn_patch, \"ax\"\n" " .section .sun4v_2insn_patch, \"ax\"\n"
" .word 661b\n" " .word 661b\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment