]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3bbe6807272fde800cf5eac658d99553b493ed02
tree546afbf10890fe0218ddfe93b93097454953569b
parent6da8efc21f2e34e52b3d0f5626d07b6b6576948b
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