wok-next rev 20525
ipxe: add missing patches
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 23 16:22:10 2018 +0200 (2018-03-23) |
parents | 261e630323f7 |
children | f879ce3f57b0 |
files | ipxe/stuff/patches/gcc7.patch ipxe/stuff/patches/series |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipxe/stuff/patches/gcc7.patch Fri Mar 23 16:22:10 2018 +0200 1.3 @@ -0,0 +1,169 @@ 1.4 +--- a/src/drivers/net/igbvf/igbvf_vf.c 1.5 ++++ b/src/drivers/net/igbvf/igbvf_vf.c 1.6 +@@ -357,8 +357,10 @@ 1.7 + break; 1.8 + case e1000_promisc_enabled: 1.9 + msgbuf |= E1000_VF_SET_PROMISC_MULTICAST; 1.10 ++ /* FALLTHROUGH */ 1.11 + case e1000_promisc_unicast: 1.12 + msgbuf |= E1000_VF_SET_PROMISC_UNICAST; 1.13 ++ /* FALLTHROUGH */ 1.14 + case e1000_promisc_disabled: 1.15 + break; 1.16 + default: 1.17 +--- a/src/drivers/net/ath/ath5k/ath5k_desc.c 1.18 ++++ b/src/drivers/net/ath/ath5k/ath5k_desc.c 1.19 +@@ -104,8 +104,10 @@ 1.20 + case AR5K_PKT_TYPE_BEACON: 1.21 + case AR5K_PKT_TYPE_PROBE_RESP: 1.22 + frame_type = AR5K_AR5210_TX_DESC_FRAME_TYPE_NO_DELAY; 1.23 ++ /* FALLTHROUGH */ 1.24 + case AR5K_PKT_TYPE_PIFS: 1.25 + frame_type = AR5K_AR5210_TX_DESC_FRAME_TYPE_PIFS; 1.26 ++ /* FALLTHROUGH */ 1.27 + default: 1.28 + frame_type = type /*<< 2 ?*/; 1.29 + } 1.30 +--- a/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c 1.31 ++++ b/src/drivers/net/ath/ath9k/ath9k_ar9003_phy.c 1.32 +@@ -539,6 +539,7 @@ 1.33 + case 0x5: 1.34 + REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP, 1.35 + AR_PHY_SWAP_ALT_CHAIN); 1.36 ++ /* FALLTHROUGH */ 1.37 + case 0x3: 1.38 + case 0x1: 1.39 + case 0x2: 1.40 +--- a/src/drivers/net/ath/ath9k/ath9k_ar9002_phy.c 1.41 ++++ b/src/drivers/net/ath/ath9k/ath9k_ar9002_phy.c 1.42 +@@ -122,6 +122,7 @@ 1.43 + aModeRefSel = 2; 1.44 + if (aModeRefSel) 1.45 + break; 1.46 ++ /* FALLTHROUGH */ 1.47 + case 1: 1.48 + default: 1.49 + aModeRefSel = 0; 1.50 +--- a/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c 1.51 ++++ b/src/drivers/net/ath/ath9k/ath9k_ar5008_phy.c 1.52 +@@ -640,12 +640,14 @@ 1.53 + case 0x5: 1.54 + REG_SET_BIT(ah, AR_PHY_ANALOG_SWAP, 1.55 + AR_PHY_SWAP_ALT_CHAIN); 1.56 ++ /* FALLTHROUGH */ 1.57 + case 0x3: 1.58 + if (ah->hw_version.macVersion == AR_SREV_REVISION_5416_10) { 1.59 + REG_WRITE(ah, AR_PHY_RX_CHAINMASK, 0x7); 1.60 + REG_WRITE(ah, AR_PHY_CAL_CHAINMASK, 0x7); 1.61 + break; 1.62 + } 1.63 ++ /* FALLTHROUGH */ 1.64 + case 0x1: 1.65 + case 0x2: 1.66 + case 0x7: 1.67 +--- a/src/drivers/net/tg3/tg3_hw.c 1.68 ++++ b/src/drivers/net/tg3/tg3_hw.c 1.69 +@@ -2518,32 +2518,46 @@ 1.70 + switch (limit) { 1.71 + case 16: 1.72 + tw32(MAC_RCV_RULE_15, 0); tw32(MAC_RCV_VALUE_15, 0); 1.73 ++ /* FALLTHROUGH */ 1.74 + case 15: 1.75 + tw32(MAC_RCV_RULE_14, 0); tw32(MAC_RCV_VALUE_14, 0); 1.76 ++ /* FALLTHROUGH */ 1.77 + case 14: 1.78 + tw32(MAC_RCV_RULE_13, 0); tw32(MAC_RCV_VALUE_13, 0); 1.79 ++ /* FALLTHROUGH */ 1.80 + case 13: 1.81 + tw32(MAC_RCV_RULE_12, 0); tw32(MAC_RCV_VALUE_12, 0); 1.82 ++ /* FALLTHROUGH */ 1.83 + case 12: 1.84 + tw32(MAC_RCV_RULE_11, 0); tw32(MAC_RCV_VALUE_11, 0); 1.85 ++ /* FALLTHROUGH */ 1.86 + case 11: 1.87 + tw32(MAC_RCV_RULE_10, 0); tw32(MAC_RCV_VALUE_10, 0); 1.88 ++ /* FALLTHROUGH */ 1.89 + case 10: 1.90 + tw32(MAC_RCV_RULE_9, 0); tw32(MAC_RCV_VALUE_9, 0); 1.91 ++ /* FALLTHROUGH */ 1.92 + case 9: 1.93 + tw32(MAC_RCV_RULE_8, 0); tw32(MAC_RCV_VALUE_8, 0); 1.94 ++ /* FALLTHROUGH */ 1.95 + case 8: 1.96 + tw32(MAC_RCV_RULE_7, 0); tw32(MAC_RCV_VALUE_7, 0); 1.97 ++ /* FALLTHROUGH */ 1.98 + case 7: 1.99 + tw32(MAC_RCV_RULE_6, 0); tw32(MAC_RCV_VALUE_6, 0); 1.100 ++ /* FALLTHROUGH */ 1.101 + case 6: 1.102 + tw32(MAC_RCV_RULE_5, 0); tw32(MAC_RCV_VALUE_5, 0); 1.103 ++ /* FALLTHROUGH */ 1.104 + case 5: 1.105 + tw32(MAC_RCV_RULE_4, 0); tw32(MAC_RCV_VALUE_4, 0); 1.106 ++ /* FALLTHROUGH */ 1.107 + case 4: 1.108 + /* tw32(MAC_RCV_RULE_3, 0); tw32(MAC_RCV_VALUE_3, 0); */ 1.109 ++ /* FALLTHROUGH */ 1.110 + case 3: 1.111 + /* tw32(MAC_RCV_RULE_2, 0); tw32(MAC_RCV_VALUE_2, 0); */ 1.112 ++ /* FALLTHROUGH */ 1.113 + case 2: 1.114 + case 1: 1.115 + 1.116 +--- a/src/drivers/infiniband/golan.c 1.117 ++++ b/src/drivers/infiniband/golan.c 1.118 +@@ -2024,6 +2024,7 @@ 1.119 + case GOLAN_PORT_CHANGE_SUBTYPE_CLIENT_REREG: 1.120 + case GOLAN_PORT_CHANGE_SUBTYPE_ACTIVE: 1.121 + golan_ib_update ( ibdev ); 1.122 ++ /* FALLTHROUGH */ 1.123 + case GOLAN_PORT_CHANGE_SUBTYPE_DOWN: 1.124 + case GOLAN_PORT_CHANGE_SUBTYPE_LID: 1.125 + case GOLAN_PORT_CHANGE_SUBTYPE_PKEY: 1.126 +--- a/src/tests/setjmp_test.c 1.127 ++++ b/src/tests/setjmp_test.c 1.128 +@@ -153,12 +153,19 @@ 1.129 + case 0: setjmp_ok ( &alpha ); break; 1.130 + case 1: setjmp_ok ( &beta ); break; 1.131 + case 2: longjmp_ok ( &alpha, 0 ); 1.132 ++ /* FALLTHROUGH */ 1.133 + case 3: longjmp_ok ( &alpha, 1 ); 1.134 ++ /* FALLTHROUGH */ 1.135 + case 4: longjmp_ok ( &alpha, 2 ); 1.136 ++ /* FALLTHROUGH */ 1.137 + case 5: longjmp_ok ( &beta, 17 ); 1.138 ++ /* FALLTHROUGH */ 1.139 + case 6: longjmp_ok ( &beta, 29 ); 1.140 ++ /* FALLTHROUGH */ 1.141 + case 7: longjmp_ok ( &alpha, -1 ); 1.142 ++ /* FALLTHROUGH */ 1.143 + case 8: longjmp_ok ( &beta, 0 ); 1.144 ++ /* FALLTHROUGH */ 1.145 + case 9: longjmp_ok ( &beta, 42 ); 1.146 + } 1.147 + } 1.148 +--- a/src/include/curses.h 1.149 ++++ b/src/include/curses.h 1.150 +@@ -443,7 +443,7 @@ 1.151 + extern int wclrtobot ( WINDOW * ) __nonnull; 1.152 + extern int wclrtoeol ( WINDOW * ) __nonnull; 1.153 + extern void wcursyncup ( WINDOW * ); 1.154 +-extern int wcolour_set ( WINDOW *, short, void * ) __nonnull; 1.155 ++extern int wcolour_set ( WINDOW *, short, void * ); 1.156 + #define wcolor_set(w,s,v) wcolour_set((w),(s),(v)) 1.157 + extern int wdelch ( WINDOW * ) __nonnull; 1.158 + extern int wdeleteln ( WINDOW * ) __nonnull; 1.159 +--- a/src/arch/x86/image/bzimage.c 1.160 ++++ b/src/arch/x86/image/bzimage.c 1.161 +@@ -282,9 +282,11 @@ 1.162 + case 'G': 1.163 + case 'g': 1.164 + bzimg->mem_limit <<= 10; 1.165 ++ /* FALLTHROUGH */ 1.166 + case 'M': 1.167 + case 'm': 1.168 + bzimg->mem_limit <<= 10; 1.169 ++ /* FALLTHROUGH */ 1.170 + case 'K': 1.171 + case 'k': 1.172 + bzimg->mem_limit <<= 10;