eta: Fix compiler warning
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 4 Jun 2019 07:07:32 +0000 (16:07 +0900)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Jun 2019 14:52:52 +0000 (08:52 -0600)
commitdf0ca15ce2ffac0df3e9dcf4bfe4121333c4aa27
tree93e82e90cc3364d3963c7c9b295f9aaf56c1deff
parent32e31c8c5f7b1695a85a79da02ac854899abbb39
eta: Fix compiler warning

gcc 9 complains about directly referencing pointer values in the packed
structure jobs_eta. E.g.:

warning: taking address of packed member of ‘struct jobs_eta’ may
result in an unaligned pointer value [-Waddress-of-packed-member]

Remove this by using a local void pointer for the rate and iops array
references that generate the warning.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
eta.c