From patchwork Tue Sep 10 08:22:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "tiantao (H)" X-Patchwork-Id: 11138917 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 44F021395 for ; Tue, 10 Sep 2019 08:24:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2D3BF21A4C for ; Tue, 10 Sep 2019 08:24:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726425AbfIJIYq (ORCPT ); Tue, 10 Sep 2019 04:24:46 -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 X-Originating-IP: [10.67.212.132] X-CFilter-Loop: Reflected Sender: linux-edac-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-edac@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;