]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
thunderbolt: Make enum tb_drom_entry_type unsigned
authorAndreas Noever <andreas.noever@gmail.com>
Fri, 20 Jun 2014 19:42:24 +0000 (21:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 20:06:01 +0000 (13:06 -0700)
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>
drivers/thunderbolt/eeprom.c

index b133f3fdaf51d618472d2cc0a952eba051cd828b..71f719b6711517e65680da104b9ff63b648ebca7 100644 (file)
@@ -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,
 };