Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1239918pxu; Sat, 24 Oct 2020 04:58:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbn0+n6pQjl3hJhzIUttwMqJpUPvOgta5eE7FMRzT040+LkLwZ7sUS2UgFqKwYsvKiiD45 X-Received: by 2002:a17:906:49cf:: with SMTP id w15mr5829957ejv.252.1603540707971; Sat, 24 Oct 2020 04:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603540707; cv=none; d=google.com; s=arc-20160816; b=FcKsV+PeqNIGoi3rscP7fxNY+0YATTwzmsGhAD32VL7dqqlvKMO7W6IBNz5ur1gBaU TO8+26kwTJQQkpQ3w5nAjrj+7Go3+Ygq/mX77My+gOPyDk1j0GHcoakT03D4YDQMeut7 wmQx8jB1BysFEgU0qmLGudjurOWgPpypneGstgLos4Tfb9JdjgXlXpiB4sx46EaK7tW3 tDviEYsnnCycPgfrDS/PMJjK6ejUKeGpefoFK0cidmQpm8NFNr2c4gZkEffj14DPyfZT 0eH4JlOlmfLfrHW/QycHMu9cay4vOpxJ5J15Qi8oksQt+SuepmtISATzDDFQvlzID1iC RnaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MxP14utHMULsl3WXK0dJ6zVnCUZr6qoeodCunclasgs=; b=vDetYxr9C4h3oLBcXPCf+Ln6ySJJjIAQb4SdW5i0G4qaK099ZcWdgWo+Y4WO/KZY5E 0Dhmn65hDBy0fJwLbtgyTPDacHbntsBEpwkRip3L6hggw55xsV8OKyzbjz8kpYA/HVbS nVPeZI0M+9dfPYHbntKgtzqzlX/AZB3R/dHSfaPepc/E1YKFxaswUg/HPoi0LKN0SPjt XrvynrEo72V5VIwXpZwR9SvUph5anIDhoRjIhs06DXLJ8w3CIFRjL2RdEgW3rDM8zSyb zBka65gX7SRZpcs1Y7wF5xjoM4raqjNvlYWm0bVBB3aU64PSMhv42wge5q58L6klR+dt MEjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fNT5fTGO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si2956734edk.224.2020.10.24.04.58.02; Sat, 24 Oct 2020 04:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fNT5fTGO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759994AbgJXINd (ORCPT + 99 others); Sat, 24 Oct 2020 04:13:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:21563 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759988AbgJXIKd (ORCPT ); Sat, 24 Oct 2020 04:10:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603527029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=MxP14utHMULsl3WXK0dJ6zVnCUZr6qoeodCunclasgs=; b=fNT5fTGOhUPuPL2XrMp8Ii2z8qmB+Sic+g/rNl+0w6Sl+TnJufasAP1uG+WwmewsB/KTHj GKDQVSMeelZ3C0YjbEgUvuDwtnlheVgBvBAhhb1sMXHhN7hCSXx9IW4xYzrqAShuu7Tk9v Go1U2aQoETR35koGkHGhuh8MITH1+lU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-485-yLgipaYwOY2OHFz0_xmqIg-1; Sat, 24 Oct 2020 04:10:27 -0400 X-MC-Unique: yLgipaYwOY2OHFz0_xmqIg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D9A95186DD23; Sat, 24 Oct 2020 08:10:25 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5CE025578A; Sat, 24 Oct 2020 08:10:25 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Jens Axboe Subject: [PATCH] KVM: vmx: rename pi_init to avoid conflict with paride Date: Sat, 24 Oct 2020 04:10:24 -0400 Message-Id: <20201024081024.2798990-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org allyesconfig results in: ld: drivers/block/paride/paride.o: in function `pi_init': (.text+0x1340): multiple definition of `pi_init'; arch/x86/kvm/vmx/posted_intr.o:posted_intr.c:(.init.text+0x0): first defined here make: *** [Makefile:1164: vmlinux] Error 1 because commit: commit 8888cdd0996c2d51cd417f9a60a282c034f3fa28 Author: Xiaoyao Li Date: Wed Sep 23 11:31:11 2020 -0700 KVM: VMX: Extract posted interrupt support to separate files added another pi_init(), though one already existed in the paride code. Reported-by: Jens Axboe Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/posted_intr.c | 2 +- arch/x86/kvm/vmx/posted_intr.h | 4 ++-- arch/x86/kvm/vmx/vmx.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/vmx/posted_intr.c b/arch/x86/kvm/vmx/posted_intr.c index e4e7adff818c..f02962dcc72c 100644 --- a/arch/x86/kvm/vmx/posted_intr.c +++ b/arch/x86/kvm/vmx/posted_intr.c @@ -222,7 +222,7 @@ void pi_wakeup_handler(void) spin_unlock(&per_cpu(blocked_vcpu_on_cpu_lock, cpu)); } -void __init pi_init(int cpu) +void __init pi_init_cpu(int cpu) { INIT_LIST_HEAD(&per_cpu(blocked_vcpu_on_cpu, cpu)); spin_lock_init(&per_cpu(blocked_vcpu_on_cpu_lock, cpu)); diff --git a/arch/x86/kvm/vmx/posted_intr.h b/arch/x86/kvm/vmx/posted_intr.h index e53b97f82097..0bdc41391c5b 100644 --- a/arch/x86/kvm/vmx/posted_intr.h +++ b/arch/x86/kvm/vmx/posted_intr.h @@ -91,9 +91,9 @@ void vmx_vcpu_pi_put(struct kvm_vcpu *vcpu); int pi_pre_block(struct kvm_vcpu *vcpu); void pi_post_block(struct kvm_vcpu *vcpu); void pi_wakeup_handler(void); -void __init pi_init(int cpu); +void __init pi_init_cpu(int cpu); bool pi_has_pending_interrupt(struct kvm_vcpu *vcpu); int pi_update_irte(struct kvm *kvm, unsigned int host_irq, uint32_t guest_irq, bool set); -#endif /* __KVM_X86_VMX_POSTED_INTR_H */ \ No newline at end of file +#endif /* __KVM_X86_VMX_POSTED_INTR_H */ diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 755896797a81..281c405c7ea3 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -8004,7 +8004,7 @@ static int __init vmx_init(void) for_each_possible_cpu(cpu) { INIT_LIST_HEAD(&per_cpu(loaded_vmcss_on_cpu, cpu)); - pi_init(cpu); + pi_init_cpu(cpu); } #ifdef CONFIG_KEXEC_CORE -- 2.26.2