Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1207456

[PATCH] staging: lustre: ptlrpc: add missing include directive

From Ioan-Adrian Ratiu <adi@adirat.com>
Newsgroups linux.kernel
Subject [PATCH] staging: lustre: ptlrpc: add missing include directive
Date 2015-08-14 12:00 +0200
Message-ID <pXjWi-6VE-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] staging: lustre: ptlrpc: add missing include directive Ioan-Adrian Ratiu <adi@adirat.com> - 2015-08-14 12:00 +0200
  Re: [PATCH] staging: lustre: ptlrpc: add missing include directive Greg KH <gregkh@linuxfoundation.org> - 2015-08-15 04:00 +0200
    Re: [PATCH] staging: lustre: ptlrpc: add missing include directive Ioan-Adrian Ratiu <adi@adirat.com> - 2015-08-15 10:20 +0200
      Re: [HPDD-discuss] [PATCH] staging: lustre: ptlrpc: add missing  include directive "Drokin, Oleg" <oleg.drokin@intel.com> - 2015-08-15 12:20 +0200
      Re: [PATCH] staging: lustre: ptlrpc: add missing include directive Greg KH <gregkh@linuxfoundation.org> - 2015-08-15 18:20 +0200

csiph-web