diff options
author | Christoph Hellwig <hch@lst.de> | 2015-06-19 09:14:39 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-06-23 03:43:48 -0400 |
commit | ce8dd25d0ebb1d868802e1d1c770f27f2249fae4 (patch) | |
tree | cf69a72fb9f19681e0e2b72ae49b89ab4c044a75 | |
parent | b753d643555e548163adfa2de9d75e0257e4b356 (diff) |
target: consolidate version defines
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/target/target_core_configfs.c | 6 | ||||
-rw-r--r-- | drivers/target/target_core_file.c | 2 | ||||
-rw-r--r-- | drivers/target/target_core_iblock.c | 2 | ||||
-rw-r--r-- | drivers/target/target_core_pscsi.c | 2 | ||||
-rw-r--r-- | drivers/target/target_core_rd.c | 2 | ||||
-rw-r--r-- | include/target/target_core_base.h | 3 | ||||
-rw-r--r-- | include/target/target_core_configfs.h | 1 |
7 files changed, 8 insertions, 10 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 68addbc7eb7b..6003921a1c56 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c | |||
@@ -103,7 +103,7 @@ static ssize_t target_core_attr_show(struct config_item *item, | |||
103 | char *page) | 103 | char *page) |
104 | { | 104 | { |
105 | return sprintf(page, "Target Engine Core ConfigFS Infrastructure %s" | 105 | return sprintf(page, "Target Engine Core ConfigFS Infrastructure %s" |
106 | " on %s/%s on "UTS_RELEASE"\n", TARGET_CORE_CONFIGFS_VERSION, | 106 | " on %s/%s on "UTS_RELEASE"\n", TARGET_CORE_VERSION, |
107 | utsname()->sysname, utsname()->machine); | 107 | utsname()->sysname, utsname()->machine); |
108 | } | 108 | } |
109 | 109 | ||
@@ -3235,7 +3235,7 @@ static ssize_t target_core_hba_show_attr_hba_info( | |||
3235 | { | 3235 | { |
3236 | return sprintf(page, "HBA Index: %d plugin: %s version: %s\n", | 3236 | return sprintf(page, "HBA Index: %d plugin: %s version: %s\n", |
3237 | hba->hba_id, hba->backend->ops->name, | 3237 | hba->hba_id, hba->backend->ops->name, |
3238 | TARGET_CORE_CONFIGFS_VERSION); | 3238 | TARGET_CORE_VERSION); |
3239 | } | 3239 | } |
3240 | 3240 | ||
3241 | SE_HBA_ATTR_RO(hba_info); | 3241 | SE_HBA_ATTR_RO(hba_info); |
@@ -3507,7 +3507,7 @@ static int __init target_core_init_configfs(void) | |||
3507 | goto out_global; | 3507 | goto out_global; |
3508 | } | 3508 | } |
3509 | pr_debug("TARGET_CORE[0]: Initialized ConfigFS Fabric" | 3509 | pr_debug("TARGET_CORE[0]: Initialized ConfigFS Fabric" |
3510 | " Infrastructure: "TARGET_CORE_CONFIGFS_VERSION" on %s/%s" | 3510 | " Infrastructure: "TARGET_CORE_VERSION" on %s/%s" |
3511 | " on "UTS_RELEASE"\n", utsname()->sysname, utsname()->machine); | 3511 | " on "UTS_RELEASE"\n", utsname()->sysname, utsname()->machine); |
3512 | /* | 3512 | /* |
3513 | * Register built-in RAMDISK subsystem logic for virtual LUN 0 | 3513 | * Register built-in RAMDISK subsystem logic for virtual LUN 0 |
diff --git a/drivers/target/target_core_file.c b/drivers/target/target_core_file.c index f5da2c1891b5..7a0ef95b1407 100644 --- a/drivers/target/target_core_file.c +++ b/drivers/target/target_core_file.c | |||
@@ -61,7 +61,7 @@ static int fd_attach_hba(struct se_hba *hba, u32 host_id) | |||
61 | 61 | ||
62 | pr_debug("CORE_HBA[%d] - TCM FILEIO HBA Driver %s on Generic" | 62 | pr_debug("CORE_HBA[%d] - TCM FILEIO HBA Driver %s on Generic" |
63 | " Target Core Stack %s\n", hba->hba_id, FD_VERSION, | 63 | " Target Core Stack %s\n", hba->hba_id, FD_VERSION, |
64 | TARGET_CORE_MOD_VERSION); | 64 | TARGET_CORE_VERSION); |
65 | pr_debug("CORE_HBA[%d] - Attached FILEIO HBA: %u to Generic\n", | 65 | pr_debug("CORE_HBA[%d] - Attached FILEIO HBA: %u to Generic\n", |
66 | hba->hba_id, fd_host->fd_host_id); | 66 | hba->hba_id, fd_host->fd_host_id); |
67 | 67 | ||
diff --git a/drivers/target/target_core_iblock.c b/drivers/target/target_core_iblock.c index a869022b136e..e37db742fdaf 100644 --- a/drivers/target/target_core_iblock.c +++ b/drivers/target/target_core_iblock.c | |||
@@ -57,7 +57,7 @@ static int iblock_attach_hba(struct se_hba *hba, u32 host_id) | |||
57 | { | 57 | { |
58 | pr_debug("CORE_HBA[%d] - TCM iBlock HBA Driver %s on" | 58 | pr_debug("CORE_HBA[%d] - TCM iBlock HBA Driver %s on" |
59 | " Generic Target Core Stack %s\n", hba->hba_id, | 59 | " Generic Target Core Stack %s\n", hba->hba_id, |
60 | IBLOCK_VERSION, TARGET_CORE_MOD_VERSION); | 60 | IBLOCK_VERSION, TARGET_CORE_VERSION); |
61 | return 0; | 61 | return 0; |
62 | } | 62 | } |
63 | 63 | ||
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c index c673980ded04..f757178ed414 100644 --- a/drivers/target/target_core_pscsi.c +++ b/drivers/target/target_core_pscsi.c | |||
@@ -80,7 +80,7 @@ static int pscsi_attach_hba(struct se_hba *hba, u32 host_id) | |||
80 | 80 | ||
81 | pr_debug("CORE_HBA[%d] - TCM SCSI HBA Driver %s on" | 81 | pr_debug("CORE_HBA[%d] - TCM SCSI HBA Driver %s on" |
82 | " Generic Target Core Stack %s\n", hba->hba_id, | 82 | " Generic Target Core Stack %s\n", hba->hba_id, |
83 | PSCSI_VERSION, TARGET_CORE_MOD_VERSION); | 83 | PSCSI_VERSION, TARGET_CORE_VERSION); |
84 | pr_debug("CORE_HBA[%d] - Attached SCSI HBA to Generic\n", | 84 | pr_debug("CORE_HBA[%d] - Attached SCSI HBA to Generic\n", |
85 | hba->hba_id); | 85 | hba->hba_id); |
86 | 86 | ||
diff --git a/drivers/target/target_core_rd.c b/drivers/target/target_core_rd.c index e98432705f39..723c97a25cbc 100644 --- a/drivers/target/target_core_rd.c +++ b/drivers/target/target_core_rd.c | |||
@@ -58,7 +58,7 @@ static int rd_attach_hba(struct se_hba *hba, u32 host_id) | |||
58 | 58 | ||
59 | pr_debug("CORE_HBA[%d] - TCM Ramdisk HBA Driver %s on" | 59 | pr_debug("CORE_HBA[%d] - TCM Ramdisk HBA Driver %s on" |
60 | " Generic Target Core Stack %s\n", hba->hba_id, | 60 | " Generic Target Core Stack %s\n", hba->hba_id, |
61 | RD_HBA_VERSION, TARGET_CORE_MOD_VERSION); | 61 | RD_HBA_VERSION, TARGET_CORE_VERSION); |
62 | 62 | ||
63 | return 0; | 63 | return 0; |
64 | } | 64 | } |
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 273818403a3e..a35303302df3 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
@@ -10,8 +10,7 @@ | |||
10 | #include <net/sock.h> | 10 | #include <net/sock.h> |
11 | #include <net/tcp.h> | 11 | #include <net/tcp.h> |
12 | 12 | ||
13 | #define TARGET_CORE_MOD_VERSION "v4.1.0" | 13 | #define TARGET_CORE_VERSION "v4.1.0" |
14 | #define TARGET_CORE_VERSION TARGET_CORE_MOD_VERSION | ||
15 | 14 | ||
16 | /* | 15 | /* |
17 | * By default we use 32-byte CDBs in TCM Core and subsystem plugin code. | 16 | * By default we use 32-byte CDBs in TCM Core and subsystem plugin code. |
diff --git a/include/target/target_core_configfs.h b/include/target/target_core_configfs.h index abd063b8b301..4012ed22d783 100644 --- a/include/target/target_core_configfs.h +++ b/include/target/target_core_configfs.h | |||
@@ -1,4 +1,3 @@ | |||
1 | #define TARGET_CORE_CONFIGFS_VERSION TARGET_CORE_MOD_VERSION | ||
2 | 1 | ||
3 | #define TARGET_CORE_CONFIG_ROOT "/sys/kernel/config" | 2 | #define TARGET_CORE_CONFIG_ROOT "/sys/kernel/config" |
4 | 3 | ||