Improve static type checking by using the new blk_opf_t type for a function argument that represents a combination of a request operation and request flags. Rename that argument from 'op' into 'opf' to make its role more clear.
Showing the changes to include/linux/blktrace_api.h (1 of 2 files). Show all
Unified · Split
| @@ -7,6 +7,7 @@ · 6 unmodified lines | ||
| 7 | 7 | #include <linux/compat.h> |
| 8 | 8 | #include <uapi/linux/blktrace_api.h> |
| 9 | 9 | #include <linux/list.h> |
| 10 | +#include <linux/blk_types.h> | |
| 10 | 11 | |
| 11 | 12 | #if defined(CONFIG_BLK_DEV_IO_TRACE) |
| 12 | 13 | |
| @@ -105,7 +106,7 @@ struct compat_blk_user_trace_setup { · 92 unmodified lines | ||
| 105 | 106 | |
| 106 | 107 | #endif |
| 107 | 108 | |
| 108 | −void blk_fill_rwbs(char *rwbs, unsigned int op); | |
| 109 | +void blk_fill_rwbs(char *rwbs, blk_opf_t opf); | |
| 109 | 110 | |
| 110 | 111 | static inline sector_t blk_rq_trace_sector(struct request *rq) |
| 111 | 112 | { |