diff options
author | John Garry <[email protected]> | 2022-06-29 17:18:44 +0800 |
---|---|---|
committer | Damien Le Moal <[email protected]> | 2022-06-30 08:21:43 +0900 |
commit | 32788beb103f7f71e0192dce701f387070914651 (patch) | |
tree | 30196eac18391806d818e508ccaf80857de85544 /lib/mpi/mpi-mod.c | |
parent | 540a92bfe6dab7310b9df2e488ba247d784d0163 (diff) |
ata: pata_cs5535: Fix W=1 warnings
x86_64 allmodconfig build with W=1 gives these warnings:
drivers/ata/pata_cs5535.c: In function ‘cs5535_set_piomode’:
drivers/ata/pata_cs5535.c:93:11: error: variable ‘dummy’ set but not
used [-Werror=unused-but-set-variable]
u32 reg, dummy;
^~~~~
drivers/ata/pata_cs5535.c: In function ‘cs5535_set_dmamode’:
drivers/ata/pata_cs5535.c:132:11: error: variable ‘dummy’ set but not
used [-Werror=unused-but-set-variable]
u32 reg, dummy;
^~~~~
cc1: all warnings being treated as errors
Mark variables 'dummy' as "maybe unused" as they are only ever written
in rdmsr() calls.
Signed-off-by: John Garry <[email protected]>
Reviewed-by: Sergey Shtylyov <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions