* [PATCH 3/3] staging: lustre: fix non-ANSI function prototypes.
@ 2013-08-10 0:32 Cyril Roelandt
0 siblings, 0 replies; only message in thread
From: Cyril Roelandt @ 2013-08-10 0:32 UTC (permalink / raw)
To: kernel-janitors
Add "void" to ksocknal_lib_tunables_init(), lwt_init() and lwt_fini(), which
are parameterless functions;
Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
---
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_lib-linux.c | 2 +-
drivers/staging/lustre/lustre/libcfs/lwt.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_lib-linux.c b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_lib-linux.c
index a1c6a51..5ccb7c4 100644
--- a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_lib-linux.c
+++ b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_lib-linux.c
@@ -296,7 +296,7 @@ ctl_table_t ksocknal_top_ctl_table[] = {
};
int
-ksocknal_lib_tunables_init ()
+ksocknal_lib_tunables_init(void)
{
if (!*ksocknal_tunables.ksnd_typed_conns) {
int rc = -EINVAL;
diff --git a/drivers/staging/lustre/lustre/libcfs/lwt.c b/drivers/staging/lustre/lustre/libcfs/lwt.c
index b631f7d..e21eb86 100644
--- a/drivers/staging/lustre/lustre/libcfs/lwt.c
+++ b/drivers/staging/lustre/lustre/libcfs/lwt.c
@@ -173,7 +173,7 @@ lwt_snapshot (cfs_cycles_t *now, int *ncpu, int *total_size,
}
int
-lwt_init ()
+lwt_init(void)
{
int i;
int j;
@@ -230,7 +230,7 @@ lwt_init ()
}
void
-lwt_fini ()
+lwt_fini(void)
{
int i;
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-10 0:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-10 0:32 [PATCH 3/3] staging: lustre: fix non-ANSI function prototypes Cyril Roelandt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox