x86: Correct noinstr qualifiers
authorIra Weiny <ira.weiny@intel.com>
Thu, 23 Jul 2020 16:14:05 +0000 (09:14 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 24 Jul 2020 07:54:15 +0000 (09:54 +0200)
The noinstr qualifier is to be specified before the return type in the
same way inline is used.

These 2 cases were missed by previous patches.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20200723161405.852613-1-ira.weiny@intel.com
arch/x86/kernel/alternative.c
arch/x86/kernel/cpu/mce/core.c

index 8fd39ff74a499b7a89014cde08c7ebfb51b14738..069e77c0a36056c1c48aefbbc26d2b3b37e9c5a6 100644 (file)
@@ -1044,7 +1044,7 @@ static __always_inline int patch_cmp(const void *key, const void *elt)
        return 0;
 }
 
-int noinstr poke_int3_handler(struct pt_regs *regs)
+noinstr int poke_int3_handler(struct pt_regs *regs)
 {
        struct bp_patching_desc *desc;
        struct text_poke_loc *tp;
index 14e4b4d17ee5bcbe909f47c5db3c550e9c07c08b..6d7aa5642688111ea513332a365b68bcd161d564 100644 (file)
@@ -1212,7 +1212,7 @@ static void kill_me_maybe(struct callback_head *cb)
  * backing the user stack, tracing that reads the user stack will cause
  * potentially infinite recursion.
  */
-void noinstr do_machine_check(struct pt_regs *regs)
+noinstr void do_machine_check(struct pt_regs *regs)
 {
        DECLARE_BITMAP(valid_banks, MAX_NR_BANKS);
        DECLARE_BITMAP(toclear, MAX_NR_BANKS);