diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2013-12-18 13:24:32 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-01-10 00:48:36 -0500 |
commit | 8a0bedd36a5fe5378555bc01846d7bd7a0d38b85 (patch) | |
tree | fb35d93039288a8c227e86dd7fc6c5cae9d0f49f /drivers/target | |
parent | 229d4f112fd6d1562b6d5324c4cb8f8d097bac54 (diff) |
drivers: target: Move prototype declaration of function to header file target_core_pr.h
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>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_pr.h | 5 | ||||
-rw-r--r-- | drivers/target/target_core_xcopy.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/target/target_core_pr.h b/drivers/target/target_core_pr.h index ed75cdd32cb0..2ee2936fa0bd 100644 --- a/drivers/target/target_core_pr.h +++ b/drivers/target/target_core_pr.h | |||
@@ -43,6 +43,11 @@ | |||
43 | #define PR_APTPL_MAX_IPORT_LEN 256 | 43 | #define PR_APTPL_MAX_IPORT_LEN 256 |
44 | #define PR_APTPL_MAX_TPORT_LEN 256 | 44 | #define PR_APTPL_MAX_TPORT_LEN 256 |
45 | 45 | ||
46 | /* | ||
47 | * Function defined in target_core_spc.c | ||
48 | */ | ||
49 | void spc_parse_naa_6h_vendor_specific(struct se_device *, unsigned char *); | ||
50 | |||
46 | extern struct kmem_cache *t10_pr_reg_cache; | 51 | extern struct kmem_cache *t10_pr_reg_cache; |
47 | 52 | ||
48 | extern void core_pr_dump_initiator_port(struct t10_pr_registration *, | 53 | extern void core_pr_dump_initiator_port(struct t10_pr_registration *, |
diff --git a/drivers/target/target_core_xcopy.c b/drivers/target/target_core_xcopy.c index 6b88a9958f61..669c536fd959 100644 --- a/drivers/target/target_core_xcopy.c +++ b/drivers/target/target_core_xcopy.c | |||
@@ -40,10 +40,6 @@ | |||
40 | 40 | ||
41 | static struct workqueue_struct *xcopy_wq = NULL; | 41 | static struct workqueue_struct *xcopy_wq = NULL; |
42 | /* | 42 | /* |
43 | * From target_core_spc.c | ||
44 | */ | ||
45 | extern void spc_parse_naa_6h_vendor_specific(struct se_device *, unsigned char *); | ||
46 | /* | ||
47 | * From target_core_device.c | 43 | * From target_core_device.c |
48 | */ | 44 | */ |
49 | extern struct mutex g_device_mutex; | 45 | extern struct mutex g_device_mutex; |