diff options
author | Andrew Morton <akpm@osdl.org> | 2004-08-16 04:31:46 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2004-08-16 04:31:46 -0400 |
commit | 72d7a03677c9b647b1b503b68356267c7a3504cf (patch) | |
tree | a982a8fdda7539bfbea2f94f54c9643c6aa2e477 /drivers | |
parent | 815b472b87a7074bb171213aedd4c6c439e6b18d (diff) | |
download | history-72d7a03677c9b647b1b503b68356267c7a3504cf.tar.gz |
[PATCH] libata build fix
drivers/scsi/libata-core.c: In function `swap_buf_le16':
drivers/scsi/libata-core.c:2073: `words' undeclared (first use in this function)
drivers/scsi/libata-core.c:2073: (Each undeclared identifier is reported only once
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index f187640cd94a82..e9891d77e721a9 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -2070,7 +2070,7 @@ void swap_buf_le16(u16 *buf, unsigned int buf_words) #ifdef __BIG_ENDIAN unsigned int i; - for (i = 0; i < words; i++) + for (i = 0; i < buf_words; i++) buf[i] = le16_to_cpu(buf[i]); #endif /* __BIG_ENDIAN */ } |