]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/eadm: fix CONFIG_BLOCK include dependency
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 23 Jan 2018 12:58:05 +0000 (13:58 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 2 Feb 2018 09:47:14 +0000 (10:47 +0100)
commit366b77ae43c5a3bf1a367f15ec8bc16e05035f14
tree28182db649e8f28f1a37b562fd102f270e0315e9
parent4bf772b14675411a69b3c807f73006de0fe4b649
s390/eadm: fix CONFIG_BLOCK include dependency

Commit 2a842acab109 ("block: introduce new block status code type")
added blk_status_t usage to the eadm subchannel driver. However
blk_status_t is unknown when included via <linux/blkdev.h> for CONFIG_BLOCK=n.

Only include <linux/blk_types.h> since this is the only dependency eadm has.

This fixes build failures like below:
In file included from drivers/s390/cio/eadm_sch.c:24:0:
./arch/s390/include/asm/eadm.h:111:4: error: unknown type name 'blk_status_t'; did you mean 'si_status'?
    blk_status_t error);

Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/eadm.h