Explorar o código

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 <jens.axboe@oracle.com>
Jens Axboe %!s(int64=18) %!d(string=hai) anos
pai
achega
023ccde109
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      include/linux/blkdev.h

+ 1 - 0
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;