From patchwork Mon Feb 26 16:40:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 129692 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp3975155edc; Mon, 26 Feb 2018 07:51:46 -0800 (PST) X-Google-Smtp-Source: AH8x22634znBwp9MsJrjNXN/K/Qb3xDwg0ksTRThfMEq5ahThONgsHl/g0x4IT95Sqs1oewlM0Xk X-Received: by 2002:a17:902:724b:: with SMTP id c11-v6mr11038541pll.352.1519660306489; Mon, 26 Feb 2018 07:51:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519660306; cv=none; d=google.com; s=arc-20160816; b=HFVAG1zVas5ripBKG/O4C/IPyacDqc1brvVknA1cyMJElJnuIFEhRb2OaaysOHP7NI 3BzHXgdZI04oghyIwp1MBbMgKoxeoYsnfmygmAHwIWpjLIJp2PhMUZKZ0+8Hy7imQ1S2 ZgJTkOil0qWvY2IH42CfBpzlkY8aZfHAM9FgddM83bKXKqn1B5mYelmjn0OEIz4KVkv/ 5AS9VoPkwXrL9knQA4hzKU5j6OxEps5wNAtjB14xJcSd2tqtuVKUqnc80EH5hq0HSlxl kAax0/RV907tgKLF7YpbgiZMis8HG1pSNHqzmm/f4m1LvUuekey4snlZVFgC9RSSE9fc MLzw== 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=ta9LhXn85vb1XFnsfKaEKeCXMIG68OSksyEOb27OeKY=; b=uacFsZu2Zuc0SJdvFtf2qV/QnxGjufDhJIZh84ii9LEn2hx+wVSeutFThO7Rvi1tZG 8Jdq7VaG14XF2Y0EYJc7mZ7ncoqdLMUHcO+8PpBdLiN3+h8hm52s1sHvrCnmn+u2Aaqp WI2zKLQnvSzvT42+aaCzfrwVlYiypiWKNj8bTDsj/AvHhffBS1R/1qXAAcdQI3luElIi xsQbwIvcodVWgWBVkhpAktdmOuRmfMS1FG4m+WxE7sWfrUh5PJBsz3Ipd+lpDhjvWoWT WfCeRXhRqU/bGgeh66rYKBHnckmPd6zbL389WBSUNg/ceXsx1Y60lVPCq8RrAJerKqAT FjNw== 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 k6-v6si6880334pla.333.2018.02.26.07.51.46; Mon, 26 Feb 2018 07:51:46 -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 S1752188AbeBZPuV (ORCPT + 28 others); Mon, 26 Feb 2018 10:50:21 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:49585 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751576AbeBZPuO (ORCPT ); Mon, 26 Feb 2018 10:50:14 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 588292AA35624; Mon, 26 Feb 2018 23:50:06 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.361.1; Mon, 26 Feb 2018 23:49:58 +0800 From: John Garry To: , , , , , , , , , , , , , CC: , , , , , , , , , , , , , Subject: [PATCH v15 2/9] PCI: Remove unused __weak attribute in pci_register_io_range() Date: Tue, 27 Feb 2018 00:40:42 +0800 Message-ID: <1519663249-9850-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1519663249-9850-1-git-send-email-john.garry@huawei.com> References: <1519663249-9850-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 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;