x86/paravirt: Rename paravirt_patch_site::instrtype to paravirt_patch_site::type
authorIngo Molnar <mingo@kernel.org>
Thu, 25 Apr 2019 11:17:01 +0000 (13:17 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Apr 2019 14:05:54 +0000 (16:05 +0200)
It's used as 'type' in almost every paravirt patching function, so standardize
the field name from the somewhat weird 'instrtype' name to 'type'.

Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/paravirt_types.h
arch/x86/kernel/alternative.c

index 94b7281e7815b326e30ea1e651bc3e27a9471d13..946f8f1f1efc54edf59112e7231a8ba498ab69a5 100644 (file)
@@ -672,8 +672,8 @@ u64 _paravirt_ident_64(u64);
 
 /* These all sit in the .parainstructions section to tell us what to patch. */
 struct paravirt_patch_site {
-       u8 *instr;              /* original instructions */
-       u8 instrtype;           /* type of this instruction */
+       u8 *instr;              /* original instructions */
+       u8 type;                /* type of this instruction */
        u8 len;                 /* length of original instruction */
 };
 
index 92eafd1d3493cff2027023a84035dc9727cae465..7ea5a3764fccf50f49e8b71cfe0399a06c9f3c69 100644 (file)
@@ -599,8 +599,7 @@ void __init_or_module apply_paravirt(struct paravirt_patch_site *start,
                BUG_ON(p->len > MAX_PATCH_LEN);
                /* prep the buffer with the original instructions */
                memcpy(insn_buff, p->instr, p->len);
-               used = pv_ops.init.patch(p->instrtype, insn_buff,
-                                        (unsigned long)p->instr, p->len);
+               used = pv_ops.init.patch(p->type, insn_buff, (unsigned long)p->instr, p->len);
 
                BUG_ON(used > p->len);