]> git.karo-electronics.de Git - linux-beck.git/commitdiff
target: move external declarations to a headers
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Mar 2015 11:27:31 +0000 (12:27 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 26 Mar 2015 21:51:53 +0000 (14:51 -0700)
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>
drivers/target/target_core_internal.h
drivers/target/target_core_xcopy.c

index 60381db9002622bd1c11e68ded07f78648e1fec2..874a9bc988d807a615a9ed7516041bfe54176c4b 100644 (file)
@@ -4,7 +4,13 @@
 /* target_core_alua.c */
 extern struct t10_alua_lu_gp *default_lu_gp;
 
+/* target_core_configfs.c */
+extern struct configfs_subsystem *target_core_subsystem[];
+
 /* target_core_device.c */
+extern struct mutex g_device_mutex;
+extern struct list_head g_device_list;
+
 struct se_dev_entry *core_get_se_deve_from_rtpi(struct se_node_acl *, u16);
 int    core_free_device_list_for_node(struct se_node_acl *,
                struct se_portal_group *);
index 33ac39bf75e5e25e58145260718568ff01dac88b..04cad3b362974aea8eb92a409e00bbd9b925b661 100644 (file)
 #include <target/target_core_fabric.h>
 #include <target/target_core_configfs.h>
 
+#include "target_core_internal.h"
 #include "target_core_pr.h"
 #include "target_core_ua.h"
 #include "target_core_xcopy.h"
 
 static struct workqueue_struct *xcopy_wq = NULL;
-/*
- * From target_core_device.c
- */
-extern struct mutex g_device_mutex;
-extern struct list_head g_device_list;
-/*
- * From target_core_configfs.c
- */
-extern struct configfs_subsystem *target_core_subsystem[];
 
 static int target_xcopy_gen_naa_ieee(struct se_device *dev, unsigned char *buf)
 {