Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: make bitfield unsigned

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>

authored by

Bill Pemberton and committed by
Jiri Kosina
8356dda2 8ac97b74

+1 -1
+1 -1
drivers/pci/pci.h
··· 244 244 int stu; /* Smallest Translation Unit */ 245 245 int qdep; /* Invalidate Queue Depth */ 246 246 int ref_cnt; /* Physical Function reference count */ 247 - int is_enabled:1; /* Enable bit is set */ 247 + unsigned int is_enabled:1; /* Enable bit is set */ 248 248 }; 249 249 250 250 #ifdef CONFIG_PCI_IOV