Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5993504ybe; Tue, 10 Sep 2019 11:52:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLSexG2JNTV1yCq1OPxJyDb3ZmstJVtQxYL69s9PTl7vD8mTG1k8csRxqM9AMyfP7N7KGh X-Received: by 2002:a50:f30c:: with SMTP id p12mr32030719edm.299.1568141573248; Tue, 10 Sep 2019 11:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141573; cv=none; d=google.com; s=arc-20160816; b=jxMODlBZoHi97gdPI6f9a0TffF0S4btJ7jyE2rZVoGAxiyWLlWDVaFLt3YKADZPaYo lDjU0eFLTh8fRua/xGNJblsWbc4MszyaUwNrKjgmB4p0GC8gFLCMbptFC8dINWNPfbi8 ncDN9zevqW1fUaQz4tp2+PG+unxpu8NSmBN3o8A5xoK/T2ttsvWzHrOevfQSwsBh5a8c 1dhzdsVOhUOwisIZg/UtMbgW7608ZGil2ErF+dDrQMYeuM+IGl+cDITkWXZbCNC3AxnE WmUVu4CMmjaYh5P3DAYXHnwTWTuJduy5K8xFfU0Y4jrZajIXmRHhSZAJau/GH5OS14+d +PiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tTrPf0w7BrxuBkrpqrEutOdrbU8MGZuyFI16gEmrOQM=; b=UVA3LwXq7M0A/KnST/T6yTUOR7MLlKNNLObdOXVRZ/y9UFP+Kzc9zT3iRL2HIMVb4t EGlTxiuD/cspoAVhQ7JyQEyU2pSuBJSGgasc/emhkeCV+p30B290wo0vjKDLanm9iKwx 3ng0WGGLy+jCSIkSgobwmecbBSGn7hu4aga0k3i0NU88QPwltVLCjxwKZlvZ2p5ziB4e PrJrmysrt7zwzRt2lUXB3npdkJX4GcpYLJK3cLdIbI0VBfUT1CTgw/vVgnA0i70XIp4b MDzPrjlS/qfn5elVpisfI052Xkxcls3E3/aiO93J2SKSwJtHuBpVcyA4u4pbjKkp2+Gk skzA== 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 hb19si9926328ejb.278.2019.09.10.11.52.28; Tue, 10 Sep 2019 11:52:53 -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 S1726792AbfIJIYr (ORCPT + 99 others); Tue, 10 Sep 2019 04:24:47 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42040 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725876AbfIJIYq (ORCPT ); Tue, 10 Sep 2019 04:24:46 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4D02E163D3A232B0C647; Tue, 10 Sep 2019 16:24:44 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Tue, 10 Sep 2019 16:24:37 +0800 From: tiantao6 To: , , CC: , Subject: [PATCH] ras: debugfs: Fix warning: no previous prototype Date: Tue, 10 Sep 2019 16:22:19 +0800 Message-ID: <1568103739-36667-1-git-send-email-tiantao6@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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 fixed the fellow warning when building with warnings enabled (W=1) drivers/ras/debugfs.c:8:5: warning: no previous prototype for ‘ras_userspace_consumers’ [-Wmissing-prototypes] int ras_userspace_consumers(void) drivers/ras/debugfs.c:38:12: warning: no previous prototype for ‘ras_add_daemon_trace’ [-Wmissing-prototypes] int __init ras_add_daemon_trace(void) drivers/ras/debugfs.c:54:13: warning: no previous prototype for ‘ras_debugfs_init’ [-Wmissing-prototypes] void __init ras_debugfs_init(void) Signed-off-by: tiantao6 --- drivers/ras/debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/ras/debugfs.c b/drivers/ras/debugfs.c index 9c1b717..39b96a5 100644 --- a/drivers/ras/debugfs.c +++ b/drivers/ras/debugfs.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only #include +#include struct dentry *ras_debugfs_dir; -- 2.7.4