summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/eeprom.c
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 22:06:01 +0200
commite7120778a4518a1c8f188ef9865058f7f5a36919 (patch)
tree86a586cfd8c2842f67b20ed3b058abfe9bf8cd53 /drivers/thunderbolt/eeprom.c
parentthunderbolt: Fix header declaration of tb_find_cap (diff)
downloadlinux-e7120778a4518a1c8f188ef9865058f7f5a36919.tar.xz
linux-e7120778a4518a1c8f188ef9865058f7f5a36919.zip
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.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,
};