From patchwork Tue Feb 13 17:45:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 128252 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4452667ljc; Tue, 13 Feb 2018 08:56:49 -0800 (PST) X-Google-Smtp-Source: AH8x226fjRQ4zq4UG70sSEITCpK9uubO/J5x98zKvtFPd5Uu4GtzY/qV1sdWfuMp7p/LjRoJ4Tn0 X-Received: by 10.99.158.17 with SMTP id s17mr1552933pgd.64.1518541008925; Tue, 13 Feb 2018 08:56:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518541008; cv=none; d=google.com; s=arc-20160816; b=VAmf6c7SaZrYZlluOzEIN7Ab0i0fQZ48mOLOgCblbAzjgse69v1u1XDJ0O7OJOiZg+ MgaLgGxSYOaG+taX5cXJnajxps1YadnCGGpk9J7GLz6qYzHanYPHePr18Myhs62QTQ2m iKPsgF9O3J/TyvzgAHB4ev+Wj0uf4t5KoBZQH9Tip1Pj+S0Lval/roS7s3FT0sDb+Z46 3xc37DGSxsHLmsF2m4sAwnEII1/xIb4jMGZwFualhWbV8Ic3kZrcGccxi1p5p1Un8RsO YuToSZ6IyqDf0TiGOGj/pgpmK/yFNoyOvDiZAGeLNjcRmEfH98Tb8OyW7OX7nKFV1xMF pvjA== 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=ymFq8ykEeZdCBlaIB2nMAZgNppTImVbCyxDPoFJw6iE=; b=P8bNFdmUKc6tOm7yi0ILwEwnR8h/cw9d48PR3bz5w6chUDVenG315iDQanCjglFVLh 25KsOI2DvRxqk9VSWZ3SpscvffKOqyoWXy1utRKQrDw8P/KHd6mh4daKA6no2q76ZYdI hAjritbny1CU603CyJz1DLMLZz4dwM/8g/8Ej4bwXhXKOACUGVLjtu383z2Rolr1wehG MfeGHdmstI+BOVqzphwlbAcIcXWROWFZhyllbkVjEsoLh2FYeFkBRzeY/KolONRsf2lv /CG4rHdTB0vuVMtTZdxijVKBe/Fz8ltzjX7/INRn9LgYwdw9AMnXrWPRXWs1Cu9kcQsF G7xQ== 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 y1si57676pgs.358.2018.02.13.08.56.48; Tue, 13 Feb 2018 08:56:48 -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 S934681AbeBMQ4r (ORCPT + 8 others); Tue, 13 Feb 2018 11:56:47 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:5645 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934677AbeBMQ4q (ORCPT ); Tue, 13 Feb 2018 11:56:46 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id F21E69D21A2E8; Wed, 14 Feb 2018 00:56:30 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.361.1; Wed, 14 Feb 2018 00:56:26 +0800 From: John Garry To: , , , , , , , , , , , , CC: , , , , , , , , , Subject: [PATCH v13 2/9] PCI: Remove unused __weak attribute in pci_register_io_range() Date: Wed, 14 Feb 2018 01:45:26 +0800 Message-ID: <1518543933-22456-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1518543933-22456-1-git-send-email-john.garry@huawei.com> References: <1518543933-22456-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 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;