mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
thunderbolt: Make enum tb_drom_entry_type unsigned
Force enum tb_drom_entry_type to unsigned to fix the following error: drivers/thunderbolt/eeprom.c:202:39: error: dubious one-bit signed bitfield Signed-off-by: Andreas Noever <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
7f2d5f7bc5
commit
e7120778a4
1 changed files with 2 additions and 1 deletions
|
|
@ -191,7 +191,8 @@ struct tb_drom_header {
|
|||
} __packed;
|
||||
|
||||
enum tb_drom_entry_type {
|
||||
TB_DROM_ENTRY_GENERIC,
|
||||
/* force unsigned to prevent "one-bit signed bitfield" warning */
|
||||
TB_DROM_ENTRY_GENERIC = 0U,
|
||||
TB_DROM_ENTRY_PORT,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue