Skip to content

Commit de75d60

Browse files
author
Jens Axboe
committed
block: make sure that REQ_* types are seen even with CONFIG_BLOCK=n
These form the basis of the basic WRITE etc primitives, so we need them to be always visible. Otherwise we see errors like: mm/filemap.c:2164: error: 'REQ_WRITE' undeclared fs/read_write.c:362: error: 'REQ_WRITE' undeclared fs/splice.c:1108: error: 'REQ_WRITE' undeclared fs/aio.c:1496: error: 'REQ_WRITE' undeclared Reported-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent a4cc14e commit de75d60

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎include/linux/blk_types.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ struct bio {
108108
#define BIO_POOL_MASK (1UL << BIO_POOL_OFFSET)
109109
#define BIO_POOL_IDX(bio) ((bio)->bi_flags >> BIO_POOL_OFFSET)
110110

111+
#endif /* CONFIG_BLOCK */
112+
111113
/*
112114
* Request flags. For use in the cmd_flags field of struct request, and in
113115
* bi_rw of struct bio. Note that some flags are only valid in either one.
@@ -189,5 +191,4 @@ enum rq_flag_bits {
189191
#define REQ_IO_STAT (1 << __REQ_IO_STAT)
190192
#define REQ_MIXED_MERGE (1 << __REQ_MIXED_MERGE)
191193

192-
#endif /* CONFIG_BLOCK */
193194
#endif /* __LINUX_BLK_TYPES_H */

0 commit comments

Comments
 (0)