On 12/12/24 8:46 PM, Christoph Hellwig wrote:
On Thu, Dec 12, 2024 at 01:29:41PM -0800, Bart Van Assche wrote:
Make queue_iostats_passthrough_show() report 0/1 in sysfs instead of 0/4.
This patch fixes the following sparse warning:
block/blk-sysfs.c:266:31: warning: incorrect type in argument 1 (different base types)
block/blk-sysfs.c:266:31: expected unsigned long var
block/blk-sysfs.c:266:31: got restricted blk_flags_t
Maybe turn blk_queue_passthrough_stat into a an inline wrapper so
that it automatically does the bool propagation and callers don't
have to bother?
Hi Christoph,
There are about 16 functions in include/linux/blkdev.h that test a
single bit in q->queue_flags or q->limits.features. Do you really want
me to convert all these macros into inline functions?
Thanks,
Bart.