diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-11-07 10:54:28 +0100 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 16:58:05 +0100 |
commit | 376694a0543f5da194d9c6e102cfcd023ffac949 (patch) | |
tree | 6c470c16923152a64c76539b9889a4f8ee2a4a2f /drivers/block/drbd/drbd_req.c | |
parent | 9bcd2521827bb7c418a83a77474c449d6496d55c (diff) | |
download | lwn-376694a0543f5da194d9c6e102cfcd023ffac949.tar.gz lwn-376694a0543f5da194d9c6e102cfcd023ffac949.zip |
drbd: Silenced compiler warnings
Since version 4.6.1 gcc warns about variables that get
a value assigned, but which are never read later on.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_req.c')
-rw-r--r-- | drivers/block/drbd/drbd_req.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index d61309db14a2..42bdf36cef18 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c @@ -39,6 +39,8 @@ static void _drbd_start_io_acct(struct drbd_conf *mdev, struct drbd_request *req cpu = part_stat_lock(); part_stat_inc(cpu, &mdev->vdisk->part0, ios[rw]); part_stat_add(cpu, &mdev->vdisk->part0, sectors[rw], bio_sectors(bio)); + (void) cpu; /* The macro invocations above want the cpu argument, I do not like + the compiler warning about cpu only assigned but never used... */ part_inc_in_flight(&mdev->vdisk->part0, rw); part_stat_unlock(); } |