From patchwork Wed Mar 14 18:15:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 131705 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp154640ljb; Wed, 14 Mar 2018 11:20:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELvoZDXKel8qo7ML5k97iCzBYUkZTKxdAaZlg7WonX8Zw/So6iC+4NAyCIQz2Jqui6h6FUDc X-Received: by 2002:a17:902:7593:: with SMTP id j19-v6mr4884887pll.408.1521051607268; Wed, 14 Mar 2018 11:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521051607; cv=none; d=google.com; s=arc-20160816; b=xt8jz12oqOeA0zjBa20mUXZTAJ6+Fc9QDvDJ1c01UoJ3irnEZlt9ZnBgzEan08MO3X iW+I0AGW4yOLY8pa870Z2DGxFrgwtKZWtXQN9GevV4jMZkv3DsK5EvX7+pS1QaRJAoKg 1yEgSwYvH/dS9Sn6CyMC/ZCOqx0U9ZviNxeCfWSDe8RE9EscQ8qosVX4lwz2Zy8/Rf9S ZzX1W7hhvHYAM+cGrxwICROKoTQz0S2/ONPNC0gQOWKtqTtvvshwEZxDt4a7HpZbtQld 0nj7KNDSw6njalUHRZYf+oJvvLpDFYV008M9ks0huBki/39v7o8Km8RZiK3OVNF6pYnH opqQ== 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=Hcc5gpKvZ3fEKmVCQkyM05QAx8CxMyq+Dg6lj18xi/E=; b=bq0ggjFT7OsNI6RX8LgtdeEECSE/MU9zwDXiEkRddWJ9FQfAQ0PJ+vyYBrc5v4YoW/ PZSuy3ydDC4acp6JucB5LhiaR0XlprY2+D2PLLHxXRK8QVQUMyqEkPe8z6PwH4Asa9oE KJOlsCL4Qz8wFMnV0X6hWfx5l4mkgKHxa5BZlbTIeVdKUpNadSS9YPHfwMCDlQ1ssHsM PuuWf5tlT4PUAtdwMWqSZZdF52bLjOLy41+wMmVYZRjqJXiYgCsJTDPYqsaNYMYS6Wlr 7smbw01zie3bqTojnpsGynkuPGw5s0BAEXzJ9KZYFev8NNZ5HBJLW4pvv3yxHzBrGn85 39WQ== 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 q19si2236904pgq.10.2018.03.14.11.20.07; Wed, 14 Mar 2018 11:20:07 -0700 (PDT) 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 S1752378AbeCNSUE (ORCPT + 8 others); Wed, 14 Mar 2018 14:20:04 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6638 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751362AbeCNSRG (ORCPT ); Wed, 14 Mar 2018 14:17:06 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 57170A553CCBE; Thu, 15 Mar 2018 02:16:51 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.361.1; Thu, 15 Mar 2018 02:16:44 +0800 From: John Garry To: , , , , , , , , , , , , , CC: , , , , , , , , , , , , , Subject: [PATCH v17 02/10] PCI: Remove unused __weak attribute in pci_register_io_range() Date: Thu, 15 Mar 2018 02:15:51 +0800 Message-ID: <1521051359-34473-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521051359-34473-1-git-send-email-john.garry@huawei.com> References: <1521051359-34473-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 Reviewed-by: Andy Shevchenko Tested-by: dann frazier --- 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 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;