lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1568103739-36667-1-git-send-email-tiantao6@huawei.com>
Date:   Tue, 10 Sep 2019 16:22:19 +0800
From:   tiantao6 <tiantao6@...wei.com>
To:     <tony.luck@...el.com>, <bp@...en8.de>, <linux-edac@...r.kernel.org>
CC:     <linuxarm@...wei.com>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] ras: debugfs: Fix warning: no previous prototype

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 <tiantao6@...wei.com>
---
 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 <linux/debugfs.h>
+#include <linux/ras.h>
 
 struct dentry *ras_debugfs_dir;
 
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ