• Paolo Bonzini's avatar
    KVM: PPC: drop duplicate tracepoint · 478d6686
    Paolo Bonzini authored
    Commit 29577fc0 ("KVM: PPC: HV: Remove generic instruction emulation")
    caused a build failure with allyesconfig:
    
    arch/powerpc/kvm/kvm-pr.o:(__tracepoints+0xa8): multiple definition of `__tracepoint_kvm_ppc_instr'
    arch/powerpc/kvm/kvm.o:(__tracepoints+0x1c0): first defined here
    
    due to a duplicate definition of the tracepoint in trace.h and
    trace_pr.h.  Because the tracepoint is still used by Book3S HV
    code, and because the PR code does include trace.h, just remove
    the duplicate definition from trace_pr.h, and export it from
    kvm.o.
    Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    478d6686
trace_pr.h 6.97 KB