struct scsi_device uses a 1-bit signed bitfield
1-bit wide bitfields can be very useful, however when they are signed things get a bit murky - are the values represented 0 and 1 or 0 and -1? Some static analysis tools warn about this.
Updated by Electric Monk about 5 years ago
- % Done changed from 80 to 100
- Status changed from New to Closed
commit e6e1c9deb3babfde63f6fe6096a2eb3214c8f7df Author: Josef 'Jeff' Sipek <email@example.com> Date: 2015-08-23T16:05:43.000Z 6131 struct scsi_device uses a 1-bit signed bitfield Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>