Skip to content

Commit 04d50eb

Browse files
ardbiesheuvelpelwell
authored andcommitted
ARM: p2v: drop redundant 'type' argument from __pv_stub
commit 0869f3b upstream. We always pass the same value for 'type' so pull it into the __pv_stub macro itself. Acked-by: Nicolas Pitre <nico@fluxnic.net> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
1 parent ad979ed commit 04d50eb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/arm/include/asm/memory.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ extern const void *__pv_table_begin, *__pv_table_end;
188188
#define PHYS_OFFSET ((phys_addr_t)__pv_phys_pfn_offset << PAGE_SHIFT)
189189
#define PHYS_PFN_OFFSET (__pv_phys_pfn_offset)
190190

191-
#define __pv_stub(from,to,instr,type) \
191+
#define __pv_stub(from,to,instr) \
192192
__asm__("@ __pv_stub\n" \
193193
"1: " instr " %0, %1, %2\n" \
194194
" .pushsection .pv_table,\"a\"\n" \
195195
" .long 1b\n" \
196196
" .popsection\n" \
197197
: "=r" (to) \
198-
: "r" (from), "I" (type))
198+
: "r" (from), "I" (__PV_BITS_31_24))
199199

200200
#define __pv_stub_mov_hi(t) \
201201
__asm__ volatile("@ __pv_stub_mov\n" \
@@ -222,7 +222,7 @@ static inline phys_addr_t __virt_to_phys_nodebug(unsigned long x)
222222
phys_addr_t t;
223223

224224
if (sizeof(phys_addr_t) == 4) {
225-
__pv_stub(x, t, "add", __PV_BITS_31_24);
225+
__pv_stub(x, t, "add");
226226
} else {
227227
__pv_stub_mov_hi(t);
228228
__pv_add_carry_stub(x, t);
@@ -240,7 +240,7 @@ static inline unsigned long __phys_to_virt(phys_addr_t x)
240240
* assembler expression receives 32 bit argument
241241
* in place where 'r' 32 bit operand is expected.
242242
*/
243-
__pv_stub((unsigned long) x, t, "sub", __PV_BITS_31_24);
243+
__pv_stub((unsigned long) x, t, "sub");
244244
return t;
245245
}
246246

0 commit comments

Comments
 (0)