Thread (8 messages) 8 messages, 3 authors, 2021-05-19

Re: [PATCH v2 2/3] Introduce enums for the SAM, message, host and driver status codes

From: Bart Van Assche <bvanassche@acm.org>
Date: 2021-05-19 15:47:09

On 5/19/21 4:23 AM, John Garry wrote:
Do we have an example of where the compiler would catch an incorrect
usage / mismatch?
If I remember correctly some time ago Hannes fixed multiple LLDs that
assigned incorrect values to scsi_cmd->result. I'd like to modify the
type of struct scsi_cmnd.result such that the compiler can verify
whether the proper enum type is assigned to each SCSI result subcomponent.

Bart.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help