diff options
author | John Garry <john.garry@huawei.com> | 2022-06-29 11:18:44 +0200 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-06-30 01:21:43 +0200 |
commit | 32788beb103f7f71e0192dce701f387070914651 (patch) | |
tree | 30196eac18391806d818e508ccaf80857de85544 /drivers/ata/ahci.c | |
parent | ata: libata: add qc->flags in ata_qc_complete_template tracepoint (diff) | |
download | linux-32788beb103f7f71e0192dce701f387070914651.tar.xz linux-32788beb103f7f71e0192dce701f387070914651.zip |
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 <john.garry@huawei.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/ahci.c')
0 files changed, 0 insertions, 0 deletions