From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8DB2C3F2CE for ; Sat, 29 Feb 2020 09:50:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8834E2468D for ; Sat, 29 Feb 2020 09:50:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726764AbgB2JuQ (ORCPT ); Sat, 29 Feb 2020 04:50:16 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:10704 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726695AbgB2JuQ (ORCPT ); Sat, 29 Feb 2020 04:50:16 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6E8D6451FA588A61E440; Sat, 29 Feb 2020 17:50:12 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Sat, 29 Feb 2020 17:50:06 +0800 From: Yicong Yang To: , CC: , Subject: [PATCH] PCI: Rename is_probed of struct pci_dev to correctly match its function Date: Sat, 29 Feb 2020 17:46:32 +0800 Message-ID: <1582969592-56621-1-git-send-email-yangyicong@hisilicon.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Member is_probed in struct pci_dev indicates whether a pci device is in a probing process. Rename it to is_probing to match its function as well as the comments. Rename pci_physfn_is_probed() to pci_physfn_is_probing() for the same purpose. No functional change. Signed-off-by: Yicong Yang --- drivers/pci/pci-driver.c | 10 +++++----- include/linux/pci.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 0454ca0..56179ce 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c @@ -320,10 +320,10 @@ static long local_pci_probe(void *_ddi) return 0; } -static bool pci_physfn_is_probed(struct pci_dev *dev) +static bool pci_physfn_is_probing(struct pci_dev *dev) { #ifdef CONFIG_PCI_IOV - return dev->is_virtfn && dev->physfn->is_probed; + return dev->is_virtfn && dev->physfn->is_probing; #else return false; #endif @@ -341,7 +341,7 @@ static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev, * on the right node. */ node = dev_to_node(&dev->dev); - dev->is_probed = 1; + dev->is_probing = 1; cpu_hotplug_disable(); @@ -350,7 +350,7 @@ static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev, * device is probed from work_on_cpu() of the Physical device. */ if (node < 0 || node >= MAX_NUMNODES || !node_online(node) || - pci_physfn_is_probed(dev)) + pci_physfn_is_probing(dev)) cpu = nr_cpu_ids; else cpu = cpumask_any_and(cpumask_of_node(node), cpu_online_mask); @@ -360,7 +360,7 @@ static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev, else error = local_pci_probe(&ddi); - dev->is_probed = 0; + dev->is_probing = 0; cpu_hotplug_enable(); return error; } diff --git a/include/linux/pci.h b/include/linux/pci.h index 3840a54..1c31dd2 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -419,7 +419,7 @@ struct pci_dev { unsigned int io_window_1k:1; /* Intel bridge 1K I/O windows */ unsigned int irq_managed:1; unsigned int non_compliant_bars:1; /* Broken BARs; ignore them */ - unsigned int is_probed:1; /* Device probing in progress */ + unsigned int is_probing:1; /* Device probing in progress */ unsigned int link_active_reporting:1;/* Device capable of reporting link active */ unsigned int no_vf_scan:1; /* Don't scan for VFs after IOV enablement */ pci_dev_flags_t dev_flags; -- 2.8.1