Re: [PATCH v2] nbd: Remove __force casts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.






[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux