瀏覽代碼

[SCSI] zfcp: Fix cast warning

Fix leftover from last typecast patch:

drivers/s390/scsi/zfcp_aux.c: In function ‘zfcp_port_enqueue’:
drivers/s390/scsi/zfcp_aux.c:629: warning: format ‘%016llx’ expects
type ‘long long unsigned int’, but argument 3 has type ‘u64’

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Christof Schmitt 16 年之前
父節點
當前提交
adc90daffb
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/s390/scsi/zfcp_aux.c

+ 2 - 1
drivers/s390/scsi/zfcp_aux.c

@@ -610,7 +610,8 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,
 	atomic_set_mask(status | ZFCP_STATUS_COMMON_REMOVE, &port->status);
 	atomic_set_mask(status | ZFCP_STATUS_COMMON_REMOVE, &port->status);
 	atomic_set(&port->refcount, 0);
 	atomic_set(&port->refcount, 0);
 
 
-	dev_set_name(&port->sysfs_device, "0x%016llx", wwpn);
+	dev_set_name(&port->sysfs_device, "0x%016llx",
+		     (unsigned long long)wwpn);
 	port->sysfs_device.parent = &adapter->ccw_device->dev;
 	port->sysfs_device.parent = &adapter->ccw_device->dev;
 
 
 	port->sysfs_device.release = zfcp_sysfs_port_release;
 	port->sysfs_device.release = zfcp_sysfs_port_release;