Skip to content

Commit

Permalink
PCI: make bitfield unsigned
Browse files Browse the repository at this point in the history
Fix sparse warning:

drivers/pci/pci.h:247:25: error: dubious one-bit signed bitfield

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
CC: linux-pci@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Bill Pemberton authored and Jiri Kosina committed May 11, 2010
1 parent 8ac97b7 commit 8356dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ struct pci_ats {
int stu; /* Smallest Translation Unit */
int qdep; /* Invalidate Queue Depth */
int ref_cnt; /* Physical Function reference count */
int is_enabled:1; /* Enable bit is set */
unsigned int is_enabled:1; /* Enable bit is set */
};

#ifdef CONFIG_PCI_IOV
Expand Down

0 comments on commit 8356dda

Please sign in to comment.