提交 8356dda2 编写于 作者: B Bill Pemberton 提交者: Jiri Kosina

PCI: make bitfield unsigned

Fix sparse warning:

drivers/pci/pci.h:247:25: error: dubious one-bit signed bitfield
Signed-off-by: NBill Pemberton <wfp5p@virginia.edu>
CC: linux-pci@vger.kernel.org
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 8ac97b74
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册