]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers: target: Move prototype declaration of function to header file target_core_pr.h
authorRashika Kheria <rashika.kheria@gmail.com>
Wed, 18 Dec 2013 18:24:32 +0000 (23:54 +0530)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 10 Jan 2014 05:48:36 +0000 (21:48 -0800)
Move prototype declaration of function
spc_parse_naa_6h_vendor_specific() from target_core_xcopy.c to header
file target_core_pr.h because it is used by more than one file.

This eliminates the following warning in target_core_spc.c:
drivers/target/target_core_spc.c:138:6: warning: no previous prototype for ‘spc_parse_naa_6h_vendor_specific’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.h
drivers/target/target_core_xcopy.c

index ed75cdd32cb0964f64d1423f29dfb47e3bd3229c..2ee2936fa0bd065d8755e96e85fa0a63250e9cc4 100644 (file)
 #define PR_APTPL_MAX_IPORT_LEN                 256
 #define PR_APTPL_MAX_TPORT_LEN                 256
 
+/*
+ *  Function defined in target_core_spc.c
+ */
+void spc_parse_naa_6h_vendor_specific(struct se_device *, unsigned char *);
+
 extern struct kmem_cache *t10_pr_reg_cache;
 
 extern void core_pr_dump_initiator_port(struct t10_pr_registration *,
index 6b88a9958f6126ab9267cc1c23e97dd8e59b5a57..669c536fd959575da69816e4a8714b5f78a362c7 100644 (file)
 #include "target_core_xcopy.h"
 
 static struct workqueue_struct *xcopy_wq = NULL;
-/*
- * From target_core_spc.c
- */
-extern void spc_parse_naa_6h_vendor_specific(struct se_device *, unsigned char *);
 /*
  * From target_core_device.c
  */