diff options
author | Arnd Bergmann <[email protected]> | 2014-06-26 15:44:52 +0200 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2014-07-25 17:17:00 -0400 |
commit | 0b9e7b741f2bf8103b15bb14d5b4a6f5ee91c59a (patch) | |
tree | ef0e5781cbc2728f0c1c57bd9d8ee56d5ebee0b3 /fs/jbd2/commit.c | |
parent | 6aa4c361bf8b1f08b34fb6c581db352d7f7cff46 (diff) |
hpsa: fix non-x86 builds
commit 28e134464734 "[SCSI] hpsa: enable unit attention reporting"
turns on unit attention notifications, but got the change wrong for
all architectures other than x86, which now store an uninitialized
value into the device register.
Gcc helpfully warns about this:
../drivers/scsi/hpsa.c: In function 'hpsa_set_driver_support_bits':
../drivers/scsi/hpsa.c:6373:17: warning: 'driver_support' is used uninitialized in this function [-Wuninitialized]
driver_support |= ENABLE_UNIT_ATTN;
^
This moves the #ifdef so only the prefetch-enable is conditional
on x86, not also reading the initial register contents.
Signed-off-by: Arnd Bergmann <[email protected]>
Fixes: 28e134464734 "[SCSI] hpsa: enable unit attention reporting"
Cc: [email protected] # v3.14+
Acked-by: Stephen M. Cameron <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions