PCI: make bitfield unsigned
authorBill Pemberton <wfp5p@virginia.edu>
Fri, 30 Apr 2010 13:34:28 +0000 (09:34 -0400)
committerJiri Kosina <jkosina@suse.cz>
Tue, 11 May 2010 08:07:20 +0000 (10:07 +0200)
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>
drivers/pci/pci.h

index 4eb10f4..f8077b3 100644 (file)
@@ -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