提交 49541a04 编写于 作者: J Johannes Berg 提交者: Martin K. Petersen

scsi: qla2xxx: don't include <generated/utsrelease.h>

There's no need to use the static UTS_RELEASE string, since
utsname()->release contains the same.

This avoids rebuilding this file for every change of the release string.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 d821bbda
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <generated/utsrelease.h>
#include <linux/utsname.h> #include <linux/utsname.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -1883,9 +1882,9 @@ static ssize_t tcm_qla2xxx_wwn_version_show(struct config_item *item, ...@@ -1883,9 +1882,9 @@ static ssize_t tcm_qla2xxx_wwn_version_show(struct config_item *item,
char *page) char *page)
{ {
return sprintf(page, return sprintf(page,
"TCM QLOGIC QLA2XXX NPIV capable fabric module %s on %s/%s on " "TCM QLOGIC QLA2XXX NPIV capable fabric module %s on %s/%s on %s\n",
UTS_RELEASE"\n", QLA2XXX_VERSION, utsname()->sysname, QLA2XXX_VERSION, utsname()->sysname,
utsname()->machine); utsname()->machine, utsname()->release);
} }
CONFIGFS_ATTR_RO(tcm_qla2xxx_wwn_, version); CONFIGFS_ATTR_RO(tcm_qla2xxx_wwn_, version);
...@@ -1989,9 +1988,9 @@ static int tcm_qla2xxx_register_configfs(void) ...@@ -1989,9 +1988,9 @@ static int tcm_qla2xxx_register_configfs(void)
{ {
int ret; int ret;
pr_debug("TCM QLOGIC QLA2XXX fabric module %s on %s/%s on " pr_debug("TCM QLOGIC QLA2XXX fabric module %s on %s/%s on %s\n",
UTS_RELEASE"\n", QLA2XXX_VERSION, utsname()->sysname, QLA2XXX_VERSION, utsname()->sysname,
utsname()->machine); utsname()->machine, utsname()->release);
ret = target_register_template(&tcm_qla2xxx_ops); ret = target_register_template(&tcm_qla2xxx_ops);
if (ret) if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册