Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3439542imm; Tue, 17 Jul 2018 05:02:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdS/9wPNILoEQiusS6RALkhOWYwzCh1gRzF3JqfHQoupazpFOrbdhZbiKgHDBJf0CKnRRhj X-Received: by 2002:a63:4763:: with SMTP id w35-v6mr1326507pgk.140.1531828934599; Tue, 17 Jul 2018 05:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531828934; cv=none; d=google.com; s=arc-20160816; b=BUxwSQzlB2giwyVYVeoKnMmYreB5i3PMYBonptQs/etrV0pIjrAxYRe+SfEBVFLgrA Oe3BcxTSIrMPRPRwkCztBRu+J1LUrMWDZJoFPLibQuLbFQKAPoywH+zwppY65owffTaL pTsE52h2iQKnyZVQXXyx1V91R+7+9eyK2tpCmyzbTAxaDPltCFnK18l6zv9/knJxur8X It+ne2KR/BUwsYZ0rCxfuBrpsFHV+eLiwuq4tVdaolBlNHfg5sDZ3RRJY0WyfSzy/TG9 LjXlG33XrH49sOi18c3rvDY9n5W1pdDKEy2ssxzMKkmhsxqq2FtTvQVG4B0jZnLCP8Md 3hxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=QTdi7OGV1OSJb6aX6qm6+X/FmbMenLCY/v5RhNLs+h8=; b=BeTTGl7d90XmXK3skM7alREP9m08Ual6ib5tqYoz7pQt/EI0xug9OS++BIpdGOsIgP MWf+qE/+6lJYydZswkv3iPuhPwVUKCwQV+2g8aaC/6Gkt21BnEWAR4DcVdEtPu5DIMxJ ZXQyg80hObh5mO17wGmt1CtAzJZoDKo9r6TFDCXPXKW1deCE980UvXbwSEsyUY98UXmc 2S1FHRtFKHDQ/+1VjhUQGgCzKRKjEWk7u46cSLzDTEI6tU7b0bu/78JYTkcQWWLBqKQ1 ZQgglXzeFbOk8Djk/V8IO1iAhOTTmZ+StB4UmUbsJRnpaPEF1VAsDOgVwxwxrXJE5SCI a6fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18-v6si719989pfl.209.2018.07.17.05.01.59; Tue, 17 Jul 2018 05:02:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731398AbeGQMdm (ORCPT + 99 others); Tue, 17 Jul 2018 08:33:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:45762 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731300AbeGQMdl (ORCPT ); Tue, 17 Jul 2018 08:33:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 5E85CAF6A; Tue, 17 Jul 2018 12:01:21 +0000 (UTC) From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org Cc: boris.ostrovsky@oracle.com, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, Juergen Gross Subject: [PATCH 3/4] xen: link platform-pci-unplug.o only if CONFIG_XEN_PVHVM Date: Tue, 17 Jul 2018 14:01:12 +0200 Message-Id: <20180717120113.12756-4-jgross@suse.com> X-Mailer: git-send-email 2.13.7 In-Reply-To: <20180717120113.12756-1-jgross@suse.com> References: <20180717120113.12756-1-jgross@suse.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of using one large #ifdef CONFIG_XEN_PVHVM in arch/x86/xen/platform-pci-unplug.c add the object file depending on CONFIG_XEN_PVHVM being set. Signed-off-by: Juergen Gross --- arch/x86/xen/Makefile | 2 +- arch/x86/xen/platform-pci-unplug.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/xen/Makefile b/arch/x86/xen/Makefile index a964f307a266..dd2550d33b38 100644 --- a/arch/x86/xen/Makefile +++ b/arch/x86/xen/Makefile @@ -19,11 +19,11 @@ obj-y += mmu.o obj-y += time.o obj-y += grant-table.o obj-y += suspend.o -obj-y += platform-pci-unplug.o obj-$(CONFIG_XEN_PVHVM) += enlighten_hvm.o obj-$(CONFIG_XEN_PVHVM) += mmu_hvm.o obj-$(CONFIG_XEN_PVHVM) += suspend_hvm.o +obj-$(CONFIG_XEN_PVHVM) += platform-pci-unplug.o obj-$(CONFIG_XEN_PV) += setup.o obj-$(CONFIG_XEN_PV) += apic.o diff --git a/arch/x86/xen/platform-pci-unplug.c b/arch/x86/xen/platform-pci-unplug.c index 33a783c77d96..3957946a6cfe 100644 --- a/arch/x86/xen/platform-pci-unplug.c +++ b/arch/x86/xen/platform-pci-unplug.c @@ -30,7 +30,6 @@ #define XEN_PLATFORM_ERR_PROTOCOL -2 #define XEN_PLATFORM_ERR_BLACKLIST -3 -#ifdef CONFIG_XEN_PVHVM /* store the value of xen_emul_unplug after the unplug is done */ static int xen_platform_pci_unplug; static int xen_emul_unplug; @@ -214,4 +213,3 @@ static int __init parse_xen_emul_unplug(char *arg) return 0; } early_param("xen_emul_unplug", parse_xen_emul_unplug); -#endif -- 2.13.7