mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
* Fix sparse warning from TDX use of movdir64b()
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEV76QKkVc4xCGURexaDWVMHDJkrAFAmXvQXoACgkQaDWVMHDJ krCm4g//cNrAJWz53340D/GkHjOi3TKRBm7BSOJU0NT+E/gBpeQtWxDHbY9DwVP0 Wd/NqXeO1F4ZBQSmNa2RrLj2K0w2Oe5amiSFgJmChhTadaRnnxLIqUpl5j2FFoNv wV+vWxftDzQhWbAQdlsmyaOIoX6QpbLYimmoMnvgKjqHldBy1ur0HNZEraBgnFaI oO3lNpDZQo/WRsyvRm+fHrZ0LWJbQULby3ILPb6z6Pnx/OESvv/kFqi87rT54+um VJ58zikIpAwSFGb5B1fUgwVnU7qG5z5Be+WF3TunuGAerihmkAIPNcJjcNMyO80r eaLuQrH6kFKWcp3qSMcDMP2JbaMnfs3Yyz1ytDO4egS5DjMZczXhaoth5QTPLNhF bkPvzfEY5LP/QgGB6o9vVXEnwv2zwYuk2XUeJLcIXQZ57Izg89Y+PgjiFLvvwIQE vWGfsgZeVi/b5P5OwQGWn+1slm2peHVeg8Rh91Rwbb6PtZcOFv4cBb+Wwj0APTnr wPuYRaMVrRSRw1U00frZwiiEk5Tm+f8DgntNH8IuJLVV2uRJMY3iWmEBrxXniasS boKo3InAGoJ0Pu52lYS7XzG5XIuIF87CW0WmHlpghBTTgjoKJnuaXkFbGShvE0RK 5zuR4+2978K/0ou8IXYwGohuTWGIXZ8zm82QoGlDATtR3t4HE50= =y5RP -----END PGP SIGNATURE----- Merge tag 'x86_tdx_for_6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 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
This commit is contained in:
commit
855684c7d9
2 changed files with 8 additions and 3 deletions
|
|
@ -379,7 +379,7 @@ static inline void iosubmit_cmds512(void __iomem *dst, const void *src,
|
|||
const u8 *end = from + count * 64;
|
||||
|
||||
while (from < end) {
|
||||
movdir64b(dst, from);
|
||||
movdir64b_io(dst, from);
|
||||
from += 64;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
@ -245,6 +245,11 @@ static inline void movdir64b(void __iomem *dst, const void *src)
|
|||
: "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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue