mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] staging: lustre: ptlrpc: add missing include directive
@ 2015-08-14  9:57 Ioan-Adrian Ratiu
  2015-08-15  1:50 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Ioan-Adrian Ratiu @ 2015-08-14  9:57 UTC (permalink / raw)
  To: andreas.dilger, gregkh; +Cc: HPDD-discuss, devel, linux-kernel

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>
---
 drivers/staging/lustre/lustre/ptlrpc/pack_generic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c b/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c
index 2787bfd..84937ad 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c
@@ -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,
-- 
2.1.4


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

end of thread, other threads:[~2015-08-15 16:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-14  9:57 [PATCH] staging: lustre: ptlrpc: add missing include directive Ioan-Adrian Ratiu
2015-08-15  1:50 ` Greg KH
2015-08-15  8:13   ` Ioan-Adrian Ratiu
2015-08-15 10:11     ` [HPDD-discuss] " Drokin, Oleg
2015-08-15 16:11     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome