From patchwork Mon Feb 19 17:48:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 128826 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp3719063ljc; Mon, 19 Feb 2018 08:58:06 -0800 (PST) X-Google-Smtp-Source: AH8x224BPyv9hAkfNwaV6unozke+Fi0bnzmaaIlsB5yzUXQbjCBVlRElFULFTESVsuhyL1LpSuyo X-Received: by 10.101.86.198 with SMTP id w6mr12665987pgs.434.1519059486467; Mon, 19 Feb 2018 08:58:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519059486; cv=none; d=google.com; s=arc-20160816; b=VY1JxHsiptzHB66zqHuQZAmbGwMxOthXcVcubVFkwOvpjO/12ju5Hf9eL0tVWJYVNu lo26WfqQ5vV842s8TI+QDlSp7lv3CNk12yU1Ije+aUDq2Sx96u4fLGTKVKUd1/d972iL laRuu4c17rS9S/ToDvnu3TOKOH7ykhNjEBgVJ/XWf7j6jOPNt0SwtbyHjr1xYjjdenZH 1STER2wfl7UvYDpRFmYP6UlheTSlmTI5IKeyH46NMbFWgRCdutPcs3r1PYhXpv3wX0F+ UUXjnVN4rQZn7R9dAmOD0RslVIJb9eX0PPuFumy3mDMyNpx73GiyZz7tI+Xtno3adhvc prJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=+zJ2ZO4vchA8eqkfLdYllI3YOM7YjV8X1d9jXC0Q58c=; b=E1etfBfJQPpadGcRBJ1VfU/FSfifiqgxaYfdLTBWqG8KtEslU/nZVsdIz3D3/Ckc6A 1l03xIpfGSW1u1FmPymhaLhITStzfFpYrO0U+D1NqrW0iohgeCEUywK0eZFR5rP9i2G8 rRQVtVNMilem4DbhHufK9GO21tvWxmP+A6klov2xiS5Lq29/VkITaA7L9hp7PrhRLD8B ZsFvYDbjP7JIPCHwwBoo65xz+5gXr3b7doO1htkhbyUYMsHeP9jWDBsU6rn9FpdP0MM0 1DFCulqik6/+BZt85x8mqZ2S+z8d0FvYvekBLkQtFjUyy8M6ZcZWkS+G9EYfa9EZkQE7 gTJA== 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 k1-v6si5145724plt.67.2018.02.19.08.58.06; Mon, 19 Feb 2018 08:58:06 -0800 (PST) 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 S1753404AbeBSQ5u (ORCPT + 28 others); Mon, 19 Feb 2018 11:57:50 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:45762 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753348AbeBSQ5H (ORCPT ); Mon, 19 Feb 2018 11:57:07 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 650087D29FD83; Tue, 20 Feb 2018 00:56:48 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.361.1; Tue, 20 Feb 2018 00:56:40 +0800 From: John Garry To: , , , , , , , , , , , , CC: , , , , , , , , , Subject: [PATCH v14 2/9] PCI: Remove unused __weak attribute in pci_register_io_range() Date: Tue, 20 Feb 2018 01:48:33 +0800 Message-ID: <1519062520-198902-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1519062520-198902-1-git-send-email-john.garry@huawei.com> References: <1519062520-198902-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gabriele Paoloni Currently pci_register_io_range() has only one definition; therefore there is no use of the __weak attribute. Signed-off-by: Gabriele Paoloni Acked-by: Bjorn Helgaas --- drivers/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index f6a4dd1..4666a01 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -3455,7 +3455,7 @@ struct io_range { * Record the PCI IO range (expressed as CPU physical address + size). * Return a negative value if an error has occured, zero otherwise */ -int __weak pci_register_io_range(phys_addr_t addr, resource_size_t size) +int pci_register_io_range(phys_addr_t addr, resource_size_t size) { int err = 0;