diff options
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 9 | ||||
-rw-r--r-- | include/scsi/scsi_transport_iscsi.h | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index f9e45f83e467..4a803ebaf508 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c | |||
@@ -138,7 +138,7 @@ static ssize_t | |||
138 | show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) | 138 | show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) |
139 | { | 139 | { |
140 | struct iscsi_endpoint *ep = iscsi_dev_to_endpoint(dev); | 140 | struct iscsi_endpoint *ep = iscsi_dev_to_endpoint(dev); |
141 | return sprintf(buf, "%u\n", ep->id); | 141 | return sprintf(buf, "%llu\n", (unsigned long long) ep->id); |
142 | } | 142 | } |
143 | static ISCSI_ATTR(ep, handle, S_IRUGO, show_ep_handle, NULL); | 143 | static ISCSI_ATTR(ep, handle, S_IRUGO, show_ep_handle, NULL); |
144 | 144 | ||
@@ -156,7 +156,7 @@ static struct attribute_group iscsi_endpoint_group = { | |||
156 | static int iscsi_match_epid(struct device *dev, void *data) | 156 | static int iscsi_match_epid(struct device *dev, void *data) |
157 | { | 157 | { |
158 | struct iscsi_endpoint *ep = iscsi_dev_to_endpoint(dev); | 158 | struct iscsi_endpoint *ep = iscsi_dev_to_endpoint(dev); |
159 | unsigned int *epid = (unsigned int *) data; | 159 | uint64_t *epid = (uint64_t *) data; |
160 | 160 | ||
161 | return *epid == ep->id; | 161 | return *epid == ep->id; |
162 | } | 162 | } |
@@ -166,7 +166,7 @@ iscsi_create_endpoint(int dd_size) | |||
166 | { | 166 | { |
167 | struct device *dev; | 167 | struct device *dev; |
168 | struct iscsi_endpoint *ep; | 168 | struct iscsi_endpoint *ep; |
169 | unsigned int id; | 169 | uint64_t id; |
170 | int err; | 170 | int err; |
171 | 171 | ||
172 | for (id = 1; id < ISCSI_MAX_EPID; id++) { | 172 | for (id = 1; id < ISCSI_MAX_EPID; id++) { |
@@ -187,7 +187,8 @@ iscsi_create_endpoint(int dd_size) | |||
187 | 187 | ||
188 | ep->id = id; | 188 | ep->id = id; |
189 | ep->dev.class = &iscsi_endpoint_class; | 189 | ep->dev.class = &iscsi_endpoint_class; |
190 | snprintf(ep->dev.bus_id, BUS_ID_SIZE, "ep-%u", id); | 190 | snprintf(ep->dev.bus_id, BUS_ID_SIZE, "ep-%llu", |
191 | (unsigned long long) id); | ||
191 | err = device_register(&ep->dev); | 192 | err = device_register(&ep->dev); |
192 | if (err) | 193 | if (err) |
193 | goto free_ep; | 194 | goto free_ep; |
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h index 8749d4d8e244..c667cc396545 100644 --- a/include/scsi/scsi_transport_iscsi.h +++ b/include/scsi/scsi_transport_iscsi.h | |||
@@ -208,7 +208,7 @@ extern void iscsi_host_for_each_session(struct Scsi_Host *shost, | |||
208 | struct iscsi_endpoint { | 208 | struct iscsi_endpoint { |
209 | void *dd_data; /* LLD private data */ | 209 | void *dd_data; /* LLD private data */ |
210 | struct device dev; | 210 | struct device dev; |
211 | unsigned int id; | 211 | uint64_t id; |
212 | }; | 212 | }; |
213 | 213 | ||
214 | /* | 214 | /* |