From patchwork Sun Jan 21 12:27:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 125274 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp654903ljf; Sun, 21 Jan 2018 03:36:25 -0800 (PST) X-Google-Smtp-Source: AH8x224OvXlw1/m8irKvLi/ASzJmIX3/bNeikbWFFK4opDQwSyDIGs+tpukKlk1ZutPMvWKUF1Ft X-Received: by 10.101.65.205 with SMTP id b13mr4386400pgq.280.1516534585789; Sun, 21 Jan 2018 03:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516534585; cv=none; d=google.com; s=arc-20160816; b=iKGD51e5LxA9vZpQX5ZjFc9KCzZ831m1FH0xHArCE+6juwIAWGlcQWNpYWi1Gw9H/3 ZOPNYR2iN0cAXS77tbpN9AByIu5LvTFAjKwp9Yz5Ra6A2sK2ujHvxhGFOGM3fXM/Cy23 D8METNl5SMELqHXSCQdFHoXMj8a+vOHuHu6kNN13AbYhq8Sq8xXGJhr4uozHWgCpD2gw 9unME+hlqZ+pS5bXitSInxyO70zBYrZqD6gPReaoGWCy8akrDLduIWeqQpOk4Kfo5Z2d rNq3g4tgjffUEn3Remp1lSJm/TU7Da0XVrSksA8pt4TvaDWX1I8e6MN2GgRsknExmpyT cbEw== 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=pH3PmXvj2dRh5pjrWwj5xIfkjshrDFqPzWKRctJN/3k=; b=dAvVQOs9Vmxh2qEV5yUs7xbzv586A3q8g6wWpDDteKzQ/KhU5m7PeapwKaZUV4v/c3 dIa1FJL+23+WE90iDoew6YfoZfknWBhiBWe0+z4Y6b/TcX4eQheSQLNTvMAHU+qEu6C7 Al413LGA2eVrtbbRbtj0IVrJyMhKGsoeLtodL2Uw880Y4z7ZqVUHuqFWytq8j6YQp7Ga Jd2lBiRZ+o4ZodHgcZCKv/OgaA6bQn/i/1rh7E2d4XjFxo4L6tzP9nb1RGM5IgtwENU9 g5jNV7rOpVn5pmT5eP+/UfYk51Ueys06KsJKaJa9r8tWVTUDbn3yo/ZQ5eymnuWytexQ HOBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-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 e11si11873982pgn.374.2018.01.21.03.36.25; Sun, 21 Jan 2018 03:36:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-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-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751229AbeAULgT (ORCPT + 8 others); Sun, 21 Jan 2018 06:36:19 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:50542 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751143AbeAULgR (ORCPT ); Sun, 21 Jan 2018 06:36:17 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 50E04926E80; Sun, 21 Jan 2018 19:36:11 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.361.1; Sun, 21 Jan 2018 19:36:05 +0800 From: John Garry To: , , , , , , , , , , CC: , , , , , , , , Gabriele Paoloni Subject: [PATCH v11 2/9] PCI: Remove unused __weak attribute in pci_register_io_range() Date: Sun, 21 Jan 2018 20:27:20 +0800 Message-ID: <1516537647-50553-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516537647-50553-1-git-send-email-john.garry@huawei.com> References: <1516537647-50553-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-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@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 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 764ca7b..d8357ff 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -3383,7 +3383,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;