diff options
author | Andreas Noever <andreas.noever@gmail.com> | 2014-06-20 23:42:24 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-21 00:06:01 +0400 |
commit | e7120778a4518a1c8f188ef9865058f7f5a36919 (patch) | |
tree | 86a586cfd8c2842f67b20ed3b058abfe9bf8cd53 /drivers/thunderbolt/eeprom.c | |
parent | 7f2d5f7bc529114c2e67520427be6ebac694e78f (diff) | |
download | linux-e7120778a4518a1c8f188ef9865058f7f5a36919.tar.xz |
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 <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/thunderbolt/eeprom.c')
-rw-r--r-- | drivers/thunderbolt/eeprom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/thunderbolt/eeprom.c b/drivers/thunderbolt/eeprom.c index b133f3fdaf51..71f719b67115 100644 --- a/drivers/thunderbolt/eeprom.c +++ b/drivers/thunderbolt/eeprom.c @@ -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, }; |