From patchwork Tue Jan 23 16:36:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 125557 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1833790ljf; Tue, 23 Jan 2018 07:48:35 -0800 (PST) X-Google-Smtp-Source: AH8x224ifzUOOJFQXIL/4oOAG+TbmWTI645zQ9887mly3BQQJVoGFUjYJDYIx9hQznGixgSp9Ipg X-Received: by 10.202.74.3 with SMTP id x3mr2700383oia.199.1516722515427; Tue, 23 Jan 2018 07:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516722515; cv=none; d=google.com; s=arc-20160816; b=MPFnas5S9XJnx4smXXj6mJmSv/j60FgWPf/fX2jwf0c4MatvExgJfFysCaMkayi1IK mFGAlwn03XmDkzIiMNL3an+wITf8v8UsblUwuc5ypkAY+Pbt4dUuKES1GlA/ErjEjsq6 mQlwWWbsbOH9GEjRmrmv6ex+1++JC11asAarvAHbJCgzmD11FaNNiyh3qBGH+HBc6sum /Yw/u8xqeunM+SPrzOvTA9fMFgMC+DX2tTNltXZ+rylMgYo1LYshvmaOG2XsMAvSiFtI UIR0FmhkQLPRLUpNkycdTyw2T6vGmvwJTfjLWgUeov/tInoMt9EinfsR66OQ45DolZsJ eYQA== 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=KmeJwmPfpVPhs6I/PI8pBfNKMWFZUKbW8/ATJw/MA9A=; b=WpTQ9qAbAb5DHdJZiWWAD9td9hBHw8woGP6WkRmUAlOpy/kTvRpNjJ9P7dlP+md5gI fpmZ9m1HqWqDlqsKhKdo8x2ZMTIKgSpPJ4jB55aS/MsTC6ju+bjfpVUsf8a5rXql69wB GZEJF5cdD6XYJsr1uZKlOVTaSYsK0zK9TiaeVcw3t+5aUDS0LGhMc7n9sW4IzMABZYOG Q6BJ8HvWuGu/j607mRjNlrj6+pGa2WU3w2UK24w9n6LJ0s9AHet5tDJ3XY/SjfZHHjqX 4tHfkXFsnwZv7lW5DqWaZC9pTdCgf36jAi7yQlo2WLOBxunalsh8/YkfmQzo8+4BQms/ +UCQ== 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 z184si8188142itc.161.2018.01.23.07.48.35; Tue, 23 Jan 2018 07:48:35 -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 S1752357AbeAWPsb (ORCPT + 28 others); Tue, 23 Jan 2018 10:48:31 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:4680 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751606AbeAWPpY (ORCPT ); Tue, 23 Jan 2018 10:45:24 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C2641833A8EFF; Tue, 23 Jan 2018 23:45:07 +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; Tue, 23 Jan 2018 23:44:58 +0800 From: John Garry To: , , , , , , , , , , CC: , , , , , , , , , Gabriele Paoloni Subject: [PATCH v12 2/9] PCI: Remove unused __weak attribute in pci_register_io_range() Date: Wed, 24 Jan 2018 00:36:18 +0800 Message-ID: <1516725385-24535-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516725385-24535-1-git-send-email-john.garry@huawei.com> References: <1516725385-24535-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 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;