Re: [PATCH 02/21] fs: Include appropriate header file in dlm/ast.c
From: Josh Triplett
Date: Sun Feb 09 2014 - 08:05:16 EST
On Sun, Feb 09, 2014 at 06:19:17PM +0530, Rashika Kheria wrote:
> Include appropriate header file fs/dlm/ast.h in fs/dlm/ast.c because it
> contains function prototypes of some functions defined in fs/dlm/ast.c.
>
> This also eliminates the following warning in fs/dlm/ast:
> fs/dlm/ast.c:52:5: warning: no previous prototype for âdlm_add_lkb_callbackâ [-Wmissing-prototypes]
> fs/dlm/ast.c:113:5: warning: no previous prototype for âdlm_rem_lkb_callbackâ [-Wmissing-prototypes]
> fs/dlm/ast.c:174:6: warning: no previous prototype for âdlm_add_cbâ [-Wmissing-prototypes]
> fs/dlm/ast.c:212:6: warning: no previous prototype for âdlm_callback_workâ [-Wmissing-prototypes]
> fs/dlm/ast.c:267:5: warning: no previous prototype for âdlm_callback_startâ [-Wmissing-prototypes]
> fs/dlm/ast.c:278:6: warning: no previous prototype for âdlm_callback_stopâ [-Wmissing-prototypes]
> fs/dlm/ast.c:284:6: warning: no previous prototype for âdlm_callback_suspendâ [-Wmissing-prototypes]
> fs/dlm/ast.c:292:6: warning: no previous prototype for âdlm_callback_resumeâ [-Wmissing-prototypes]
>
> Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>
Reviewed-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
> fs/dlm/ast.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/dlm/ast.c b/fs/dlm/ast.c
> index 0e90f0c..42794c0 100644
> --- a/fs/dlm/ast.c
> +++ b/fs/dlm/ast.c
> @@ -14,6 +14,7 @@
> #include "dlm_internal.h"
> #include "lock.h"
> #include "user.h"
> +#include "ast.h"
>
> static uint64_t dlm_cb_seq;
> static DEFINE_SPINLOCK(dlm_cb_seq_spin);
> --
> 1.7.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/