OSDN Git Service

s390/dasd: fix cast-function-type warnings
authorSebastian Ott <sebott@linux.ibm.com>
Tue, 3 Jul 2018 11:06:45 +0000 (13:06 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 4 Jul 2018 06:35:59 +0000 (08:35 +0200)
commitd2f2df69885d0548ed5c0ba8fa2751497ba62352
tree546afbf10890fe0218ddfe93b93097454953569b
parent0ac942826b3d900b7054f71bb6a15428441458d2
s390/dasd: fix cast-function-type warnings

Change the tasklets parameter type to fix W=1 warnings when building
with gcc 8 like below:

drivers/s390/block/dasd.c: In function 'dasd_alloc_device':
drivers/s390/block/dasd.c:129:8: warning: cast between incompatible function types
from 'void (*)(struct dasd_device *)' to 'void (*)(long unsigned int)' [-Wcast-function-type]
        (void (*)(unsigned long)) dasd_device_tasklet,
        ^

Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Acked-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c