Skip to content

Commit

Permalink
target: consolidate version defines
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Christoph Hellwig authored and Nicholas Bellinger committed Jun 23, 2015
1 parent b753d64 commit ce8dd25
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions drivers/target/target_core_configfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static ssize_t target_core_attr_show(struct config_item *item,
char *page)
{
return sprintf(page, "Target Engine Core ConfigFS Infrastructure %s"
" on %s/%s on "UTS_RELEASE"\n", TARGET_CORE_CONFIGFS_VERSION,
" on %s/%s on "UTS_RELEASE"\n", TARGET_CORE_VERSION,
utsname()->sysname, utsname()->machine);
}

Expand Down Expand Up @@ -3235,7 +3235,7 @@ static ssize_t target_core_hba_show_attr_hba_info(
{
return sprintf(page, "HBA Index: %d plugin: %s version: %s\n",
hba->hba_id, hba->backend->ops->name,
TARGET_CORE_CONFIGFS_VERSION);
TARGET_CORE_VERSION);
}

SE_HBA_ATTR_RO(hba_info);
Expand Down Expand Up @@ -3507,7 +3507,7 @@ static int __init target_core_init_configfs(void)
goto out_global;
}
pr_debug("TARGET_CORE[0]: Initialized ConfigFS Fabric"
" Infrastructure: "TARGET_CORE_CONFIGFS_VERSION" on %s/%s"
" Infrastructure: "TARGET_CORE_VERSION" on %s/%s"
" on "UTS_RELEASE"\n", utsname()->sysname, utsname()->machine);
/*
* Register built-in RAMDISK subsystem logic for virtual LUN 0
Expand Down
2 changes: 1 addition & 1 deletion drivers/target/target_core_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int fd_attach_hba(struct se_hba *hba, u32 host_id)

pr_debug("CORE_HBA[%d] - TCM FILEIO HBA Driver %s on Generic"
" Target Core Stack %s\n", hba->hba_id, FD_VERSION,
TARGET_CORE_MOD_VERSION);
TARGET_CORE_VERSION);
pr_debug("CORE_HBA[%d] - Attached FILEIO HBA: %u to Generic\n",
hba->hba_id, fd_host->fd_host_id);

Expand Down
2 changes: 1 addition & 1 deletion drivers/target/target_core_iblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static int iblock_attach_hba(struct se_hba *hba, u32 host_id)
{
pr_debug("CORE_HBA[%d] - TCM iBlock HBA Driver %s on"
" Generic Target Core Stack %s\n", hba->hba_id,
IBLOCK_VERSION, TARGET_CORE_MOD_VERSION);
IBLOCK_VERSION, TARGET_CORE_VERSION);
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/target/target_core_pscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int pscsi_attach_hba(struct se_hba *hba, u32 host_id)

pr_debug("CORE_HBA[%d] - TCM SCSI HBA Driver %s on"
" Generic Target Core Stack %s\n", hba->hba_id,
PSCSI_VERSION, TARGET_CORE_MOD_VERSION);
PSCSI_VERSION, TARGET_CORE_VERSION);
pr_debug("CORE_HBA[%d] - Attached SCSI HBA to Generic\n",
hba->hba_id);

Expand Down
2 changes: 1 addition & 1 deletion drivers/target/target_core_rd.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static int rd_attach_hba(struct se_hba *hba, u32 host_id)

pr_debug("CORE_HBA[%d] - TCM Ramdisk HBA Driver %s on"
" Generic Target Core Stack %s\n", hba->hba_id,
RD_HBA_VERSION, TARGET_CORE_MOD_VERSION);
RD_HBA_VERSION, TARGET_CORE_VERSION);

return 0;
}
Expand Down
3 changes: 1 addition & 2 deletions include/target/target_core_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
#include <net/sock.h>
#include <net/tcp.h>

#define TARGET_CORE_MOD_VERSION "v4.1.0"
#define TARGET_CORE_VERSION TARGET_CORE_MOD_VERSION
#define TARGET_CORE_VERSION "v4.1.0"

/*
* By default we use 32-byte CDBs in TCM Core and subsystem plugin code.
Expand Down
1 change: 0 additions & 1 deletion include/target/target_core_configfs.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define TARGET_CORE_CONFIGFS_VERSION TARGET_CORE_MOD_VERSION

#define TARGET_CORE_CONFIG_ROOT "/sys/kernel/config"

Expand Down

0 comments on commit ce8dd25

Please sign in to comment.