staging: lustre: ptlrpc: add missing include directive
authorIoan-Adrian Ratiu <adi@adirat.com>
Fri, 14 Aug 2015 09:57:06 +0000 (12:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 01:51:18 +0000 (18:51 -0700)
Without including ptlrpc_internal.h, GCC gives prototype warnings
"pack_generic.c:642:5: warning: no previous prototype for ..."
and sparse also complains "pack_generic.c:642:5: warning: symbol
'lustre_unpack_req_ptlrpc_body' was not declared. ..."

Signed-off-by: Ioan-Adrian Ratiu <adi@adirat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/pack_generic.c

index 2787bfd67165604094ad199ca71b60d0d60762f6..84937ad905709633f9d33ffb456e5ccd006c9f2e 100644 (file)
@@ -52,6 +52,8 @@
 #include "../include/obd_cksum.h"
 #include "../include/lustre/ll_fiemap.h"
 
+#include "ptlrpc_internal.h"
+
 static inline int lustre_msg_hdr_size_v2(int count)
 {
        return cfs_size_round(offsetof(struct lustre_msg_v2,