linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ras: debugfs: Fix warning: no previous prototype
@ 2019-09-10  8:22 tiantao6
  2019-09-10  8:39 ` Borislav Petkov
  0 siblings, 1 reply; 2+ messages in thread
From: tiantao6 @ 2019-09-10  8:22 UTC (permalink / raw)
  To: tony.luck, bp, linux-edac; +Cc: linuxarm, linux-kernel

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@huawei.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ras: debugfs: Fix warning: no previous prototype
  2019-09-10  8:22 [PATCH] ras: debugfs: Fix warning: no previous prototype tiantao6
@ 2019-09-10  8:39 ` Borislav Petkov
  0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2019-09-10  8:39 UTC (permalink / raw)
  To: tiantao6; +Cc: tony.luck, linux-edac, linuxarm, linux-kernel

On Tue, Sep 10, 2019 at 04:22:19PM +0800, tiantao6 wrote:
> fixed the fellow warning when building with warnings enabled (W=1)

"fellow"?

> 
> 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)

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=ras/core&id=0a54b809a3a2c31e1055b45b03708eb730222be1

> 
> Signed-off-by: tiantao6 <tiantao6@huawei.com>

Also, if you intend to send more patches in the future, please use your
real name.

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-10  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-10  8:22 [PATCH] ras: debugfs: Fix warning: no previous prototype tiantao6
2019-09-10  8:39 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).