From: Andreas Noever Date: Fri, 20 Jun 2014 19:42:24 +0000 (+0200) Subject: thunderbolt: Make enum tb_drom_entry_type unsigned X-Git-Tag: firefly_0821_release~176^2~3493^2~68 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e7120778a4518a1c8f188ef9865058f7f5a36919;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Greg Kroah-Hartman --- 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, };