Project

General

Profile

Actions

Bug #6131

closed

struct scsi_device uses a 1-bit signed bitfield

Added by Josef Sipek about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
kernel
Start date:
2015-08-17
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

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.

Actions

Also available in: Atom PDF