summaryrefslogtreecommitdiff
path: root/fs/afs/rotate.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2022-06-29 12:18:44 +0300
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-06-30 02:21:43 +0300
commit32788beb103f7f71e0192dce701f387070914651 (patch)
tree30196eac18391806d818e508ccaf80857de85544 /fs/afs/rotate.c
parent540a92bfe6dab7310b9df2e488ba247d784d0163 (diff)
downloadlinux-32788beb103f7f71e0192dce701f387070914651.tar.xz
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 'fs/afs/rotate.c')
0 files changed, 0 insertions, 0 deletions