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
- Status changed from New to Closed
- % Done changed from 80 to 100
commit e6e1c9deb3babfde63f6fe6096a2eb3214c8f7df Author: Josef 'Jeff' Sipek <firstname.lastname@example.org> Date: 2015-08-23T16:05:43.000Z 6131 struct scsi_device uses a 1-bit signed bitfield Reviewed by: Dan McDonald <email@example.com> Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>