summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndreas Noever <andreas.noever@gmail.com>2014-06-20 21:42:24 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-20 13:06:01 -0700
commite7120778a4518a1c8f188ef9865058f7f5a36919 (patch)
tree86a586cfd8c2842f67b20ed3b058abfe9bf8cd53 /drivers
parent7f2d5f7bc529114c2e67520427be6ebac694e78f (diff)
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')
-rw-r--r--drivers/thunderbolt/eeprom.c3
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,
};