diff options
author | Serge E. Hallyn <serue@us.ibm.com> | 2006-10-02 05:18:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:21 -0400 |
commit | 96b644bdec977b97a45133e5b4466ba47a7a5e65 (patch) | |
tree | 4c6d1f0d54746aa06132628379b2a0efec5e1701 /drivers/scsi/lpfc | |
parent | e9ff3990f08e9a0c2839cc22808b01732ea5b3e4 (diff) |
[PATCH] namespaces: utsname: use init_utsname when appropriate
In some places, particularly drivers and __init code, the init utsns is the
appropriate one to use. This patch replaces those with a the init_utsname
helper.
Changes: Removed several uses of init_utsname(). Hope I picked all the
right ones in net/ipv4/ipconfig.c. These are now changed to
utsname() (the per-process namespace utsname) in the previous
patch (2/7)
[akpm@osdl.org: CIFS fix]
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Andrey Savochkin <saw@sw.ru>
Cc: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_ct.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c index ae4106458991..1b53afb1cb57 100644 --- a/drivers/scsi/lpfc/lpfc_ct.c +++ b/drivers/scsi/lpfc/lpfc_ct.c | |||
@@ -933,8 +933,8 @@ lpfc_fdmi_cmd(struct lpfc_hba * phba, struct lpfc_nodelist * ndlp, int cmdcode) | |||
933 | ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size); | 933 | ae = (ATTRIBUTE_ENTRY *) ((uint8_t *) rh + size); |
934 | ae->ad.bits.AttrType = be16_to_cpu(OS_NAME_VERSION); | 934 | ae->ad.bits.AttrType = be16_to_cpu(OS_NAME_VERSION); |
935 | sprintf(ae->un.OsNameVersion, "%s %s %s", | 935 | sprintf(ae->un.OsNameVersion, "%s %s %s", |
936 | system_utsname.sysname, system_utsname.release, | 936 | init_utsname()->sysname, init_utsname()->release, |
937 | system_utsname.version); | 937 | init_utsname()->version); |
938 | len = strlen(ae->un.OsNameVersion); | 938 | len = strlen(ae->un.OsNameVersion); |
939 | len += (len & 3) ? (4 - (len & 3)) : 4; | 939 | len += (len & 3) ? (4 - (len & 3)) : 4; |
940 | ae->ad.bits.AttrLen = be16_to_cpu(FOURBYTES + len); | 940 | ae->ad.bits.AttrLen = be16_to_cpu(FOURBYTES + len); |
@@ -1052,7 +1052,7 @@ lpfc_fdmi_cmd(struct lpfc_hba * phba, struct lpfc_nodelist * ndlp, int cmdcode) | |||
1052 | size); | 1052 | size); |
1053 | ae->ad.bits.AttrType = be16_to_cpu(HOST_NAME); | 1053 | ae->ad.bits.AttrType = be16_to_cpu(HOST_NAME); |
1054 | sprintf(ae->un.HostName, "%s", | 1054 | sprintf(ae->un.HostName, "%s", |
1055 | system_utsname.nodename); | 1055 | init_utsname()->nodename); |
1056 | len = strlen(ae->un.HostName); | 1056 | len = strlen(ae->un.HostName); |
1057 | len += (len & 3) ? (4 - (len & 3)) : 4; | 1057 | len += (len & 3) ? (4 - (len & 3)) : 4; |
1058 | ae->ad.bits.AttrLen = | 1058 | ae->ad.bits.AttrLen = |
@@ -1140,7 +1140,7 @@ lpfc_fdmi_tmo_handler(struct lpfc_hba *phba) | |||
1140 | 1140 | ||
1141 | ndlp = lpfc_findnode_did(phba, NLP_SEARCH_ALL, FDMI_DID); | 1141 | ndlp = lpfc_findnode_did(phba, NLP_SEARCH_ALL, FDMI_DID); |
1142 | if (ndlp) { | 1142 | if (ndlp) { |
1143 | if (system_utsname.nodename[0] != '\0') { | 1143 | if (init_utsname()->nodename[0] != '\0') { |
1144 | lpfc_fdmi_cmd(phba, ndlp, SLI_MGMT_DHBA); | 1144 | lpfc_fdmi_cmd(phba, ndlp, SLI_MGMT_DHBA); |
1145 | } else { | 1145 | } else { |
1146 | mod_timer(&phba->fc_fdmitmo, jiffies + HZ * 60); | 1146 | mod_timer(&phba->fc_fdmitmo, jiffies + HZ * 60); |