diff options
author | NeilBrown <neilb@suse.de> | 2008-09-18 14:10:42 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-09-18 14:10:42 +1000 |
commit | a8473e68c7ed263c3379945977b25df075479025 (patch) | |
tree | 2be2420935bf42ad38fe3ff6a539d2f91b9d2be6 | |
parent | 295646b3d59c7d8d8c389ff320b30e61552ba331 (diff) | |
download | mdadm-a8473e68c7ed263c3379945977b25df075479025.tar.gz mdadm-a8473e68c7ed263c3379945977b25df075479025.tar.xz mdadm-a8473e68c7ed263c3379945977b25df075479025.zip |
Fix compile warning/error.
gcc said:
error: large integer implicitly truncated to unsigned type
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | super-intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index 6170587..dc302b1 100644 --- a/super-intel.c +++ b/super-intel.c @@ -2413,7 +2413,7 @@ static void imsm_set_disk(struct active_array *a, int n, int state) if ((state & DS_FAULTY) && !(status & FAILED_DISK)) { status |= FAILED_DISK; disk->status = __cpu_to_le32(status); - disk->scsi_id = __cpu_to_le32(~0UL); + disk->scsi_id = __cpu_to_le32(~(__u32)0); memmove(&disk->serial[0], &disk->serial[1], MAX_RAID_SERIAL_LEN - 1); super->updates_pending++; } |