From patchwork Tue Mar 6 10:47:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 130771 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3784239lja; Tue, 6 Mar 2018 02:50:28 -0800 (PST) X-Google-Smtp-Source: AG47ELvu4Xj45C0R2CdCTtSzX5boKljd8C6o3m6ccW/fiSxFIwHa+vUTfQLSsDVq025Gyysmx47r X-Received: by 10.99.179.77 with SMTP id x13mr13877153pgt.148.1520333428364; Tue, 06 Mar 2018 02:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520333428; cv=none; d=google.com; s=arc-20160816; b=HStjefy0sBlD/geiQlSQP/bBQtMSkoxG5ZX+xT62Sat2FTWB7AZwwnraHgCR8MXb/i BYP71PkiMAIVTlcYoFUnMKnHryxhOlkNkuN2LySJpGVt3wZAOPL/EXnpZ5eBdlfsGunX yMzomjL3apmTnMVdS/DP/2dWcli3P+8/6eFnZhAZquK3I+H1xmaA48VAB2yddsMXRB+c 4bTbvXXgIr/Pe0YuipkIAwWU2YazOtCQigC37indOW8yHXhs7F0gUMgkyKHUyyGMspiA 66NVMKLsMzmNjJ2/0q5bIaI97Fmdl9BgxYBtPtYr003AgXomr/JSIC04K7zhj701WCds Q+CQ== 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=N2pWP9N2ook620oBtwdAxvf3HmhAmACKGOLfNUkJs7U=; b=PW7yqJQnWFkqG3SbwlyOJ6K3Ec8VqLhKnLrf/lQTHI5VzzFMXz13jpf0OHxmk49BMf gDMsblJBGyrtn/aKd0VIIaJJniGvyui4dnxJQ++rYkUWXzadgi2YRJBOLqWO/VhEXAI6 cuYShVnvhGWmUfLe+RpIqxAWa3iXxzEn0AhlGXMtzpVn88lCufxJzvmrs9mua3yeM3WD cme4Q2YIzZFHfkjZQ2oUFirqt+gLIe2nWrrAhKn0dSKcyAW3VsYQjV2lnPR/mAbYL4qc 4swkW5K9+P0QfAUvBp73Ur8mPnBRvRKxMvIFJzorRMAs+U11fxQa15OhHcteDxRIubVe Uf5g== 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 ay8-v6si10872955plb.614.2018.03.06.02.50.28; Tue, 06 Mar 2018 02:50:28 -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 S1753677AbeCFKuD (ORCPT + 28 others); Tue, 6 Mar 2018 05:50:03 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6156 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753431AbeCFKsb (ORCPT ); Tue, 6 Mar 2018 05:48:31 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4BD3F8250994C; Tue, 6 Mar 2018 18:48:14 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.361.1; Tue, 6 Mar 2018 18:48:05 +0800 From: John Garry To: , , , , , , , , , , , , , CC: , , , , , , , , , , , , , Subject: [PATCH v16 2/9] PCI: Remove unused __weak attribute in pci_register_io_range() Date: Tue, 6 Mar 2018 18:47:41 +0800 Message-ID: <1520333268-82754-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520333268-82754-1-git-send-email-john.garry@huawei.com> References: <1520333268-82754-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 Reviewed-by: Andy Shevchenko Tested-by: dann frazier --- 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 ae654e2..ff41a64 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -3451,7 +3451,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;