Skip to content

Commit

Permalink
block: fix warning on compile with CONFIG_BLOCK
Browse files Browse the repository at this point in the history
struct io_context was not defined, just add an empty forward decl.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Jan 29, 2008
1 parent d6d4819 commit 023ccde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 023ccde

Please sign in to comment.