Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1686471ybk; Thu, 21 May 2020 12:43:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySUL5CO7lFQCmwFBnrT4YWZPu3rSMXjLD0/1avi5tmS7GQLH7pKJkRMrEETCj86DDWy3dv X-Received: by 2002:a17:906:144e:: with SMTP id q14mr5157631ejc.450.1590090222518; Thu, 21 May 2020 12:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590090222; cv=none; d=google.com; s=arc-20160816; b=uGfvWm1+yyqjrWN2XbURfhGEmZ4rkJkWfDLa/o9pIuwd5/1v4sQfDPb536O93r8QIm vHaILzgzK8NitSNRyC17MYvnBX1LPdjg2k+1RYbf+4zno8qwkNFkgrMixLC56UVdrFHL xUHcjJlQMfvQea+AkKrWQDq8p0k7hSvKQMrW5cIj8ZsZuOGvlLomQ+laF5IytDfxLKUb isGBmgem+BWtBoTwzHWzO80kZAkhSk6WdaGX2rjLmCdI0V7Cp/eQsSrF9x1cVMkmHDvP IV3PNqvdJcNzxcweXRYD4StE+LUyJfBmw17aztSkraY7eDmbJ2k4Le1UVBbktJ71YU6O womg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=l1YbVwA4jQ/cTe+HPMcwHEb2Lek6+2qhu9eVi1iGMWI=; b=Rrb/EzJ2AO2zANsnbbQvqMJXnSq7fUsg2l8MF67+UHTwhjnEjiPqP3i/QyG+8NAfvN rWJv3ostnsH3IvP27CSSo439TSOdvIownBS0VVl+QEKMUflHv+TEL9kDnNhrCueTMV7A tpG1sVaA/uLXhUmqeP8WQcMFEsfLHe7IiDCiZ/+VP9k68hR95ICZBkh9opyoWEc+0Y07 WRDpP8+g5EIDWPQ+w34br3iyAWt3Fn+6fitHDnvjSB7kbKMVuCagooqLF/i7r8t7lyn6 zLPwN6CmLi/OoxzQMA+PbAp/yNRdbx296Zpv1zS1Tks1Og6GeU7UnrzN8vhIUXzp4Q3h CK+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DGrKWPYF; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si3221110edk.69.2020.05.21.12.43.17; Thu, 21 May 2020 12:43:42 -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=@kernel.org header.s=default header.b=DGrKWPYF; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729321AbgEUTlS (ORCPT + 99 others); Thu, 21 May 2020 15:41:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:37526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728635AbgEUTlS (ORCPT ); Thu, 21 May 2020 15:41:18 -0400 Received: from localhost (mobile-166-175-190-200.mycingular.net [166.175.190.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 74A8A2065F; Thu, 21 May 2020 19:41:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590090077; bh=V7Rxedh2MenOwI8XK4KoWriB9ieXIxOg9p/fYNUmu6o=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=DGrKWPYF4T61W/bPMJjljuNf8dXTHk0f6MkZK2ldwJgILEIsVJksvKR9Ef0tXf/Mm /v1VApdxpv0cJTjhytbqfnysZVkWTwx8Gte2VacSGA8MWFcyB34b+jg8pX6rCQInJz 56CdXIhZgakIXA9UioojzKLvEfweY5Zp+71czsoo= Date: Thu, 21 May 2020 14:41:15 -0500 From: Bjorn Helgaas To: Wei Liu Cc: linux-pci@vger.kernel.org, Xen Development List , linux-kernel@vger.kernel.org, Juergen Gross , boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, x86@kernel.org, sstabellini@kernel.org, Michael Kelley Subject: Re: [PATCH] x86/xen: drop an unused parameter gsi_override Message-ID: <20200521194115.GA1169412@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200428153640.76476-1-wei.liu@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 28, 2020 at 03:36:40PM +0000, Wei Liu wrote: > All callers within the same file pass in -1 (no override). > > Signed-off-by: Wei Liu Applied to pci/virtualization for v5.8, thanks! I don't see anything else in linux-next that touches this file, but if somebody wants to merge this via another tree, just let me know. > --- > arch/x86/pci/xen.c | 16 ++++++---------- > 1 file changed, 6 insertions(+), 10 deletions(-) > > diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c > index 91220cc25854..e3f1ca316068 100644 > --- a/arch/x86/pci/xen.c > +++ b/arch/x86/pci/xen.c > @@ -60,8 +60,7 @@ static int xen_pcifront_enable_irq(struct pci_dev *dev) > } > > #ifdef CONFIG_ACPI > -static int xen_register_pirq(u32 gsi, int gsi_override, int triggering, > - bool set_pirq) > +static int xen_register_pirq(u32 gsi, int triggering, bool set_pirq) > { > int rc, pirq = -1, irq = -1; > struct physdev_map_pirq map_irq; > @@ -94,9 +93,6 @@ static int xen_register_pirq(u32 gsi, int gsi_override, int triggering, > name = "ioapic-level"; > } > > - if (gsi_override >= 0) > - gsi = gsi_override; > - > irq = xen_bind_pirq_gsi_to_irq(gsi, map_irq.pirq, shareable, name); > if (irq < 0) > goto out; > @@ -112,12 +108,12 @@ static int acpi_register_gsi_xen_hvm(struct device *dev, u32 gsi, > if (!xen_hvm_domain()) > return -1; > > - return xen_register_pirq(gsi, -1 /* no GSI override */, trigger, > + return xen_register_pirq(gsi, trigger, > false /* no mapping of GSI to PIRQ */); > } > > #ifdef CONFIG_XEN_DOM0 > -static int xen_register_gsi(u32 gsi, int gsi_override, int triggering, int polarity) > +static int xen_register_gsi(u32 gsi, int triggering, int polarity) > { > int rc, irq; > struct physdev_setup_gsi setup_gsi; > @@ -128,7 +124,7 @@ static int xen_register_gsi(u32 gsi, int gsi_override, int triggering, int polar > printk(KERN_DEBUG "xen: registering gsi %u triggering %d polarity %d\n", > gsi, triggering, polarity); > > - irq = xen_register_pirq(gsi, gsi_override, triggering, true); > + irq = xen_register_pirq(gsi, triggering, true); > > setup_gsi.gsi = gsi; > setup_gsi.triggering = (triggering == ACPI_EDGE_SENSITIVE ? 0 : 1); > @@ -148,7 +144,7 @@ static int xen_register_gsi(u32 gsi, int gsi_override, int triggering, int polar > static int acpi_register_gsi_xen(struct device *dev, u32 gsi, > int trigger, int polarity) > { > - return xen_register_gsi(gsi, -1 /* no GSI override */, trigger, polarity); > + return xen_register_gsi(gsi, trigger, polarity); > } > #endif > #endif > @@ -491,7 +487,7 @@ int __init pci_xen_initial_domain(void) > if (acpi_get_override_irq(irq, &trigger, &polarity) == -1) > continue; > > - xen_register_pirq(irq, -1 /* no GSI override */, > + xen_register_pirq(irq, > trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE, > true /* Map GSI to PIRQ */); > } > -- > 2.20.1 >