lkml.org 
[lkml]   [2021]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH v3 2/5] kvm/x86: Include asm/pvclock.h in asm/kvmclock.h
    Date
    Include asm/pvclock.h in asm/kvmclock.h to make
    struct pvclock_vsyscall_time_info visible since kvmclock.h defines
    this_cpu_pvti() that needs a definition of the struct.

    Signed-off-by: Hikaru Nishida <hikalium@chromium.org>
    ---

    Changes in v3:
    - Added this patch.

    arch/x86/include/asm/kvmclock.h | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/arch/x86/include/asm/kvmclock.h b/arch/x86/include/asm/kvmclock.h
    index 6c5765192102..9add14edc24d 100644
    --- a/arch/x86/include/asm/kvmclock.h
    +++ b/arch/x86/include/asm/kvmclock.h
    @@ -4,6 +4,8 @@

    #include <linux/percpu.h>

    +#include <asm/pvclock.h>
    +
    extern struct clocksource kvm_clock;

    DECLARE_PER_CPU(struct pvclock_vsyscall_time_info *, hv_clock_per_cpu);
    --
    2.33.0.1079.g6e70778dc9-goog
    \
     
     \ /
      Last update: 2021-10-20 14:05    [W:4.152 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site