diff options
author | Christoph Hellwig <hch@lst.de> | 2015-03-26 07:27:31 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-03-26 17:51:53 -0400 |
commit | b13876d23a24f7fb5307183ee3314434193870af (patch) | |
tree | 652218a96397fd3830b9708fa679ee8d63ec78f2 /drivers/target | |
parent | e673dc920b805f08429e122321f8355cb97c2120 (diff) |
target: move external declarations to a headers
We should not declare extrnal .c symbols in C files to make sure they
match the actual prototype, and sparse correctly warns about this.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_internal.h | 6 | ||||
-rw-r--r-- | drivers/target/target_core_xcopy.c | 10 |
2 files changed, 7 insertions, 9 deletions
diff --git a/drivers/target/target_core_internal.h b/drivers/target/target_core_internal.h index 60381db90026..874a9bc988d8 100644 --- a/drivers/target/target_core_internal.h +++ b/drivers/target/target_core_internal.h | |||
@@ -4,7 +4,13 @@ | |||
4 | /* target_core_alua.c */ | 4 | /* target_core_alua.c */ |
5 | extern struct t10_alua_lu_gp *default_lu_gp; | 5 | extern struct t10_alua_lu_gp *default_lu_gp; |
6 | 6 | ||
7 | /* target_core_configfs.c */ | ||
8 | extern struct configfs_subsystem *target_core_subsystem[]; | ||
9 | |||
7 | /* target_core_device.c */ | 10 | /* target_core_device.c */ |
11 | extern struct mutex g_device_mutex; | ||
12 | extern struct list_head g_device_list; | ||
13 | |||
8 | struct se_dev_entry *core_get_se_deve_from_rtpi(struct se_node_acl *, u16); | 14 | struct se_dev_entry *core_get_se_deve_from_rtpi(struct se_node_acl *, u16); |
9 | int core_free_device_list_for_node(struct se_node_acl *, | 15 | int core_free_device_list_for_node(struct se_node_acl *, |
10 | struct se_portal_group *); | 16 | struct se_portal_group *); |
diff --git a/drivers/target/target_core_xcopy.c b/drivers/target/target_core_xcopy.c index 33ac39bf75e5..04cad3b36297 100644 --- a/drivers/target/target_core_xcopy.c +++ b/drivers/target/target_core_xcopy.c | |||
@@ -34,20 +34,12 @@ | |||
34 | #include <target/target_core_fabric.h> | 34 | #include <target/target_core_fabric.h> |
35 | #include <target/target_core_configfs.h> | 35 | #include <target/target_core_configfs.h> |
36 | 36 | ||
37 | #include "target_core_internal.h" | ||
37 | #include "target_core_pr.h" | 38 | #include "target_core_pr.h" |
38 | #include "target_core_ua.h" | 39 | #include "target_core_ua.h" |
39 | #include "target_core_xcopy.h" | 40 | #include "target_core_xcopy.h" |
40 | 41 | ||
41 | static struct workqueue_struct *xcopy_wq = NULL; | 42 | static struct workqueue_struct *xcopy_wq = NULL; |
42 | /* | ||
43 | * From target_core_device.c | ||
44 | */ | ||
45 | extern struct mutex g_device_mutex; | ||
46 | extern struct list_head g_device_list; | ||
47 | /* | ||
48 | * From target_core_configfs.c | ||
49 | */ | ||
50 | extern struct configfs_subsystem *target_core_subsystem[]; | ||
51 | 43 | ||
52 | static int target_xcopy_gen_naa_ieee(struct se_device *dev, unsigned char *buf) | 44 | static int target_xcopy_gen_naa_ieee(struct se_device *dev, unsigned char *buf) |
53 | { | 45 | { |