diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2014-05-16 23:25:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-18 19:01:28 -0700 |
commit | 66a9df34e31673503b279a197430af704f8f749c (patch) | |
tree | f865b4884accc9163247c8db4169b1c9e6791a91 /drivers/ipack | |
parent | 347b0cf022a8da1b4517acc7ea310a27ca2cf7ef (diff) | |
download | op-kernel-dev-66a9df34e31673503b279a197430af704f8f749c.zip op-kernel-dev-66a9df34e31673503b279a197430af704f8f749c.tar.gz |
sparc64: remove cast from output constraints in math asm statements
The following asm statements generated a sparse warning:
asm("addcc \n\t" : "=r" (((USItype)(r2)))
warning: asm output is not an lvalue
When asking on the sparse mailing list Linus replyed:
"
Those casts to (USItype) are all pointless to begin with (since the
values are of that type already!) and they mean that the expression
isn't something you can assign to (lvalue).
"
In the math emulation code drop all casts in the output
parts of the asm statements.
This fixes a lot of "warning: asm output is not an lvalue" sparse
warnings in math_64.c.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ipack')
0 files changed, 0 insertions, 0 deletions