Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4524106yba; Wed, 17 Apr 2019 13:23:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyl1KsDamFOgVBeOH4hNgDuTGyI6m4N1zXtnpP2kHLp/uyiVo7yUaTNEEx96CvOFT1iUkGM X-Received: by 2002:aa7:8d9a:: with SMTP id i26mr79513735pfr.220.1555532614431; Wed, 17 Apr 2019 13:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555532614; cv=none; d=google.com; s=arc-20160816; b=GmipJZsgtZ8fpd4Bbw6zZy9wfLZAXI/JprO8h/20wO23ISMhdTvGFZ7ulj7QKAkg5t uqZuXhiqQR5Fvwsgm9LV+bwe5Oomyfvz96UKrpnCG/rnLDsIZgvsRH/cB0fnDKfgY02X lxQMgTGeqO2AheHIYwwt2IYNQvl0zmPB+K750Ve4xNMKukq6CMK5tKVV6K2Mv84m3fnl IM6bOqlWkkYVTbhQHHijfbxs83i7pxnX9tZSCyqaCXbA/2dw0UT0dX34FMtw9N5zNuwP QwfRoIFs9TsmWtBSD0tBtO7Cm8ZzcuiojMt6FSu1qQEGbxA44Zaucor5eQmM95BTtImL UEqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AIYAg4Nuh4P3kdfjahHRrtG4ou+1hFA0Y8xFNubpGvY=; b=SoxlNxtny4g1zl8N+6jwYU02czLsoMMZ1Ik/ox6bhkMLWnNB7TuyYlZFwQr4GO78Nr GLbC5cgp+0DTGFJEpKxNCyLk1RkwfTP2i2f066UZ5oF81WxHEZ90RBokGLN5dwY/Kx8v /Ue6QAB6BR36/eqlC4hLFkqYr8n7klJj7r8td69oy3LE/TvxMILpesV+0B4GOK2y6lRK 0dXR9oRK8pp2N1nGUmd5ww9Pb8D9qweyoQ1ofzOvw96c6SkYvO21n7+wzcGLZxB9hRtH EGrZ9PqRONcKUBcSbO7NwoFASO/TvMiGqT+503ubnUKgb+O7NTMXhrUcYPxDsBJw6Xuj ncIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ToUwRqEq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f59si23641020plf.343.2019.04.17.13.23.18; Wed, 17 Apr 2019 13:23:34 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ToUwRqEq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731848AbfDQUVA (ORCPT + 99 others); Wed, 17 Apr 2019 16:21:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:41634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbfDQUVA (ORCPT ); Wed, 17 Apr 2019 16:21:00 -0400 Received: from localhost (unknown [69.71.4.100]) (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 74139206BA; Wed, 17 Apr 2019 20:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555532459; bh=w6+k7XrFafMXB4J0ZdJ/JTrbU1zGGBV5NLLdrw96rKs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ToUwRqEqRr+ruGXWoCfUtUnHPpdbAJSje06uDGeaoIU5WK7/2oTIkoHeIO3/3uqLu PMSLbzNMg1hAjfPM3nFWXgAoBLeCWhFSfJYXLRETsxnmFuucOqqcZZqqKbhZF7JI1e F6y/v9Uhl3tKlAL/BK9PIhU5d6ETfWG7XfxDH020= Date: Wed, 17 Apr 2019 15:20:58 -0500 From: Bjorn Helgaas To: Johannes Thumshirn Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: Remove pci_request_region_exclusive() Message-ID: <20190417202058.GS126710@google.com> References: <20190417082356.7054-1-jthumshirn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190417082356.7054-1-jthumshirn@suse.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 17, 2019 at 10:23:56AM +0200, Johannes Thumshirn wrote: > pci_request_region_exclusive() was introduced with commit e8de1481fd71 > ("resource: allow MMIO exclusivity for device drivers") in 2.6.29 which > was released 2008. > > It never had an in tree user since then, so after 11 years later let's > remove it. > > Signed-off-by: Johannes Thumshirn Applied to pci/misc for v5.2, thanks a lot! > --- > drivers/pci/pci.c | 25 ------------------------- > include/linux/pci.h | 1 - > 2 files changed, 26 deletions(-) > > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c > index 7c1b362f599a..d185b49e105a 100644 > --- a/drivers/pci/pci.c > +++ b/drivers/pci/pci.c > @@ -3706,31 +3706,6 @@ int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name) > } > EXPORT_SYMBOL(pci_request_region); > > -/** > - * pci_request_region_exclusive - Reserved PCI I/O and memory resource > - * @pdev: PCI device whose resources are to be reserved > - * @bar: BAR to be reserved > - * @res_name: Name to be associated with resource. > - * > - * Mark the PCI region associated with PCI device @pdev BR @bar as > - * being reserved by owner @res_name. Do not access any > - * address inside the PCI regions unless this call returns > - * successfully. > - * > - * Returns 0 on success, or %EBUSY on error. A warning > - * message is also printed on failure. > - * > - * The key difference that _exclusive makes it that userspace is > - * explicitly not allowed to map the resource via /dev/mem or > - * sysfs. > - */ > -int pci_request_region_exclusive(struct pci_dev *pdev, int bar, > - const char *res_name) > -{ > - return __pci_request_region(pdev, bar, res_name, IORESOURCE_EXCLUSIVE); > -} > -EXPORT_SYMBOL(pci_request_region_exclusive); > - > /** > * pci_release_selected_regions - Release selected PCI I/O and memory resources > * @pdev: PCI device whose resources were previously reserved > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 77448215ef5b..5f32275358cf 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1233,7 +1233,6 @@ int __must_check pci_request_regions(struct pci_dev *, const char *); > int __must_check pci_request_regions_exclusive(struct pci_dev *, const char *); > void pci_release_regions(struct pci_dev *); > int __must_check pci_request_region(struct pci_dev *, int, const char *); > -int __must_check pci_request_region_exclusive(struct pci_dev *, int, const char *); > void pci_release_region(struct pci_dev *, int); > int pci_request_selected_regions(struct pci_dev *, int, const char *); > int pci_request_selected_regions_exclusive(struct pci_dev *, int, const char *); > -- > 2.16.4 >