aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas/sas_task.c
diff options
context:
space:
mode:
authorFrederik Deweerdt <[email protected]>2008-01-16 16:19:08 +0000
committerJames Bottomley <[email protected]>2008-01-25 17:09:10 +0000
commit1292500b159c00a8fece072b004f154e6fda9f48 (patch)
tree2b959a18518c0f54369b339f384770ffbca0174c /drivers/scsi/libsas/sas_task.c
parent[SCSI] aic7xxx: fix firmware build (diff)
downloadkernel-1292500b159c00a8fece072b004f154e6fda9f48.tar.gz
kernel-1292500b159c00a8fece072b004f154e6fda9f48.zip
[SCSI] ultrastor: clean up inline asm warnings
To: [email protected] Cc: [email protected] Subject: [trivial patch] scsi/ultrastor: clean up inline asm warnings Hi, Compiling latest mainline with gcc 4.2.1 spews the following warnings: drivers/scsi/ultrastor.c: In function 'find_and_clear_bit_16': drivers/scsi/ultrastor.c:303: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:302: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c: At top level: drivers/scsi/ultrastor.c:1202: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:1202: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c: In function 'ultrastor_queuecommand': drivers/scsi/ultrastor.c:698: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:698: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:698: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:698: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:698: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:698: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:698: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:302: warning: matching constraint does not allow a register drivers/scsi/ultrastor.c:302: warning: matching constraint does not allow a register The following patch fixes it by using the '+' operator on the (*field) operand, marking it as read-write to gcc. I diffed the two resulting .s, and gcc produced the same code. This was tested with gcc 4.2.1 and gcc 3.4.3 Signed-off-by: Frederik Deweerdt <[email protected]> Cc: Adrian Bunk <[email protected]> Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_task.c')
0 files changed, 0 insertions, 0 deletions