On 6/4/24 16:04, Al Viro wrote:
On Tue, Jun 04, 2024 at 03:52:27PM -0600, Bart Van Assche wrote:
From: Christoph Hellwig <hch@xxxxxx>
Make it again possible for sparse to verify that blk_status_t and Unix
error codes are used in the proper context by making nbd_send_cmd()
return a struct instead of an integer.
Not in this version of patch:
-static int nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd, int index)
+static blk_status_t nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd,
+ int index)
include/linux/blk_types.h:93:typedef u8 __bitwise blk_status_t;
Thanks for the quick feedback. I will fix the patch description and repost.
Bart.