Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rashika Kheria and committed by
Nicholas Bellinger
8a0bedd3 229d4f11

+5 -4
+5
drivers/target/target_core_pr.h
··· 43 43 #define PR_APTPL_MAX_IPORT_LEN 256 44 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 51 extern struct kmem_cache *t10_pr_reg_cache; 47 52 48 53 extern void core_pr_dump_initiator_port(struct t10_pr_registration *,
-4
drivers/target/target_core_xcopy.c
··· 40 40 41 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 43 * From target_core_device.c 48 44 */ 49 45 extern struct mutex g_device_mutex;