From: Jens Axboe Date: Tue, 29 Jan 2008 13:08:06 +0000 (+0100) Subject: block: fix warning on compile with CONFIG_BLOCK X-Git-Tag: firefly_0821_release~23647 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=023ccde109b995bb99862bf9c87efd006b1d1885;p=firefly-linux-kernel-4.4.55.git block: fix warning on compile with CONFIG_BLOCK struct io_context was not defined, just add an empty forward decl. Signed-off-by: Jens Axboe --- diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 71e7a847dffc..e18d4192f6e8 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -825,6 +825,7 @@ static inline void exit_io_context(void) { } +struct io_context; static inline int put_io_context(struct io_context *ioc) { return 1;