Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp847887ybe; Wed, 11 Sep 2019 05:46:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiUg4WcEXDrB+MXJFNpN9MessGLb0BsnSXKkSgR8pXid2YU7OcOL1jXIw9O7Z8AqOcG4Ah X-Received: by 2002:a17:906:6dc1:: with SMTP id j1mr29616278ejt.85.1568206002508; Wed, 11 Sep 2019 05:46:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568206002; cv=none; d=google.com; s=arc-20160816; b=j2GdxfNSDaDExhsUsTT4HM2Sjnxj8UEINIT/g/AzEtR7EGxcKCKy7SuD8uxEZvBlnK FWHvMPMdylPR32C/ZGIaesivtCnOfiBjWVkucmWSvri2ic3GqAGvQrjUDylHAXSiXZdx 009IqSJSFXz10Sqp+YlwEEr1vGcUMJhS9QJUJtQwYxbIQUkf1V79wSMaeDruMlpUHZlZ xv0nTlbN3D2o8qgWXkzcrKvOicUCAz2ucH6HbLC9a0Fp3YIhnw9jxN02EQWQ46BIyqtY q715HGSLRNihvyJR40BonM7cWlS/Kr6n0mUDGnlCTlByZawS5EfS1j4luoohMc/vkuxK 09Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=PSZd4/zF1mh19SEMLJAn6nZTFANRVHPWyyydkzQPYmI=; b=X1cL+hBFP7Zoa8NclLX9DdbocdoiOB5ruYhMwVsy0uhZHoGxG+URW8H5+WA0HZLnBB g1jrM0KMlBnzuWtBZWr0idu/duvB01OIRdro+oG884MQ11KuO+RRDQOrazM34xqhXtNB 2Ob2KPMl8apGL9ZkMoGCw3rveoxk8j4ybcgdiYHCbolyG3yKNDq5h1iCAEYpgIx/QvFa /SRg0VOp8s3gdYtEWUYX36YqngIaebq43MrYd6XjUSeoN/2cZdcuAcfz0VKhrkQ5F0li Ybo0Mj4xWu/50IcwrYDBiSRUvTBSTa3hf4EIzuMWsgvXSWgZrQY7yiQEmn99dlNB8DKm yIeQ== 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 m24si12907783edq.108.2019.09.11.05.46.18; Wed, 11 Sep 2019 05:46:42 -0700 (PDT) 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 S1727987AbfIKMnS (ORCPT + 99 others); Wed, 11 Sep 2019 08:43:18 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2265 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726928AbfIKMnR (ORCPT ); Wed, 11 Sep 2019 08:43:17 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 33702FBA1A97D1E50F64; Wed, 11 Sep 2019 20:43:16 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Wed, 11 Sep 2019 20:43:10 +0800 From: tiantao6 To: , , CC: Subject: [PATCH] PCI: vc: fix warning: no previous prototype Date: Wed, 11 Sep 2019 20:40:51 +0800 Message-ID: <1568205651-60209-1-git-send-email-tiantao6@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.132] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: tiantao drivers/pci/vc.c:351:5: warning: no previous prototype for pci_save_vc_state [-Wmissing-prototypes] int pci_save_vc_state(struct pci_dev *dev) drivers/pci/vc.c:388:6: warning: no previous prototype for pci_restore_vc_state [-Wmissing-prototypes] void pci_restore_vc_state(struct pci_dev *dev) drivers/pci/vc.c:412:6: warning: no previous prototype for pci_allocate_vc_save_buffers [-Wmissing-prototypes] void pci_allocate_vc_save_buffers(struct pci_dev *dev) Signed-off-by: Tian Tao --- drivers/pci/vc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/vc.c b/drivers/pci/vc.c index b39e854..111f6d3 100644 --- a/drivers/pci/vc.c +++ b/drivers/pci/vc.c @@ -12,6 +12,7 @@ #include #include #include +#include "pci.h" /** * pci_vc_save_restore_dwords - Save or restore a series of dwords -- 2.7.4