]> Git Repo - J-linux.git/commitdiff
Merge tag 'x86_tdx_for_6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
authorLinus Torvalds <[email protected]>
Tue, 12 Mar 2024 03:20:36 +0000 (20:20 -0700)
committerLinus Torvalds <[email protected]>
Tue, 12 Mar 2024 03:20:36 +0000 (20:20 -0700)
Pull x86 tdx update from Dave Hansen:

 - Fix sparse warning from TDX use of movdir64b()

* tag 'x86_tdx_for_6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/asm: Remove the __iomem annotation of movdir64b()'s dst argument

1  2 
arch/x86/include/asm/special_insns.h

index f13df37c006000fb8a4bedf54976e2975abcb113,09a5461d7243914b656e5001d7802982235f3e46..2e9fc5c400cdc364a306f5d0f3c7dda305070627
@@@ -2,11 -2,11 +2,11 @@@
  #ifndef _ASM_X86_SPECIAL_INSNS_H
  #define _ASM_X86_SPECIAL_INSNS_H
  
 -
  #ifdef __KERNEL__
 -
  #include <asm/nops.h>
  #include <asm/processor-flags.h>
 +
 +#include <linux/errno.h>
  #include <linux/irqflags.h>
  #include <linux/jump_label.h>
  
@@@ -224,10 -224,10 +224,10 @@@ static inline void serialize(void
  }
  
  /* The dst parameter must be 64-bytes aligned */
- static inline void movdir64b(void __iomem *dst, const void *src)
+ static inline void movdir64b(void *dst, const void *src)
  {
        const struct { char _[64]; } *__src = src;
-       struct { char _[64]; } __iomem *__dst = dst;
+       struct { char _[64]; } *__dst = dst;
  
        /*
         * MOVDIR64B %(rdx), rax.
                     :  "m" (*__src), "a" (__dst), "d" (__src));
  }
  
+ static inline void movdir64b_io(void __iomem *dst, const void *src)
+ {
+       movdir64b((void __force *)dst, src);
+ }
  /**
   * enqcmds - Enqueue a command in supervisor (CPL0) mode
   * @dst: destination, in MMIO space (must be 512-bit aligned)
This page took 0.047326 seconds and 4 git commands to generate.