diff options
66 files changed, 216 insertions, 68 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 000a2f4c0e92..f070f7200fc0 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h | |||
@@ -1778,7 +1778,7 @@ static inline void __drbd_chk_io_error_(struct drbd_device *device, | |||
1778 | _drbd_set_state(_NS(device, disk, D_INCONSISTENT), CS_HARD, NULL); | 1778 | _drbd_set_state(_NS(device, disk, D_INCONSISTENT), CS_HARD, NULL); |
1779 | break; | 1779 | break; |
1780 | } | 1780 | } |
1781 | /* NOTE fall through for DRBD_META_IO_ERROR or DRBD_FORCE_DETACH */ | 1781 | /* fall through - for DRBD_META_IO_ERROR or DRBD_FORCE_DETACH */ |
1782 | case EP_DETACH: | 1782 | case EP_DETACH: |
1783 | case EP_CALL_HELPER: | 1783 | case EP_CALL_HELPER: |
1784 | /* Remember whether we saw a READ or WRITE error. | 1784 | /* Remember whether we saw a READ or WRITE error. |
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index c850bdb6c178..6a727df02889 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c | |||
@@ -3094,7 +3094,7 @@ static int drbd_asb_recover_0p(struct drbd_peer_device *peer_device) __must_hold | |||
3094 | rv = 1; | 3094 | rv = 1; |
3095 | break; | 3095 | break; |
3096 | } | 3096 | } |
3097 | /* Else fall through to one of the other strategies... */ | 3097 | /* Else fall through - to one of the other strategies... */ |
3098 | case ASB_DISCARD_OLDER_PRI: | 3098 | case ASB_DISCARD_OLDER_PRI: |
3099 | if (self == 0 && peer == 1) { | 3099 | if (self == 0 && peer == 1) { |
3100 | rv = 1; | 3100 | rv = 1; |
@@ -3119,7 +3119,7 @@ static int drbd_asb_recover_0p(struct drbd_peer_device *peer_device) __must_hold | |||
3119 | } | 3119 | } |
3120 | if (after_sb_0p == ASB_DISCARD_ZERO_CHG) | 3120 | if (after_sb_0p == ASB_DISCARD_ZERO_CHG) |
3121 | break; | 3121 | break; |
3122 | /* else: fall through */ | 3122 | /* else, fall through */ |
3123 | case ASB_DISCARD_LEAST_CHG: | 3123 | case ASB_DISCARD_LEAST_CHG: |
3124 | if (ch_self < ch_peer) | 3124 | if (ch_self < ch_peer) |
3125 | rv = -1; | 3125 | rv = -1; |
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index 643a04af213b..3809c7e6be8c 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c | |||
@@ -866,7 +866,7 @@ int __req_mod(struct drbd_request *req, enum drbd_req_event what, | |||
866 | } /* else: FIXME can this happen? */ | 866 | } /* else: FIXME can this happen? */ |
867 | break; | 867 | break; |
868 | } | 868 | } |
869 | /* else, fall through to BARRIER_ACKED */ | 869 | /* else, fall through - to BARRIER_ACKED */ |
870 | 870 | ||
871 | case BARRIER_ACKED: | 871 | case BARRIER_ACKED: |
872 | /* barrier ack for READ requests does not make sense */ | 872 | /* barrier ack for READ requests does not make sense */ |
diff --git a/drivers/block/rsxx/core.c b/drivers/block/rsxx/core.c index 0cf4509d575c..898d522e8338 100644 --- a/drivers/block/rsxx/core.c +++ b/drivers/block/rsxx/core.c | |||
@@ -439,6 +439,7 @@ static void card_state_change(struct rsxx_cardinfo *card, | |||
439 | * Fall through so the DMA devices can be attached and | 439 | * Fall through so the DMA devices can be attached and |
440 | * the user can attempt to pull off their data. | 440 | * the user can attempt to pull off their data. |
441 | */ | 441 | */ |
442 | /* fall through */ | ||
442 | case CARD_STATE_GOOD: | 443 | case CARD_STATE_GOOD: |
443 | st = rsxx_get_card_size8(card, &card->size8); | 444 | st = rsxx_get_card_size8(card, &card->size8); |
444 | if (st) | 445 | if (st) |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/hdmi.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/hdmi.c index d131cca999dd..10f2aa9f29a4 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/hdmi.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/hdmi.c | |||
@@ -23,38 +23,55 @@ void pack_hdmi_infoframe(struct packed_hdmi_infoframe *packed_frame, | |||
23 | */ | 23 | */ |
24 | case 17: | 24 | case 17: |
25 | subpack1_high = (raw_frame[16] << 16); | 25 | subpack1_high = (raw_frame[16] << 16); |
26 | /* fall through */ | ||
26 | case 16: | 27 | case 16: |
27 | subpack1_high |= (raw_frame[15] << 8); | 28 | subpack1_high |= (raw_frame[15] << 8); |
29 | /* fall through */ | ||
28 | case 15: | 30 | case 15: |
29 | subpack1_high |= raw_frame[14]; | 31 | subpack1_high |= raw_frame[14]; |
32 | /* fall through */ | ||
30 | case 14: | 33 | case 14: |
31 | subpack1_low = (raw_frame[13] << 24); | 34 | subpack1_low = (raw_frame[13] << 24); |
35 | /* fall through */ | ||
32 | case 13: | 36 | case 13: |
33 | subpack1_low |= (raw_frame[12] << 16); | 37 | subpack1_low |= (raw_frame[12] << 16); |
38 | /* fall through */ | ||
34 | case 12: | 39 | case 12: |
35 | subpack1_low |= (raw_frame[11] << 8); | 40 | subpack1_low |= (raw_frame[11] << 8); |
41 | /* fall through */ | ||
36 | case 11: | 42 | case 11: |
37 | subpack1_low |= raw_frame[10]; | 43 | subpack1_low |= raw_frame[10]; |
44 | /* fall through */ | ||
38 | case 10: | 45 | case 10: |
39 | subpack0_high = (raw_frame[9] << 16); | 46 | subpack0_high = (raw_frame[9] << 16); |
47 | /* fall through */ | ||
40 | case 9: | 48 | case 9: |
41 | subpack0_high |= (raw_frame[8] << 8); | 49 | subpack0_high |= (raw_frame[8] << 8); |
50 | /* fall through */ | ||
42 | case 8: | 51 | case 8: |
43 | subpack0_high |= raw_frame[7]; | 52 | subpack0_high |= raw_frame[7]; |
53 | /* fall through */ | ||
44 | case 7: | 54 | case 7: |
45 | subpack0_low = (raw_frame[6] << 24); | 55 | subpack0_low = (raw_frame[6] << 24); |
56 | /* fall through */ | ||
46 | case 6: | 57 | case 6: |
47 | subpack0_low |= (raw_frame[5] << 16); | 58 | subpack0_low |= (raw_frame[5] << 16); |
59 | /* fall through */ | ||
48 | case 5: | 60 | case 5: |
49 | subpack0_low |= (raw_frame[4] << 8); | 61 | subpack0_low |= (raw_frame[4] << 8); |
62 | /* fall through */ | ||
50 | case 4: | 63 | case 4: |
51 | subpack0_low |= raw_frame[3]; | 64 | subpack0_low |= raw_frame[3]; |
65 | /* fall through */ | ||
52 | case 3: | 66 | case 3: |
53 | header = (raw_frame[2] << 16); | 67 | header = (raw_frame[2] << 16); |
68 | /* fall through */ | ||
54 | case 2: | 69 | case 2: |
55 | header |= (raw_frame[1] << 8); | 70 | header |= (raw_frame[1] << 8); |
71 | /* fall through */ | ||
56 | case 1: | 72 | case 1: |
57 | header |= raw_frame[0]; | 73 | header |= raw_frame[0]; |
74 | /* fall through */ | ||
58 | case 0: | 75 | case 0: |
59 | break; | 76 | break; |
60 | } | 77 | } |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv04.c b/drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv04.c index 49ef7e57aad4..7f1adab21a5f 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv04.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/dma/usernv04.c | |||
@@ -122,6 +122,7 @@ nv04_dmaobj_new(struct nvkm_dma *dma, const struct nvkm_oclass *oclass, | |||
122 | break; | 122 | break; |
123 | case NV_MEM_ACCESS_WO: | 123 | case NV_MEM_ACCESS_WO: |
124 | dmaobj->flags0 |= 0x00008000; | 124 | dmaobj->flags0 |= 0x00008000; |
125 | /* fall through */ | ||
125 | case NV_MEM_ACCESS_RW: | 126 | case NV_MEM_ACCESS_RW: |
126 | dmaobj->flags2 |= 0x00000002; | 127 | dmaobj->flags2 |= 0x00000002; |
127 | break; | 128 | break; |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c index ad707ff176cc..93493b335d76 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c | |||
@@ -117,8 +117,10 @@ nv04_fifo_swmthd(struct nvkm_device *device, u32 chid, u32 addr, u32 data) | |||
117 | switch (mthd) { | 117 | switch (mthd) { |
118 | case 0x0000 ... 0x0000: /* subchannel's engine -> software */ | 118 | case 0x0000 ... 0x0000: /* subchannel's engine -> software */ |
119 | nvkm_wr32(device, 0x003280, (engine &= ~mask)); | 119 | nvkm_wr32(device, 0x003280, (engine &= ~mask)); |
120 | /* fall through */ | ||
120 | case 0x0180 ... 0x01fc: /* handle -> instance */ | 121 | case 0x0180 ... 0x01fc: /* handle -> instance */ |
121 | data = nvkm_rd32(device, 0x003258) & 0x0000ffff; | 122 | data = nvkm_rd32(device, 0x003258) & 0x0000ffff; |
123 | /* fall through */ | ||
122 | case 0x0100 ... 0x017c: | 124 | case 0x0100 ... 0x017c: |
123 | case 0x0200 ... 0x1ffc: /* pass method down to sw */ | 125 | case 0x0200 ... 0x1ffc: /* pass method down to sw */ |
124 | if (!(engine & mask) && sw) | 126 | if (!(engine & mask) && sw) |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c index 8c7ba32763c4..47c16821c37f 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c | |||
@@ -81,6 +81,7 @@ nv40_fifo_init(struct nvkm_fifo *base) | |||
81 | case 0x49: | 81 | case 0x49: |
82 | case 0x4b: | 82 | case 0x4b: |
83 | nvkm_wr32(device, 0x002230, 0x00000001); | 83 | nvkm_wr32(device, 0x002230, 0x00000001); |
84 | /* fall through */ | ||
84 | case 0x40: | 85 | case 0x40: |
85 | case 0x41: | 86 | case 0x41: |
86 | case 0x42: | 87 | case 0x42: |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c index c3068358f695..7112992e0e38 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c | |||
@@ -135,6 +135,7 @@ nvbios_perfEp(struct nvkm_bios *bios, int idx, | |||
135 | break; | 135 | break; |
136 | case 0x30: | 136 | case 0x30: |
137 | info->script = nvbios_rd16(bios, perf + 0x02); | 137 | info->script = nvbios_rd16(bios, perf + 0x02); |
138 | /* fall through */ | ||
138 | case 0x35: | 139 | case 0x35: |
139 | info->fanspeed = nvbios_rd08(bios, perf + 0x06); | 140 | info->fanspeed = nvbios_rd08(bios, perf + 0x06); |
140 | info->voltage = nvbios_rd08(bios, perf + 0x07); | 141 | info->voltage = nvbios_rd08(bios, perf + 0x07); |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c index e6e804cee2bc..bda6cc9a7aaf 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c | |||
@@ -134,6 +134,7 @@ pll_map(struct nvkm_bios *bios) | |||
134 | device->chipset == 0xaa || | 134 | device->chipset == 0xaa || |
135 | device->chipset == 0xac) | 135 | device->chipset == 0xac) |
136 | return g84_pll_mapping; | 136 | return g84_pll_mapping; |
137 | /* fall through */ | ||
137 | default: | 138 | default: |
138 | return NULL; | 139 | return NULL; |
139 | } | 140 | } |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c index ba6a868d4c95..40e564524b7a 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c | |||
@@ -90,6 +90,7 @@ nvkm_cstate_valid(struct nvkm_clk *clk, struct nvkm_cstate *cstate, | |||
90 | case NVKM_CLK_BOOST_NONE: | 90 | case NVKM_CLK_BOOST_NONE: |
91 | if (clk->base_khz && freq > clk->base_khz) | 91 | if (clk->base_khz && freq > clk->base_khz) |
92 | return false; | 92 | return false; |
93 | /* fall through */ | ||
93 | case NVKM_CLK_BOOST_BIOS: | 94 | case NVKM_CLK_BOOST_BIOS: |
94 | if (clk->boost_khz && freq > clk->boost_khz) | 95 | if (clk->boost_khz && freq > clk->boost_khz) |
95 | return false; | 96 | return false; |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c index 1c21b8b53b78..4f000237796f 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c | |||
@@ -363,6 +363,7 @@ mcp77_clk_prog(struct nvkm_clk *base) | |||
363 | switch (clk->vsrc) { | 363 | switch (clk->vsrc) { |
364 | case nv_clk_src_cclk: | 364 | case nv_clk_src_cclk: |
365 | mast |= 0x00400000; | 365 | mast |= 0x00400000; |
366 | /* fall through */ | ||
366 | default: | 367 | default: |
367 | nvkm_wr32(device, 0x4600, clk->vdiv); | 368 | nvkm_wr32(device, 0x4600, clk->vdiv); |
368 | } | 369 | } |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c index 2b12e388f47a..5f4c287d7943 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c | |||
@@ -131,11 +131,13 @@ nv40_ram_prog(struct nvkm_ram *base) | |||
131 | nvkm_mask(device, 0x00402c, 0xc0771100, ram->ctrl); | 131 | nvkm_mask(device, 0x00402c, 0xc0771100, ram->ctrl); |
132 | nvkm_wr32(device, 0x004048, ram->coef); | 132 | nvkm_wr32(device, 0x004048, ram->coef); |
133 | nvkm_wr32(device, 0x004030, ram->coef); | 133 | nvkm_wr32(device, 0x004030, ram->coef); |
134 | /* fall through */ | ||
134 | case 0x43: | 135 | case 0x43: |
135 | case 0x49: | 136 | case 0x49: |
136 | case 0x4b: | 137 | case 0x4b: |
137 | nvkm_mask(device, 0x004038, 0xc0771100, ram->ctrl); | 138 | nvkm_mask(device, 0x004038, 0xc0771100, ram->ctrl); |
138 | nvkm_wr32(device, 0x00403c, ram->coef); | 139 | nvkm_wr32(device, 0x00403c, ram->coef); |
140 | /* fall through */ | ||
139 | default: | 141 | default: |
140 | nvkm_mask(device, 0x004020, 0xc0771100, ram->ctrl); | 142 | nvkm_mask(device, 0x004020, 0xc0771100, ram->ctrl); |
141 | nvkm_wr32(device, 0x004024, ram->coef); | 143 | nvkm_wr32(device, 0x004024, ram->coef); |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c index 844971e5e874..2a6150ab5611 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c | |||
@@ -159,6 +159,7 @@ mxm_dcb_sanitise_entry(struct nvkm_bios *bios, void *data, int idx, u16 pdcb) | |||
159 | break; | 159 | break; |
160 | case 0x0e: /* eDP, falls through to DPint */ | 160 | case 0x0e: /* eDP, falls through to DPint */ |
161 | ctx.outp[1] |= 0x00010000; | 161 | ctx.outp[1] |= 0x00010000; |
162 | /* fall through */ | ||
162 | case 0x07: /* DP internal, wtf is this?? HP8670w */ | 163 | case 0x07: /* DP internal, wtf is this?? HP8670w */ |
163 | ctx.outp[1] |= 0x00000004; /* use_power_scripts? */ | 164 | ctx.outp[1] |= 0x00000004; /* use_power_scripts? */ |
164 | type = DCB_CONNECTOR_eDP; | 165 | type = DCB_CONNECTOR_eDP; |
diff --git a/drivers/memstick/host/jmb38x_ms.c b/drivers/memstick/host/jmb38x_ms.c index e3a5af65dbce..b4f3d64e7da8 100644 --- a/drivers/memstick/host/jmb38x_ms.c +++ b/drivers/memstick/host/jmb38x_ms.c | |||
@@ -259,9 +259,11 @@ static unsigned int jmb38x_ms_write_data(struct jmb38x_ms_host *host, | |||
259 | case 3: | 259 | case 3: |
260 | host->io_word[0] |= buf[off + 2] << 16; | 260 | host->io_word[0] |= buf[off + 2] << 16; |
261 | host->io_pos++; | 261 | host->io_pos++; |
262 | /* fall through */ | ||
262 | case 2: | 263 | case 2: |
263 | host->io_word[0] |= buf[off + 1] << 8; | 264 | host->io_word[0] |= buf[off + 1] << 8; |
264 | host->io_pos++; | 265 | host->io_pos++; |
266 | /* fall through */ | ||
265 | case 1: | 267 | case 1: |
266 | host->io_word[0] |= buf[off]; | 268 | host->io_word[0] |= buf[off]; |
267 | host->io_pos++; | 269 | host->io_pos++; |
diff --git a/drivers/memstick/host/tifm_ms.c b/drivers/memstick/host/tifm_ms.c index bed205849d02..1bbb2ead9556 100644 --- a/drivers/memstick/host/tifm_ms.c +++ b/drivers/memstick/host/tifm_ms.c | |||
@@ -166,9 +166,11 @@ static unsigned int tifm_ms_write_data(struct tifm_ms *host, | |||
166 | case 3: | 166 | case 3: |
167 | host->io_word |= buf[off + 2] << 16; | 167 | host->io_word |= buf[off + 2] << 16; |
168 | host->io_pos++; | 168 | host->io_pos++; |
169 | /* fall through */ | ||
169 | case 2: | 170 | case 2: |
170 | host->io_word |= buf[off + 1] << 8; | 171 | host->io_word |= buf[off + 1] << 8; |
171 | host->io_pos++; | 172 | host->io_pos++; |
173 | /* fall through */ | ||
172 | case 1: | 174 | case 1: |
173 | host->io_word |= buf[off]; | 175 | host->io_word |= buf[off]; |
174 | host->io_pos++; | 176 | host->io_pos++; |
diff --git a/drivers/nfc/pn533/pn533.c b/drivers/nfc/pn533/pn533.c index a0cc1cc45292..5961f14259e5 100644 --- a/drivers/nfc/pn533/pn533.c +++ b/drivers/nfc/pn533/pn533.c | |||
@@ -2147,6 +2147,7 @@ static int pn533_transceive(struct nfc_dev *nfc_dev, | |||
2147 | 2147 | ||
2148 | break; | 2148 | break; |
2149 | } | 2149 | } |
2150 | /* fall through */ | ||
2150 | default: | 2151 | default: |
2151 | /* jumbo frame ? */ | 2152 | /* jumbo frame ? */ |
2152 | if (skb->len > PN533_CMD_DATAEXCH_DATA_MAXLEN) { | 2153 | if (skb->len > PN533_CMD_DATAEXCH_DATA_MAXLEN) { |
@@ -2273,6 +2274,7 @@ static void pn533_wq_mi_recv(struct work_struct *work) | |||
2273 | 2274 | ||
2274 | break; | 2275 | break; |
2275 | } | 2276 | } |
2277 | /* fall through */ | ||
2276 | default: | 2278 | default: |
2277 | skb_put_u8(skb, 1); /*TG*/ | 2279 | skb_put_u8(skb, 1); /*TG*/ |
2278 | 2280 | ||
diff --git a/drivers/nfc/st21nfca/dep.c b/drivers/nfc/st21nfca/dep.c index fd08be2917e6..c005997493af 100644 --- a/drivers/nfc/st21nfca/dep.c +++ b/drivers/nfc/st21nfca/dep.c | |||
@@ -400,6 +400,7 @@ static int st21nfca_tm_event_send_data(struct nfc_hci_dev *hdev, | |||
400 | default: | 400 | default: |
401 | return 1; | 401 | return 1; |
402 | } | 402 | } |
403 | break; | ||
403 | default: | 404 | default: |
404 | return 1; | 405 | return 1; |
405 | } | 406 | } |
@@ -619,6 +620,7 @@ static void st21nfca_im_recv_dep_res_cb(void *context, struct sk_buff *skb, | |||
619 | switch (ST21NFCA_NFC_DEP_PFB_TYPE(dep_res->pfb)) { | 620 | switch (ST21NFCA_NFC_DEP_PFB_TYPE(dep_res->pfb)) { |
620 | case ST21NFCA_NFC_DEP_PFB_ACK_NACK_PDU: | 621 | case ST21NFCA_NFC_DEP_PFB_ACK_NACK_PDU: |
621 | pr_err("Received a ACK/NACK PDU\n"); | 622 | pr_err("Received a ACK/NACK PDU\n"); |
623 | /* fall through */ | ||
622 | case ST21NFCA_NFC_DEP_PFB_I_PDU: | 624 | case ST21NFCA_NFC_DEP_PFB_I_PDU: |
623 | info->dep_info.curr_nfc_dep_pni = | 625 | info->dep_info.curr_nfc_dep_pni = |
624 | ST21NFCA_NFC_DEP_PFB_PNI(dep_res->pfb + 1); | 626 | ST21NFCA_NFC_DEP_PFB_PNI(dep_res->pfb + 1); |
diff --git a/drivers/scsi/aic7xxx/aic7xxx_core.c b/drivers/scsi/aic7xxx/aic7xxx_core.c index f3362f4ab16e..d4a7263e4b8f 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_core.c +++ b/drivers/scsi/aic7xxx/aic7xxx_core.c | |||
@@ -4920,24 +4920,30 @@ ahc_fini_scbdata(struct ahc_softc *ahc) | |||
4920 | } | 4920 | } |
4921 | ahc_dma_tag_destroy(ahc, scb_data->sg_dmat); | 4921 | ahc_dma_tag_destroy(ahc, scb_data->sg_dmat); |
4922 | } | 4922 | } |
4923 | /* fall through */ | ||
4923 | case 6: | 4924 | case 6: |
4924 | ahc_dmamap_unload(ahc, scb_data->sense_dmat, | 4925 | ahc_dmamap_unload(ahc, scb_data->sense_dmat, |
4925 | scb_data->sense_dmamap); | 4926 | scb_data->sense_dmamap); |
4927 | /* fall through */ | ||
4926 | case 5: | 4928 | case 5: |
4927 | ahc_dmamem_free(ahc, scb_data->sense_dmat, scb_data->sense, | 4929 | ahc_dmamem_free(ahc, scb_data->sense_dmat, scb_data->sense, |
4928 | scb_data->sense_dmamap); | 4930 | scb_data->sense_dmamap); |
4929 | ahc_dmamap_destroy(ahc, scb_data->sense_dmat, | 4931 | ahc_dmamap_destroy(ahc, scb_data->sense_dmat, |
4930 | scb_data->sense_dmamap); | 4932 | scb_data->sense_dmamap); |
4933 | /* fall through */ | ||
4931 | case 4: | 4934 | case 4: |
4932 | ahc_dma_tag_destroy(ahc, scb_data->sense_dmat); | 4935 | ahc_dma_tag_destroy(ahc, scb_data->sense_dmat); |
4936 | /* fall through */ | ||
4933 | case 3: | 4937 | case 3: |
4934 | ahc_dmamap_unload(ahc, scb_data->hscb_dmat, | 4938 | ahc_dmamap_unload(ahc, scb_data->hscb_dmat, |
4935 | scb_data->hscb_dmamap); | 4939 | scb_data->hscb_dmamap); |
4940 | /* fall through */ | ||
4936 | case 2: | 4941 | case 2: |
4937 | ahc_dmamem_free(ahc, scb_data->hscb_dmat, scb_data->hscbs, | 4942 | ahc_dmamem_free(ahc, scb_data->hscb_dmat, scb_data->hscbs, |
4938 | scb_data->hscb_dmamap); | 4943 | scb_data->hscb_dmamap); |
4939 | ahc_dmamap_destroy(ahc, scb_data->hscb_dmat, | 4944 | ahc_dmamap_destroy(ahc, scb_data->hscb_dmat, |
4940 | scb_data->hscb_dmamap); | 4945 | scb_data->hscb_dmamap); |
4946 | /* fall through */ | ||
4941 | case 1: | 4947 | case 1: |
4942 | ahc_dma_tag_destroy(ahc, scb_data->hscb_dmat); | 4948 | ahc_dma_tag_destroy(ahc, scb_data->hscb_dmat); |
4943 | break; | 4949 | break; |
@@ -6002,8 +6008,8 @@ ahc_search_qinfifo(struct ahc_softc *ahc, int target, char channel, | |||
6002 | if ((scb->flags & SCB_ACTIVE) == 0) | 6008 | if ((scb->flags & SCB_ACTIVE) == 0) |
6003 | printk("Inactive SCB in Waiting List\n"); | 6009 | printk("Inactive SCB in Waiting List\n"); |
6004 | ahc_done(ahc, scb); | 6010 | ahc_done(ahc, scb); |
6005 | /* FALLTHROUGH */ | ||
6006 | } | 6011 | } |
6012 | /* fall through */ | ||
6007 | case SEARCH_REMOVE: | 6013 | case SEARCH_REMOVE: |
6008 | next = ahc_rem_wscb(ahc, next, prev); | 6014 | next = ahc_rem_wscb(ahc, next, prev); |
6009 | break; | 6015 | break; |
@@ -7008,8 +7014,8 @@ ahc_download_instr(struct ahc_softc *ahc, u_int instrptr, uint8_t *dconsts) | |||
7008 | } | 7014 | } |
7009 | address -= address_offset; | 7015 | address -= address_offset; |
7010 | fmt3_ins->address = address; | 7016 | fmt3_ins->address = address; |
7011 | /* FALLTHROUGH */ | ||
7012 | } | 7017 | } |
7018 | /* fall through */ | ||
7013 | case AIC_OP_OR: | 7019 | case AIC_OP_OR: |
7014 | case AIC_OP_AND: | 7020 | case AIC_OP_AND: |
7015 | case AIC_OP_XOR: | 7021 | case AIC_OP_XOR: |
@@ -7035,7 +7041,7 @@ ahc_download_instr(struct ahc_softc *ahc, u_int instrptr, uint8_t *dconsts) | |||
7035 | fmt1_ins->opcode = AIC_OP_AND; | 7041 | fmt1_ins->opcode = AIC_OP_AND; |
7036 | fmt1_ins->immediate = 0xff; | 7042 | fmt1_ins->immediate = 0xff; |
7037 | } | 7043 | } |
7038 | /* FALLTHROUGH */ | 7044 | /* fall through */ |
7039 | case AIC_OP_ROL: | 7045 | case AIC_OP_ROL: |
7040 | if ((ahc->features & AHC_ULTRA2) != 0) { | 7046 | if ((ahc->features & AHC_ULTRA2) != 0) { |
7041 | int i, count; | 7047 | int i, count; |
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index 96b96e2ab91a..ed1bd369baa0 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c | |||
@@ -679,6 +679,7 @@ int beiscsi_set_param(struct iscsi_cls_conn *cls_conn, | |||
679 | case ISCSI_PARAM_MAX_XMIT_DLENGTH: | 679 | case ISCSI_PARAM_MAX_XMIT_DLENGTH: |
680 | if (conn->max_xmit_dlength > 65536) | 680 | if (conn->max_xmit_dlength > 65536) |
681 | conn->max_xmit_dlength = 65536; | 681 | conn->max_xmit_dlength = 65536; |
682 | /* fall through */ | ||
682 | default: | 683 | default: |
683 | return 0; | 684 | return 0; |
684 | } | 685 | } |
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 76e49d902609..0760d0bd8a10 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -1532,6 +1532,7 @@ beiscsi_hdl_get_handle(struct beiscsi_conn *beiscsi_conn, | |||
1532 | break; | 1532 | break; |
1533 | case UNSOL_DATA_DIGEST_ERROR_NOTIFY: | 1533 | case UNSOL_DATA_DIGEST_ERROR_NOTIFY: |
1534 | error = 1; | 1534 | error = 1; |
1535 | /* fall through */ | ||
1535 | case UNSOL_DATA_NOTIFY: | 1536 | case UNSOL_DATA_NOTIFY: |
1536 | pasync_handle = pasync_ctx->async_entry[ci].data; | 1537 | pasync_handle = pasync_ctx->async_entry[ci].data; |
1537 | break; | 1538 | break; |
diff --git a/drivers/scsi/bfa/bfa_fcpim.c b/drivers/scsi/bfa/bfa_fcpim.c index 2c85f5b1f9c1..7e996bcf026c 100644 --- a/drivers/scsi/bfa/bfa_fcpim.c +++ b/drivers/scsi/bfa/bfa_fcpim.c | |||
@@ -2586,6 +2586,7 @@ bfa_ioim_send_ioreq(struct bfa_ioim_s *ioim) | |||
2586 | case FCP_IODIR_RW: | 2586 | case FCP_IODIR_RW: |
2587 | bfa_stats(itnim, input_reqs); | 2587 | bfa_stats(itnim, input_reqs); |
2588 | bfa_stats(itnim, output_reqs); | 2588 | bfa_stats(itnim, output_reqs); |
2589 | /* fall through */ | ||
2589 | default: | 2590 | default: |
2590 | bfi_h2i_set(m->mh, BFI_MC_IOIM_IO, 0, bfa_fn_lpu(ioim->bfa)); | 2591 | bfi_h2i_set(m->mh, BFI_MC_IOIM_IO, 0, bfa_fn_lpu(ioim->bfa)); |
2591 | } | 2592 | } |
@@ -2820,6 +2821,7 @@ bfa_ioim_isr(struct bfa_s *bfa, struct bfi_msg_s *m) | |||
2820 | 2821 | ||
2821 | case BFI_IOIM_STS_TIMEDOUT: | 2822 | case BFI_IOIM_STS_TIMEDOUT: |
2822 | bfa_stats(ioim->itnim, iocomp_timedout); | 2823 | bfa_stats(ioim->itnim, iocomp_timedout); |
2824 | /* fall through */ | ||
2823 | case BFI_IOIM_STS_ABORTED: | 2825 | case BFI_IOIM_STS_ABORTED: |
2824 | rsp->io_status = BFI_IOIM_STS_ABORTED; | 2826 | rsp->io_status = BFI_IOIM_STS_ABORTED; |
2825 | bfa_stats(ioim->itnim, iocomp_aborted); | 2827 | bfa_stats(ioim->itnim, iocomp_aborted); |
@@ -3215,9 +3217,7 @@ bfa_tskim_sm_cleanup_qfull(struct bfa_tskim_s *tskim, | |||
3215 | switch (event) { | 3217 | switch (event) { |
3216 | case BFA_TSKIM_SM_DONE: | 3218 | case BFA_TSKIM_SM_DONE: |
3217 | bfa_reqq_wcancel(&tskim->reqq_wait); | 3219 | bfa_reqq_wcancel(&tskim->reqq_wait); |
3218 | /* | 3220 | /* fall through */ |
3219 | * Fall through !!! | ||
3220 | */ | ||
3221 | case BFA_TSKIM_SM_QRESUME: | 3221 | case BFA_TSKIM_SM_QRESUME: |
3222 | bfa_sm_set_state(tskim, bfa_tskim_sm_cleanup); | 3222 | bfa_sm_set_state(tskim, bfa_tskim_sm_cleanup); |
3223 | bfa_tskim_send_abort(tskim); | 3223 | bfa_tskim_send_abort(tskim); |
diff --git a/drivers/scsi/csiostor/csio_wr.c b/drivers/scsi/csiostor/csio_wr.c index 66bbd21819ae..03bd896cdbb9 100644 --- a/drivers/scsi/csiostor/csio_wr.c +++ b/drivers/scsi/csiostor/csio_wr.c | |||
@@ -808,6 +808,7 @@ csio_wr_destroy_queues(struct csio_hw *hw, bool cmd) | |||
808 | 808 | ||
809 | csio_q_eqid(hw, i) = CSIO_MAX_QID; | 809 | csio_q_eqid(hw, i) = CSIO_MAX_QID; |
810 | } | 810 | } |
811 | /* fall through */ | ||
811 | case CSIO_INGRESS: | 812 | case CSIO_INGRESS: |
812 | if (csio_q_iqid(hw, i) != CSIO_MAX_QID) { | 813 | if (csio_q_iqid(hw, i) != CSIO_MAX_QID) { |
813 | csio_wr_cleanup_iq_ftr(hw, i); | 814 | csio_wr_cleanup_iq_ftr(hw, i); |
diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c index cea7f502e8ca..64ae418d29f3 100644 --- a/drivers/scsi/imm.c +++ b/drivers/scsi/imm.c | |||
@@ -796,21 +796,21 @@ static int imm_engine(imm_struct *dev, struct scsi_cmnd *cmd) | |||
796 | return 0; | 796 | return 0; |
797 | } | 797 | } |
798 | return 1; /* wait until imm_wakeup claims parport */ | 798 | return 1; /* wait until imm_wakeup claims parport */ |
799 | /* Phase 1 - Connected */ | 799 | |
800 | case 1: | 800 | case 1: /* Phase 1 - Connected */ |
801 | imm_connect(dev, CONNECT_EPP_MAYBE); | 801 | imm_connect(dev, CONNECT_EPP_MAYBE); |
802 | cmd->SCp.phase++; | 802 | cmd->SCp.phase++; |
803 | /* fall through */ | ||
803 | 804 | ||
804 | /* Phase 2 - We are now talking to the scsi bus */ | 805 | case 2: /* Phase 2 - We are now talking to the scsi bus */ |
805 | case 2: | ||
806 | if (!imm_select(dev, scmd_id(cmd))) { | 806 | if (!imm_select(dev, scmd_id(cmd))) { |
807 | imm_fail(dev, DID_NO_CONNECT); | 807 | imm_fail(dev, DID_NO_CONNECT); |
808 | return 0; | 808 | return 0; |
809 | } | 809 | } |
810 | cmd->SCp.phase++; | 810 | cmd->SCp.phase++; |
811 | /* fall through */ | ||
811 | 812 | ||
812 | /* Phase 3 - Ready to accept a command */ | 813 | case 3: /* Phase 3 - Ready to accept a command */ |
813 | case 3: | ||
814 | w_ctr(ppb, 0x0c); | 814 | w_ctr(ppb, 0x0c); |
815 | if (!(r_str(ppb) & 0x80)) | 815 | if (!(r_str(ppb) & 0x80)) |
816 | return 1; | 816 | return 1; |
@@ -818,9 +818,9 @@ static int imm_engine(imm_struct *dev, struct scsi_cmnd *cmd) | |||
818 | if (!imm_send_command(cmd)) | 818 | if (!imm_send_command(cmd)) |
819 | return 0; | 819 | return 0; |
820 | cmd->SCp.phase++; | 820 | cmd->SCp.phase++; |
821 | /* fall through */ | ||
821 | 822 | ||
822 | /* Phase 4 - Setup scatter/gather buffers */ | 823 | case 4: /* Phase 4 - Setup scatter/gather buffers */ |
823 | case 4: | ||
824 | if (scsi_bufflen(cmd)) { | 824 | if (scsi_bufflen(cmd)) { |
825 | cmd->SCp.buffer = scsi_sglist(cmd); | 825 | cmd->SCp.buffer = scsi_sglist(cmd); |
826 | cmd->SCp.this_residual = cmd->SCp.buffer->length; | 826 | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
@@ -834,8 +834,9 @@ static int imm_engine(imm_struct *dev, struct scsi_cmnd *cmd) | |||
834 | cmd->SCp.phase++; | 834 | cmd->SCp.phase++; |
835 | if (cmd->SCp.this_residual & 0x01) | 835 | if (cmd->SCp.this_residual & 0x01) |
836 | cmd->SCp.this_residual++; | 836 | cmd->SCp.this_residual++; |
837 | /* Phase 5 - Pre-Data transfer stage */ | 837 | /* fall through */ |
838 | case 5: | 838 | |
839 | case 5: /* Phase 5 - Pre-Data transfer stage */ | ||
839 | /* Spin lock for BUSY */ | 840 | /* Spin lock for BUSY */ |
840 | w_ctr(ppb, 0x0c); | 841 | w_ctr(ppb, 0x0c); |
841 | if (!(r_str(ppb) & 0x80)) | 842 | if (!(r_str(ppb) & 0x80)) |
@@ -850,9 +851,9 @@ static int imm_engine(imm_struct *dev, struct scsi_cmnd *cmd) | |||
850 | if (imm_negotiate(dev)) | 851 | if (imm_negotiate(dev)) |
851 | return 0; | 852 | return 0; |
852 | cmd->SCp.phase++; | 853 | cmd->SCp.phase++; |
854 | /* fall through */ | ||
853 | 855 | ||
854 | /* Phase 6 - Data transfer stage */ | 856 | case 6: /* Phase 6 - Data transfer stage */ |
855 | case 6: | ||
856 | /* Spin lock for BUSY */ | 857 | /* Spin lock for BUSY */ |
857 | w_ctr(ppb, 0x0c); | 858 | w_ctr(ppb, 0x0c); |
858 | if (!(r_str(ppb) & 0x80)) | 859 | if (!(r_str(ppb) & 0x80)) |
@@ -866,9 +867,9 @@ static int imm_engine(imm_struct *dev, struct scsi_cmnd *cmd) | |||
866 | return 1; | 867 | return 1; |
867 | } | 868 | } |
868 | cmd->SCp.phase++; | 869 | cmd->SCp.phase++; |
870 | /* fall through */ | ||
869 | 871 | ||
870 | /* Phase 7 - Post data transfer stage */ | 872 | case 7: /* Phase 7 - Post data transfer stage */ |
871 | case 7: | ||
872 | if ((dev->dp) && (dev->rd)) { | 873 | if ((dev->dp) && (dev->rd)) { |
873 | if ((dev->mode == IMM_NIBBLE) || (dev->mode == IMM_PS2)) { | 874 | if ((dev->mode == IMM_NIBBLE) || (dev->mode == IMM_PS2)) { |
874 | w_ctr(ppb, 0x4); | 875 | w_ctr(ppb, 0x4); |
@@ -878,9 +879,9 @@ static int imm_engine(imm_struct *dev, struct scsi_cmnd *cmd) | |||
878 | } | 879 | } |
879 | } | 880 | } |
880 | cmd->SCp.phase++; | 881 | cmd->SCp.phase++; |
882 | /* fall through */ | ||
881 | 883 | ||
882 | /* Phase 8 - Read status/message */ | 884 | case 8: /* Phase 8 - Read status/message */ |
883 | case 8: | ||
884 | /* Check for data overrun */ | 885 | /* Check for data overrun */ |
885 | if (imm_wait(dev) != (unsigned char) 0xb8) { | 886 | if (imm_wait(dev) != (unsigned char) 0xb8) { |
886 | imm_fail(dev, DID_ERROR); | 887 | imm_fail(dev, DID_ERROR); |
diff --git a/drivers/scsi/lpfc/lpfc_ct.c b/drivers/scsi/lpfc/lpfc_ct.c index 7290573110fe..44f426347d4f 100644 --- a/drivers/scsi/lpfc/lpfc_ct.c +++ b/drivers/scsi/lpfc/lpfc_ct.c | |||
@@ -3092,6 +3092,7 @@ port_out: | |||
3092 | case SLI_MGMT_GHAT: | 3092 | case SLI_MGMT_GHAT: |
3093 | case SLI_MGMT_GRPL: | 3093 | case SLI_MGMT_GRPL: |
3094 | rsp_size = FC_MAX_NS_RSP; | 3094 | rsp_size = FC_MAX_NS_RSP; |
3095 | /* fall through */ | ||
3095 | case SLI_MGMT_DHBA: | 3096 | case SLI_MGMT_DHBA: |
3096 | case SLI_MGMT_DHAT: | 3097 | case SLI_MGMT_DHAT: |
3097 | pe = (struct lpfc_fdmi_port_entry *)&CtReq->un.PortID; | 3098 | pe = (struct lpfc_fdmi_port_entry *)&CtReq->un.PortID; |
@@ -3104,6 +3105,7 @@ port_out: | |||
3104 | case SLI_MGMT_GPAT: | 3105 | case SLI_MGMT_GPAT: |
3105 | case SLI_MGMT_GPAS: | 3106 | case SLI_MGMT_GPAS: |
3106 | rsp_size = FC_MAX_NS_RSP; | 3107 | rsp_size = FC_MAX_NS_RSP; |
3108 | /* fall through */ | ||
3107 | case SLI_MGMT_DPRT: | 3109 | case SLI_MGMT_DPRT: |
3108 | case SLI_MGMT_DPA: | 3110 | case SLI_MGMT_DPA: |
3109 | pe = (struct lpfc_fdmi_port_entry *)&CtReq->un.PortID; | 3111 | pe = (struct lpfc_fdmi_port_entry *)&CtReq->un.PortID; |
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index fc077cb87900..7b0755e3527d 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c | |||
@@ -8775,6 +8775,7 @@ lpfc_cmpl_reg_new_vport(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) | |||
8775 | lpfc_nlp_put(ndlp); | 8775 | lpfc_nlp_put(ndlp); |
8776 | return; | 8776 | return; |
8777 | } | 8777 | } |
8778 | /* fall through */ | ||
8778 | 8779 | ||
8779 | default: | 8780 | default: |
8780 | /* Try to recover from this error */ | 8781 | /* Try to recover from this error */ |
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index aa4961a2caf8..14fffbebbbb5 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c | |||
@@ -4667,9 +4667,11 @@ lpfc_check_sli_ndlp(struct lpfc_hba *phba, | |||
4667 | case CMD_GEN_REQUEST64_CR: | 4667 | case CMD_GEN_REQUEST64_CR: |
4668 | if (iocb->context_un.ndlp == ndlp) | 4668 | if (iocb->context_un.ndlp == ndlp) |
4669 | return 1; | 4669 | return 1; |
4670 | /* fall through */ | ||
4670 | case CMD_ELS_REQUEST64_CR: | 4671 | case CMD_ELS_REQUEST64_CR: |
4671 | if (icmd->un.elsreq64.remoteID == ndlp->nlp_DID) | 4672 | if (icmd->un.elsreq64.remoteID == ndlp->nlp_DID) |
4672 | return 1; | 4673 | return 1; |
4674 | /* fall through */ | ||
4673 | case CMD_XMIT_ELS_RSP64_CX: | 4675 | case CMD_XMIT_ELS_RSP64_CX: |
4674 | if (iocb->context1 == (uint8_t *) ndlp) | 4676 | if (iocb->context1 == (uint8_t *) ndlp) |
4675 | return 1; | 4677 | return 1; |
@@ -5856,7 +5858,7 @@ restart_disc: | |||
5856 | 5858 | ||
5857 | case LPFC_LINK_UP: | 5859 | case LPFC_LINK_UP: |
5858 | lpfc_issue_clear_la(phba, vport); | 5860 | lpfc_issue_clear_la(phba, vport); |
5859 | /* Drop thru */ | 5861 | /* fall through */ |
5860 | case LPFC_LINK_UNKNOWN: | 5862 | case LPFC_LINK_UNKNOWN: |
5861 | case LPFC_WARM_START: | 5863 | case LPFC_WARM_START: |
5862 | case LPFC_INIT_START: | 5864 | case LPFC_INIT_START: |
diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_nportdisc.c index 6172682a24ba..11d284c5486e 100644 --- a/drivers/scsi/lpfc/lpfc_nportdisc.c +++ b/drivers/scsi/lpfc/lpfc_nportdisc.c | |||
@@ -360,6 +360,7 @@ lpfc_rcv_plogi(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, | |||
360 | case NLP_STE_NPR_NODE: | 360 | case NLP_STE_NPR_NODE: |
361 | if (!(ndlp->nlp_flag & NLP_NPR_ADISC)) | 361 | if (!(ndlp->nlp_flag & NLP_NPR_ADISC)) |
362 | break; | 362 | break; |
363 | /* fall through */ | ||
363 | case NLP_STE_REG_LOGIN_ISSUE: | 364 | case NLP_STE_REG_LOGIN_ISSUE: |
364 | case NLP_STE_PRLI_ISSUE: | 365 | case NLP_STE_PRLI_ISSUE: |
365 | case NLP_STE_UNMAPPED_NODE: | 366 | case NLP_STE_UNMAPPED_NODE: |
diff --git a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c index 1aa00d2c3f74..d16ca413110d 100644 --- a/drivers/scsi/lpfc/lpfc_nvme.c +++ b/drivers/scsi/lpfc/lpfc_nvme.c | |||
@@ -1106,6 +1106,7 @@ lpfc_nvme_io_cmd_wqe_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pwqeIn, | |||
1106 | lpfc_ncmd, nCmd, | 1106 | lpfc_ncmd, nCmd, |
1107 | lpfc_ncmd->cur_iocbq.sli4_xritag, | 1107 | lpfc_ncmd->cur_iocbq.sli4_xritag, |
1108 | bf_get(lpfc_wcqe_c_xb, wcqe)); | 1108 | bf_get(lpfc_wcqe_c_xb, wcqe)); |
1109 | /* fall through */ | ||
1109 | default: | 1110 | default: |
1110 | out_err: | 1111 | out_err: |
1111 | lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR, | 1112 | lpfc_printf_vlog(vport, KERN_INFO, LOG_NVME_IOERR, |
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index a497b2c0cb79..ff3c5e0f4e2b 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -1137,7 +1137,7 @@ lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |||
1137 | 1137 | ||
1138 | break; | 1138 | break; |
1139 | } | 1139 | } |
1140 | /* Drop thru */ | 1140 | /* fall through */ |
1141 | case SCSI_PROT_WRITE_INSERT: | 1141 | case SCSI_PROT_WRITE_INSERT: |
1142 | /* | 1142 | /* |
1143 | * For WRITE_INSERT, force the error | 1143 | * For WRITE_INSERT, force the error |
@@ -1256,7 +1256,7 @@ lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |||
1256 | rc = BG_ERR_TGT | BG_ERR_CHECK; | 1256 | rc = BG_ERR_TGT | BG_ERR_CHECK; |
1257 | break; | 1257 | break; |
1258 | } | 1258 | } |
1259 | /* Drop thru */ | 1259 | /* fall through */ |
1260 | case SCSI_PROT_WRITE_INSERT: | 1260 | case SCSI_PROT_WRITE_INSERT: |
1261 | /* | 1261 | /* |
1262 | * For WRITE_INSERT, force the | 1262 | * For WRITE_INSERT, force the |
@@ -1338,7 +1338,7 @@ lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc, | |||
1338 | switch (op) { | 1338 | switch (op) { |
1339 | case SCSI_PROT_WRITE_PASS: | 1339 | case SCSI_PROT_WRITE_PASS: |
1340 | rc = BG_ERR_CHECK; | 1340 | rc = BG_ERR_CHECK; |
1341 | /* Drop thru */ | 1341 | /* fall through */ |
1342 | 1342 | ||
1343 | case SCSI_PROT_WRITE_INSERT: | 1343 | case SCSI_PROT_WRITE_INSERT: |
1344 | /* | 1344 | /* |
@@ -3822,7 +3822,7 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn, | |||
3822 | lpfc_cmd->cur_iocbq.sli4_lxritag, | 3822 | lpfc_cmd->cur_iocbq.sli4_lxritag, |
3823 | 0, 0); | 3823 | 0, 0); |
3824 | } | 3824 | } |
3825 | /* else: fall through */ | 3825 | /* fall through */ |
3826 | default: | 3826 | default: |
3827 | cmd->result = DID_ERROR << 16; | 3827 | cmd->result = DID_ERROR << 16; |
3828 | break; | 3828 | break; |
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index be3c73ebbfde..4bad54463eb2 100644 --- a/drivers/scsi/osst.c +++ b/drivers/scsi/osst.c | |||
@@ -216,12 +216,14 @@ static void osst_analyze_sense(struct osst_request *SRpnt, struct st_cmdstatus * | |||
216 | switch (sense[0] & 0x7f) { | 216 | switch (sense[0] & 0x7f) { |
217 | case 0x71: | 217 | case 0x71: |
218 | s->deferred = 1; | 218 | s->deferred = 1; |
219 | /* fall through */ | ||
219 | case 0x70: | 220 | case 0x70: |
220 | s->fixed_format = 1; | 221 | s->fixed_format = 1; |
221 | s->flags = sense[2] & 0xe0; | 222 | s->flags = sense[2] & 0xe0; |
222 | break; | 223 | break; |
223 | case 0x73: | 224 | case 0x73: |
224 | s->deferred = 1; | 225 | s->deferred = 1; |
226 | /* fall through */ | ||
225 | case 0x72: | 227 | case 0x72: |
226 | s->fixed_format = 0; | 228 | s->fixed_format = 0; |
227 | ucp = scsi_sense_desc_find(sense, SCSI_SENSE_BUFFERSIZE, 4); | 229 | ucp = scsi_sense_desc_find(sense, SCSI_SENSE_BUFFERSIZE, 4); |
@@ -591,6 +593,7 @@ static void osst_init_aux(struct osst_tape * STp, int frame_type, int frame_seq_ | |||
591 | dat->dat_list[0].flags = frame_type==OS_FRAME_TYPE_MARKER? | 593 | dat->dat_list[0].flags = frame_type==OS_FRAME_TYPE_MARKER? |
592 | OS_DAT_FLAGS_MARK:OS_DAT_FLAGS_DATA; | 594 | OS_DAT_FLAGS_MARK:OS_DAT_FLAGS_DATA; |
593 | dat->dat_list[0].reserved = 0; | 595 | dat->dat_list[0].reserved = 0; |
596 | /* fall through */ | ||
594 | case OS_FRAME_TYPE_EOD: | 597 | case OS_FRAME_TYPE_EOD: |
595 | aux->update_frame_cntr = htonl(0); | 598 | aux->update_frame_cntr = htonl(0); |
596 | par->partition_num = OS_DATA_PARTITION; | 599 | par->partition_num = OS_DATA_PARTITION; |
@@ -4086,6 +4089,7 @@ static int osst_int_ioctl(struct osst_tape * STp, struct osst_request ** aSRpnt, | |||
4086 | switch (cmd_in) { | 4089 | switch (cmd_in) { |
4087 | case MTFSFM: | 4090 | case MTFSFM: |
4088 | chg_eof = 0; /* Changed from the FSF after this */ | 4091 | chg_eof = 0; /* Changed from the FSF after this */ |
4092 | /* fall through */ | ||
4089 | case MTFSF: | 4093 | case MTFSF: |
4090 | if (STp->raw) | 4094 | if (STp->raw) |
4091 | return (-EIO); | 4095 | return (-EIO); |
@@ -4101,6 +4105,7 @@ static int osst_int_ioctl(struct osst_tape * STp, struct osst_request ** aSRpnt, | |||
4101 | 4105 | ||
4102 | case MTBSF: | 4106 | case MTBSF: |
4103 | chg_eof = 0; /* Changed from the FSF after this */ | 4107 | chg_eof = 0; /* Changed from the FSF after this */ |
4108 | /* fall through */ | ||
4104 | case MTBSFM: | 4109 | case MTBSFM: |
4105 | if (STp->raw) | 4110 | if (STp->raw) |
4106 | return (-EIO); | 4111 | return (-EIO); |
@@ -4312,6 +4317,7 @@ static int osst_int_ioctl(struct osst_tape * STp, struct osst_request ** aSRpnt, | |||
4312 | name, STp->block_size); | 4317 | name, STp->block_size); |
4313 | return 0; | 4318 | return 0; |
4314 | } | 4319 | } |
4320 | /* fall through */ | ||
4315 | case MTSETDENSITY: /* Set tape density */ | 4321 | case MTSETDENSITY: /* Set tape density */ |
4316 | case MTSETDRVBUFFER: /* Set drive buffering */ | 4322 | case MTSETDRVBUFFER: /* Set drive buffering */ |
4317 | case SET_DENS_AND_BLK: /* Set density and block size */ | 4323 | case SET_DENS_AND_BLK: /* Set density and block size */ |
diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c index c182b5458f98..35213082e933 100644 --- a/drivers/scsi/ppa.c +++ b/drivers/scsi/ppa.c | |||
@@ -717,6 +717,7 @@ static int ppa_engine(ppa_struct *dev, struct scsi_cmnd *cmd) | |||
717 | } | 717 | } |
718 | cmd->SCp.phase++; | 718 | cmd->SCp.phase++; |
719 | } | 719 | } |
720 | /* fall through */ | ||
720 | 721 | ||
721 | case 2: /* Phase 2 - We are now talking to the scsi bus */ | 722 | case 2: /* Phase 2 - We are now talking to the scsi bus */ |
722 | if (!ppa_select(dev, scmd_id(cmd))) { | 723 | if (!ppa_select(dev, scmd_id(cmd))) { |
diff --git a/drivers/scsi/sym53c8xx_2/sym_hipd.c b/drivers/scsi/sym53c8xx_2/sym_hipd.c index 0a2a54517b15..054fb0599263 100644 --- a/drivers/scsi/sym53c8xx_2/sym_hipd.c +++ b/drivers/scsi/sym53c8xx_2/sym_hipd.c | |||
@@ -3072,6 +3072,7 @@ static void sym_sir_bad_scsi_status(struct sym_hcb *np, int num, struct sym_ccb | |||
3072 | sym_print_addr(cp->cmd, "%s\n", | 3072 | sym_print_addr(cp->cmd, "%s\n", |
3073 | s_status == S_BUSY ? "BUSY" : "QUEUE FULL\n"); | 3073 | s_status == S_BUSY ? "BUSY" : "QUEUE FULL\n"); |
3074 | } | 3074 | } |
3075 | /* fall through */ | ||
3075 | default: /* S_INT, S_INT_COND_MET, S_CONFLICT */ | 3076 | default: /* S_INT, S_INT_COND_MET, S_CONFLICT */ |
3076 | sym_complete_error (np, cp); | 3077 | sym_complete_error (np, cp); |
3077 | break; | 3078 | break; |
@@ -4632,6 +4633,7 @@ static void sym_int_sir(struct sym_hcb *np) | |||
4632 | * Negotiation failed. | 4633 | * Negotiation failed. |
4633 | * Target does not want answer message. | 4634 | * Target does not want answer message. |
4634 | */ | 4635 | */ |
4636 | /* fall through */ | ||
4635 | case SIR_NEGO_PROTO: | 4637 | case SIR_NEGO_PROTO: |
4636 | sym_nego_default(np, tp, cp); | 4638 | sym_nego_default(np, tp, cp); |
4637 | goto out; | 4639 | goto out; |
diff --git a/drivers/scsi/sym53c8xx_2/sym_nvram.c b/drivers/scsi/sym53c8xx_2/sym_nvram.c index 5662fbb3ff60..0d37b4f07b5e 100644 --- a/drivers/scsi/sym53c8xx_2/sym_nvram.c +++ b/drivers/scsi/sym53c8xx_2/sym_nvram.c | |||
@@ -708,6 +708,7 @@ static int sym_read_Tekram_nvram (struct sym_device *np, Tekram_nvram *nvram) | |||
708 | data, len); | 708 | data, len); |
709 | if (!x) | 709 | if (!x) |
710 | break; | 710 | break; |
711 | /* fall through */ | ||
711 | default: | 712 | default: |
712 | x = sym_read_T93C46_nvram(np, nvram); | 713 | x = sym_read_T93C46_nvram(np, nvram); |
713 | break; | 714 | break; |
diff --git a/fs/adfs/dir_f.c b/fs/adfs/dir_f.c index 0fbfd0b04ae0..382c9d7ad375 100644 --- a/fs/adfs/dir_f.c +++ b/fs/adfs/dir_f.c | |||
@@ -24,8 +24,11 @@ static inline unsigned int adfs_readval(unsigned char *p, int len) | |||
24 | 24 | ||
25 | switch (len) { | 25 | switch (len) { |
26 | case 4: val |= p[3] << 24; | 26 | case 4: val |= p[3] << 24; |
27 | /* fall through */ | ||
27 | case 3: val |= p[2] << 16; | 28 | case 3: val |= p[2] << 16; |
29 | /* fall through */ | ||
28 | case 2: val |= p[1] << 8; | 30 | case 2: val |= p[1] << 8; |
31 | /* fall through */ | ||
29 | default: val |= p[0]; | 32 | default: val |= p[0]; |
30 | } | 33 | } |
31 | return val; | 34 | return val; |
@@ -35,8 +38,11 @@ static inline void adfs_writeval(unsigned char *p, int len, unsigned int val) | |||
35 | { | 38 | { |
36 | switch (len) { | 39 | switch (len) { |
37 | case 4: p[3] = val >> 24; | 40 | case 4: p[3] = val >> 24; |
41 | /* fall through */ | ||
38 | case 3: p[2] = val >> 16; | 42 | case 3: p[2] = val >> 16; |
43 | /* fall through */ | ||
39 | case 2: p[1] = val >> 8; | 44 | case 2: p[1] = val >> 8; |
45 | /* fall through */ | ||
40 | default: p[0] = val; | 46 | default: p[0] = val; |
41 | } | 47 | } |
42 | } | 48 | } |
diff --git a/fs/affs/super.c b/fs/affs/super.c index d58217f0baaa..7370228eefb2 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -481,7 +481,7 @@ got_root: | |||
481 | break; | 481 | break; |
482 | case MUFS_OFS: | 482 | case MUFS_OFS: |
483 | affs_set_opt(sbi->s_flags, SF_MUFS); | 483 | affs_set_opt(sbi->s_flags, SF_MUFS); |
484 | /* fall thru */ | 484 | /* fall through */ |
485 | case FS_OFS: | 485 | case FS_OFS: |
486 | affs_set_opt(sbi->s_flags, SF_OFS); | 486 | affs_set_opt(sbi->s_flags, SF_OFS); |
487 | sb->s_flags |= SB_NOEXEC; | 487 | sb->s_flags |= SB_NOEXEC; |
@@ -489,6 +489,7 @@ got_root: | |||
489 | case MUFS_DCOFS: | 489 | case MUFS_DCOFS: |
490 | case MUFS_INTLOFS: | 490 | case MUFS_INTLOFS: |
491 | affs_set_opt(sbi->s_flags, SF_MUFS); | 491 | affs_set_opt(sbi->s_flags, SF_MUFS); |
492 | /* fall through */ | ||
492 | case FS_DCOFS: | 493 | case FS_DCOFS: |
493 | case FS_INTLOFS: | 494 | case FS_INTLOFS: |
494 | affs_set_opt(sbi->s_flags, SF_INTL); | 495 | affs_set_opt(sbi->s_flags, SF_INTL); |
diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c index 2f8acb4c556d..748090014519 100644 --- a/fs/afs/cmservice.c +++ b/fs/afs/cmservice.c | |||
@@ -285,6 +285,7 @@ static int afs_deliver_cb_callback(struct afs_call *call) | |||
285 | call->unmarshall++; | 285 | call->unmarshall++; |
286 | 286 | ||
287 | /* extract the FID array and its count in two steps */ | 287 | /* extract the FID array and its count in two steps */ |
288 | /* fall through */ | ||
288 | case 1: | 289 | case 1: |
289 | _debug("extract FID count"); | 290 | _debug("extract FID count"); |
290 | ret = afs_extract_data(call, true); | 291 | ret = afs_extract_data(call, true); |
@@ -304,6 +305,7 @@ static int afs_deliver_cb_callback(struct afs_call *call) | |||
304 | afs_extract_to_buf(call, call->count * 3 * 4); | 305 | afs_extract_to_buf(call, call->count * 3 * 4); |
305 | call->unmarshall++; | 306 | call->unmarshall++; |
306 | 307 | ||
308 | /* Fall through */ | ||
307 | case 2: | 309 | case 2: |
308 | _debug("extract FID array"); | 310 | _debug("extract FID array"); |
309 | ret = afs_extract_data(call, true); | 311 | ret = afs_extract_data(call, true); |
@@ -329,6 +331,7 @@ static int afs_deliver_cb_callback(struct afs_call *call) | |||
329 | call->unmarshall++; | 331 | call->unmarshall++; |
330 | 332 | ||
331 | /* extract the callback array and its count in two steps */ | 333 | /* extract the callback array and its count in two steps */ |
334 | /* fall through */ | ||
332 | case 3: | 335 | case 3: |
333 | _debug("extract CB count"); | 336 | _debug("extract CB count"); |
334 | ret = afs_extract_data(call, true); | 337 | ret = afs_extract_data(call, true); |
@@ -344,6 +347,7 @@ static int afs_deliver_cb_callback(struct afs_call *call) | |||
344 | iov_iter_discard(&call->iter, READ, call->count2 * 3 * 4); | 347 | iov_iter_discard(&call->iter, READ, call->count2 * 3 * 4); |
345 | call->unmarshall++; | 348 | call->unmarshall++; |
346 | 349 | ||
350 | /* Fall through */ | ||
347 | case 4: | 351 | case 4: |
348 | _debug("extract discard %zu/%u", | 352 | _debug("extract discard %zu/%u", |
349 | iov_iter_count(&call->iter), call->count2 * 3 * 4); | 353 | iov_iter_count(&call->iter), call->count2 * 3 * 4); |
@@ -422,6 +426,7 @@ static int afs_deliver_cb_init_call_back_state3(struct afs_call *call) | |||
422 | afs_extract_to_buf(call, 11 * sizeof(__be32)); | 426 | afs_extract_to_buf(call, 11 * sizeof(__be32)); |
423 | call->unmarshall++; | 427 | call->unmarshall++; |
424 | 428 | ||
429 | /* Fall through */ | ||
425 | case 1: | 430 | case 1: |
426 | _debug("extract UUID"); | 431 | _debug("extract UUID"); |
427 | ret = afs_extract_data(call, false); | 432 | ret = afs_extract_data(call, false); |
@@ -537,6 +542,7 @@ static int afs_deliver_cb_probe_uuid(struct afs_call *call) | |||
537 | afs_extract_to_buf(call, 11 * sizeof(__be32)); | 542 | afs_extract_to_buf(call, 11 * sizeof(__be32)); |
538 | call->unmarshall++; | 543 | call->unmarshall++; |
539 | 544 | ||
545 | /* Fall through */ | ||
540 | case 1: | 546 | case 1: |
541 | _debug("extract UUID"); | 547 | _debug("extract UUID"); |
542 | ret = afs_extract_data(call, false); | 548 | ret = afs_extract_data(call, false); |
@@ -673,6 +679,7 @@ static int afs_deliver_yfs_cb_callback(struct afs_call *call) | |||
673 | call->unmarshall++; | 679 | call->unmarshall++; |
674 | 680 | ||
675 | /* extract the FID array and its count in two steps */ | 681 | /* extract the FID array and its count in two steps */ |
682 | /* Fall through */ | ||
676 | case 1: | 683 | case 1: |
677 | _debug("extract FID count"); | 684 | _debug("extract FID count"); |
678 | ret = afs_extract_data(call, true); | 685 | ret = afs_extract_data(call, true); |
@@ -692,6 +699,7 @@ static int afs_deliver_yfs_cb_callback(struct afs_call *call) | |||
692 | afs_extract_to_buf(call, size); | 699 | afs_extract_to_buf(call, size); |
693 | call->unmarshall++; | 700 | call->unmarshall++; |
694 | 701 | ||
702 | /* Fall through */ | ||
695 | case 2: | 703 | case 2: |
696 | _debug("extract FID array"); | 704 | _debug("extract FID array"); |
697 | ret = afs_extract_data(call, false); | 705 | ret = afs_extract_data(call, false); |
diff --git a/fs/afs/file.c b/fs/afs/file.c index 323ae9912203..e8d6619890a9 100644 --- a/fs/afs/file.c +++ b/fs/afs/file.c | |||
@@ -300,6 +300,8 @@ int afs_page_filler(void *data, struct page *page) | |||
300 | /* page will not be cached */ | 300 | /* page will not be cached */ |
301 | case -ENOBUFS: | 301 | case -ENOBUFS: |
302 | _debug("cache said ENOBUFS"); | 302 | _debug("cache said ENOBUFS"); |
303 | |||
304 | /* fall through */ | ||
303 | default: | 305 | default: |
304 | go_on: | 306 | go_on: |
305 | req = kzalloc(sizeof(struct afs_read) + sizeof(struct page *), | 307 | req = kzalloc(sizeof(struct afs_read) + sizeof(struct page *), |
diff --git a/fs/afs/flock.c b/fs/afs/flock.c index e432bd27a2e7..6a0174258382 100644 --- a/fs/afs/flock.c +++ b/fs/afs/flock.c | |||
@@ -303,6 +303,7 @@ again: | |||
303 | return; | 303 | return; |
304 | } | 304 | } |
305 | 305 | ||
306 | /* Fall through */ | ||
306 | default: | 307 | default: |
307 | /* Looks like a lock request was withdrawn. */ | 308 | /* Looks like a lock request was withdrawn. */ |
308 | spin_unlock(&vnode->lock); | 309 | spin_unlock(&vnode->lock); |
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c index 0b37867b5c20..b68471ce5c35 100644 --- a/fs/afs/fsclient.c +++ b/fs/afs/fsclient.c | |||
@@ -498,7 +498,7 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call) | |||
498 | afs_extract_to_tmp(call); | 498 | afs_extract_to_tmp(call); |
499 | } | 499 | } |
500 | 500 | ||
501 | /* extract the returned data length */ | 501 | /* Fall through - and extract the returned data length */ |
502 | case 1: | 502 | case 1: |
503 | _debug("extract data length"); | 503 | _debug("extract data length"); |
504 | ret = afs_extract_data(call, true); | 504 | ret = afs_extract_data(call, true); |
@@ -525,7 +525,7 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call) | |||
525 | iov_iter_bvec(&call->iter, READ, call->bvec, 1, size); | 525 | iov_iter_bvec(&call->iter, READ, call->bvec, 1, size); |
526 | ASSERTCMP(size, <=, PAGE_SIZE); | 526 | ASSERTCMP(size, <=, PAGE_SIZE); |
527 | 527 | ||
528 | /* extract the returned data */ | 528 | /* Fall through - and extract the returned data */ |
529 | case 2: | 529 | case 2: |
530 | _debug("extract data %zu/%llu", | 530 | _debug("extract data %zu/%llu", |
531 | iov_iter_count(&call->iter), req->remain); | 531 | iov_iter_count(&call->iter), req->remain); |
@@ -552,6 +552,8 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call) | |||
552 | /* Discard any excess data the server gave us */ | 552 | /* Discard any excess data the server gave us */ |
553 | iov_iter_discard(&call->iter, READ, req->actual_len - req->len); | 553 | iov_iter_discard(&call->iter, READ, req->actual_len - req->len); |
554 | call->unmarshall = 3; | 554 | call->unmarshall = 3; |
555 | |||
556 | /* Fall through */ | ||
555 | case 3: | 557 | case 3: |
556 | _debug("extract discard %zu/%llu", | 558 | _debug("extract discard %zu/%llu", |
557 | iov_iter_count(&call->iter), req->actual_len - req->len); | 559 | iov_iter_count(&call->iter), req->actual_len - req->len); |
@@ -564,7 +566,7 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call) | |||
564 | call->unmarshall = 4; | 566 | call->unmarshall = 4; |
565 | afs_extract_to_buf(call, (21 + 3 + 6) * 4); | 567 | afs_extract_to_buf(call, (21 + 3 + 6) * 4); |
566 | 568 | ||
567 | /* extract the metadata */ | 569 | /* Fall through - and extract the metadata */ |
568 | case 4: | 570 | case 4: |
569 | ret = afs_extract_data(call, false); | 571 | ret = afs_extract_data(call, false); |
570 | if (ret < 0) | 572 | if (ret < 0) |
@@ -1634,7 +1636,7 @@ static int afs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1634 | call->unmarshall++; | 1636 | call->unmarshall++; |
1635 | afs_extract_to_buf(call, 12 * 4); | 1637 | afs_extract_to_buf(call, 12 * 4); |
1636 | 1638 | ||
1637 | /* extract the returned status record */ | 1639 | /* Fall through - and extract the returned status record */ |
1638 | case 1: | 1640 | case 1: |
1639 | _debug("extract status"); | 1641 | _debug("extract status"); |
1640 | ret = afs_extract_data(call, true); | 1642 | ret = afs_extract_data(call, true); |
@@ -1646,7 +1648,7 @@ static int afs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1646 | call->unmarshall++; | 1648 | call->unmarshall++; |
1647 | afs_extract_to_tmp(call); | 1649 | afs_extract_to_tmp(call); |
1648 | 1650 | ||
1649 | /* extract the volume name length */ | 1651 | /* Fall through - and extract the volume name length */ |
1650 | case 2: | 1652 | case 2: |
1651 | ret = afs_extract_data(call, true); | 1653 | ret = afs_extract_data(call, true); |
1652 | if (ret < 0) | 1654 | if (ret < 0) |
@@ -1661,7 +1663,7 @@ static int afs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1661 | afs_extract_begin(call, call->reply[2], size); | 1663 | afs_extract_begin(call, call->reply[2], size); |
1662 | call->unmarshall++; | 1664 | call->unmarshall++; |
1663 | 1665 | ||
1664 | /* extract the volume name */ | 1666 | /* Fall through - and extract the volume name */ |
1665 | case 3: | 1667 | case 3: |
1666 | _debug("extract volname"); | 1668 | _debug("extract volname"); |
1667 | ret = afs_extract_data(call, true); | 1669 | ret = afs_extract_data(call, true); |
@@ -1674,7 +1676,7 @@ static int afs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1674 | afs_extract_to_tmp(call); | 1676 | afs_extract_to_tmp(call); |
1675 | call->unmarshall++; | 1677 | call->unmarshall++; |
1676 | 1678 | ||
1677 | /* extract the offline message length */ | 1679 | /* Fall through - and extract the offline message length */ |
1678 | case 4: | 1680 | case 4: |
1679 | ret = afs_extract_data(call, true); | 1681 | ret = afs_extract_data(call, true); |
1680 | if (ret < 0) | 1682 | if (ret < 0) |
@@ -1689,7 +1691,7 @@ static int afs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1689 | afs_extract_begin(call, call->reply[2], size); | 1691 | afs_extract_begin(call, call->reply[2], size); |
1690 | call->unmarshall++; | 1692 | call->unmarshall++; |
1691 | 1693 | ||
1692 | /* extract the offline message */ | 1694 | /* Fall through - and extract the offline message */ |
1693 | case 5: | 1695 | case 5: |
1694 | _debug("extract offline"); | 1696 | _debug("extract offline"); |
1695 | ret = afs_extract_data(call, true); | 1697 | ret = afs_extract_data(call, true); |
@@ -1703,7 +1705,7 @@ static int afs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1703 | afs_extract_to_tmp(call); | 1705 | afs_extract_to_tmp(call); |
1704 | call->unmarshall++; | 1706 | call->unmarshall++; |
1705 | 1707 | ||
1706 | /* extract the message of the day length */ | 1708 | /* Fall through - and extract the message of the day length */ |
1707 | case 6: | 1709 | case 6: |
1708 | ret = afs_extract_data(call, true); | 1710 | ret = afs_extract_data(call, true); |
1709 | if (ret < 0) | 1711 | if (ret < 0) |
@@ -1718,7 +1720,7 @@ static int afs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1718 | afs_extract_begin(call, call->reply[2], size); | 1720 | afs_extract_begin(call, call->reply[2], size); |
1719 | call->unmarshall++; | 1721 | call->unmarshall++; |
1720 | 1722 | ||
1721 | /* extract the message of the day */ | 1723 | /* Fall through - and extract the message of the day */ |
1722 | case 7: | 1724 | case 7: |
1723 | _debug("extract motd"); | 1725 | _debug("extract motd"); |
1724 | ret = afs_extract_data(call, false); | 1726 | ret = afs_extract_data(call, false); |
@@ -2016,7 +2018,7 @@ static int afs_deliver_fs_get_capabilities(struct afs_call *call) | |||
2016 | afs_extract_to_tmp(call); | 2018 | afs_extract_to_tmp(call); |
2017 | call->unmarshall++; | 2019 | call->unmarshall++; |
2018 | 2020 | ||
2019 | /* Extract the capabilities word count */ | 2021 | /* Fall through - and extract the capabilities word count */ |
2020 | case 1: | 2022 | case 1: |
2021 | ret = afs_extract_data(call, true); | 2023 | ret = afs_extract_data(call, true); |
2022 | if (ret < 0) | 2024 | if (ret < 0) |
@@ -2029,7 +2031,7 @@ static int afs_deliver_fs_get_capabilities(struct afs_call *call) | |||
2029 | iov_iter_discard(&call->iter, READ, count * sizeof(__be32)); | 2031 | iov_iter_discard(&call->iter, READ, count * sizeof(__be32)); |
2030 | call->unmarshall++; | 2032 | call->unmarshall++; |
2031 | 2033 | ||
2032 | /* Extract capabilities words */ | 2034 | /* Fall through - and extract capabilities words */ |
2033 | case 2: | 2035 | case 2: |
2034 | ret = afs_extract_data(call, false); | 2036 | ret = afs_extract_data(call, false); |
2035 | if (ret < 0) | 2037 | if (ret < 0) |
@@ -2206,6 +2208,7 @@ static int afs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2206 | call->unmarshall++; | 2208 | call->unmarshall++; |
2207 | 2209 | ||
2208 | /* Extract the file status count and array in two steps */ | 2210 | /* Extract the file status count and array in two steps */ |
2211 | /* Fall through */ | ||
2209 | case 1: | 2212 | case 1: |
2210 | _debug("extract status count"); | 2213 | _debug("extract status count"); |
2211 | ret = afs_extract_data(call, true); | 2214 | ret = afs_extract_data(call, true); |
@@ -2223,6 +2226,7 @@ static int afs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2223 | more_counts: | 2226 | more_counts: |
2224 | afs_extract_to_buf(call, 21 * sizeof(__be32)); | 2227 | afs_extract_to_buf(call, 21 * sizeof(__be32)); |
2225 | 2228 | ||
2229 | /* Fall through */ | ||
2226 | case 2: | 2230 | case 2: |
2227 | _debug("extract status array %u", call->count); | 2231 | _debug("extract status array %u", call->count); |
2228 | ret = afs_extract_data(call, true); | 2232 | ret = afs_extract_data(call, true); |
@@ -2246,6 +2250,7 @@ static int afs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2246 | afs_extract_to_tmp(call); | 2250 | afs_extract_to_tmp(call); |
2247 | 2251 | ||
2248 | /* Extract the callback count and array in two steps */ | 2252 | /* Extract the callback count and array in two steps */ |
2253 | /* Fall through */ | ||
2249 | case 3: | 2254 | case 3: |
2250 | _debug("extract CB count"); | 2255 | _debug("extract CB count"); |
2251 | ret = afs_extract_data(call, true); | 2256 | ret = afs_extract_data(call, true); |
@@ -2262,6 +2267,7 @@ static int afs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2262 | more_cbs: | 2267 | more_cbs: |
2263 | afs_extract_to_buf(call, 3 * sizeof(__be32)); | 2268 | afs_extract_to_buf(call, 3 * sizeof(__be32)); |
2264 | 2269 | ||
2270 | /* Fall through */ | ||
2265 | case 4: | 2271 | case 4: |
2266 | _debug("extract CB array"); | 2272 | _debug("extract CB array"); |
2267 | ret = afs_extract_data(call, true); | 2273 | ret = afs_extract_data(call, true); |
@@ -2284,6 +2290,7 @@ static int afs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2284 | afs_extract_to_buf(call, 6 * sizeof(__be32)); | 2290 | afs_extract_to_buf(call, 6 * sizeof(__be32)); |
2285 | call->unmarshall++; | 2291 | call->unmarshall++; |
2286 | 2292 | ||
2293 | /* Fall through */ | ||
2287 | case 5: | 2294 | case 5: |
2288 | ret = afs_extract_data(call, false); | 2295 | ret = afs_extract_data(call, false); |
2289 | if (ret < 0) | 2296 | if (ret < 0) |
diff --git a/fs/afs/misc.c b/fs/afs/misc.c index bbb1fd51b019..7f2af061ea06 100644 --- a/fs/afs/misc.c +++ b/fs/afs/misc.c | |||
@@ -131,33 +131,42 @@ void afs_prioritise_error(struct afs_error *e, int error, u32 abort_code) | |||
131 | if (e->error == -ETIMEDOUT || | 131 | if (e->error == -ETIMEDOUT || |
132 | e->error == -ETIME) | 132 | e->error == -ETIME) |
133 | return; | 133 | return; |
134 | /* Fall through */ | ||
134 | case -ETIMEDOUT: | 135 | case -ETIMEDOUT: |
135 | case -ETIME: | 136 | case -ETIME: |
136 | if (e->error == -ENOMEM || | 137 | if (e->error == -ENOMEM || |
137 | e->error == -ENONET) | 138 | e->error == -ENONET) |
138 | return; | 139 | return; |
140 | /* Fall through */ | ||
139 | case -ENOMEM: | 141 | case -ENOMEM: |
140 | case -ENONET: | 142 | case -ENONET: |
141 | if (e->error == -ERFKILL) | 143 | if (e->error == -ERFKILL) |
142 | return; | 144 | return; |
145 | /* Fall through */ | ||
143 | case -ERFKILL: | 146 | case -ERFKILL: |
144 | if (e->error == -EADDRNOTAVAIL) | 147 | if (e->error == -EADDRNOTAVAIL) |
145 | return; | 148 | return; |
149 | /* Fall through */ | ||
146 | case -EADDRNOTAVAIL: | 150 | case -EADDRNOTAVAIL: |
147 | if (e->error == -ENETUNREACH) | 151 | if (e->error == -ENETUNREACH) |
148 | return; | 152 | return; |
153 | /* Fall through */ | ||
149 | case -ENETUNREACH: | 154 | case -ENETUNREACH: |
150 | if (e->error == -EHOSTUNREACH) | 155 | if (e->error == -EHOSTUNREACH) |
151 | return; | 156 | return; |
157 | /* Fall through */ | ||
152 | case -EHOSTUNREACH: | 158 | case -EHOSTUNREACH: |
153 | if (e->error == -EHOSTDOWN) | 159 | if (e->error == -EHOSTDOWN) |
154 | return; | 160 | return; |
161 | /* Fall through */ | ||
155 | case -EHOSTDOWN: | 162 | case -EHOSTDOWN: |
156 | if (e->error == -ECONNREFUSED) | 163 | if (e->error == -ECONNREFUSED) |
157 | return; | 164 | return; |
165 | /* Fall through */ | ||
158 | case -ECONNREFUSED: | 166 | case -ECONNREFUSED: |
159 | if (e->error == -ECONNRESET) | 167 | if (e->error == -ECONNRESET) |
160 | return; | 168 | return; |
169 | /* Fall through */ | ||
161 | case -ECONNRESET: /* Responded, but call expired. */ | 170 | case -ECONNRESET: /* Responded, but call expired. */ |
162 | if (e->responded) | 171 | if (e->responded) |
163 | return; | 172 | return; |
diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c index 15c7e82d80cb..3ed2c99c58ab 100644 --- a/fs/afs/rxrpc.c +++ b/fs/afs/rxrpc.c | |||
@@ -923,6 +923,7 @@ void afs_send_empty_reply(struct afs_call *call) | |||
923 | _debug("oom"); | 923 | _debug("oom"); |
924 | rxrpc_kernel_abort_call(net->socket, call->rxcall, | 924 | rxrpc_kernel_abort_call(net->socket, call->rxcall, |
925 | RX_USER_ABORT, -ENOMEM, "KOO"); | 925 | RX_USER_ABORT, -ENOMEM, "KOO"); |
926 | /* Fall through */ | ||
926 | default: | 927 | default: |
927 | _leave(" [error]"); | 928 | _leave(" [error]"); |
928 | return; | 929 | return; |
diff --git a/fs/afs/vlclient.c b/fs/afs/vlclient.c index c3d9e5a5f67e..b0175b3ef0e8 100644 --- a/fs/afs/vlclient.c +++ b/fs/afs/vlclient.c | |||
@@ -195,7 +195,9 @@ static int afs_deliver_vl_get_addrs_u(struct afs_call *call) | |||
195 | sizeof(struct afs_uuid__xdr) + 3 * sizeof(__be32)); | 195 | sizeof(struct afs_uuid__xdr) + 3 * sizeof(__be32)); |
196 | call->unmarshall++; | 196 | call->unmarshall++; |
197 | 197 | ||
198 | /* Extract the returned uuid, uniquifier, nentries and blkaddrs size */ | 198 | /* Extract the returned uuid, uniquifier, nentries and |
199 | * blkaddrs size */ | ||
200 | /* Fall through */ | ||
199 | case 1: | 201 | case 1: |
200 | ret = afs_extract_data(call, true); | 202 | ret = afs_extract_data(call, true); |
201 | if (ret < 0) | 203 | if (ret < 0) |
@@ -220,7 +222,7 @@ static int afs_deliver_vl_get_addrs_u(struct afs_call *call) | |||
220 | count = min(call->count, 4U); | 222 | count = min(call->count, 4U); |
221 | afs_extract_to_buf(call, count * sizeof(__be32)); | 223 | afs_extract_to_buf(call, count * sizeof(__be32)); |
222 | 224 | ||
223 | /* Extract entries */ | 225 | /* Fall through - and extract entries */ |
224 | case 2: | 226 | case 2: |
225 | ret = afs_extract_data(call, call->count > 4); | 227 | ret = afs_extract_data(call, call->count > 4); |
226 | if (ret < 0) | 228 | if (ret < 0) |
@@ -323,7 +325,7 @@ static int afs_deliver_vl_get_capabilities(struct afs_call *call) | |||
323 | afs_extract_to_tmp(call); | 325 | afs_extract_to_tmp(call); |
324 | call->unmarshall++; | 326 | call->unmarshall++; |
325 | 327 | ||
326 | /* Extract the capabilities word count */ | 328 | /* Fall through - and extract the capabilities word count */ |
327 | case 1: | 329 | case 1: |
328 | ret = afs_extract_data(call, true); | 330 | ret = afs_extract_data(call, true); |
329 | if (ret < 0) | 331 | if (ret < 0) |
@@ -336,7 +338,7 @@ static int afs_deliver_vl_get_capabilities(struct afs_call *call) | |||
336 | call->unmarshall++; | 338 | call->unmarshall++; |
337 | afs_extract_discard(call, count * sizeof(__be32)); | 339 | afs_extract_discard(call, count * sizeof(__be32)); |
338 | 340 | ||
339 | /* Extract capabilities words */ | 341 | /* Fall through - and extract capabilities words */ |
340 | case 2: | 342 | case 2: |
341 | ret = afs_extract_data(call, false); | 343 | ret = afs_extract_data(call, false); |
342 | if (ret < 0) | 344 | if (ret < 0) |
@@ -436,6 +438,7 @@ static int afs_deliver_yfsvl_get_endpoints(struct afs_call *call) | |||
436 | /* Extract the returned uuid, uniquifier, fsEndpoints count and | 438 | /* Extract the returned uuid, uniquifier, fsEndpoints count and |
437 | * either the first fsEndpoint type or the volEndpoints | 439 | * either the first fsEndpoint type or the volEndpoints |
438 | * count if there are no fsEndpoints. */ | 440 | * count if there are no fsEndpoints. */ |
441 | /* Fall through */ | ||
439 | case 1: | 442 | case 1: |
440 | ret = afs_extract_data(call, true); | 443 | ret = afs_extract_data(call, true); |
441 | if (ret < 0) | 444 | if (ret < 0) |
@@ -476,7 +479,7 @@ static int afs_deliver_yfsvl_get_endpoints(struct afs_call *call) | |||
476 | afs_extract_to_buf(call, size); | 479 | afs_extract_to_buf(call, size); |
477 | call->unmarshall = 2; | 480 | call->unmarshall = 2; |
478 | 481 | ||
479 | /* Extract fsEndpoints[] entries */ | 482 | /* Fall through - and extract fsEndpoints[] entries */ |
480 | case 2: | 483 | case 2: |
481 | ret = afs_extract_data(call, true); | 484 | ret = afs_extract_data(call, true); |
482 | if (ret < 0) | 485 | if (ret < 0) |
@@ -529,6 +532,7 @@ static int afs_deliver_yfsvl_get_endpoints(struct afs_call *call) | |||
529 | * extract the type of the next endpoint when we extract the | 532 | * extract the type of the next endpoint when we extract the |
530 | * data of the current one, but this is the first... | 533 | * data of the current one, but this is the first... |
531 | */ | 534 | */ |
535 | /* Fall through */ | ||
532 | case 3: | 536 | case 3: |
533 | ret = afs_extract_data(call, true); | 537 | ret = afs_extract_data(call, true); |
534 | if (ret < 0) | 538 | if (ret < 0) |
@@ -555,7 +559,7 @@ static int afs_deliver_yfsvl_get_endpoints(struct afs_call *call) | |||
555 | afs_extract_to_buf(call, size); | 559 | afs_extract_to_buf(call, size); |
556 | call->unmarshall = 4; | 560 | call->unmarshall = 4; |
557 | 561 | ||
558 | /* Extract volEndpoints[] entries */ | 562 | /* Fall through - and extract volEndpoints[] entries */ |
559 | case 4: | 563 | case 4: |
560 | ret = afs_extract_data(call, true); | 564 | ret = afs_extract_data(call, true); |
561 | if (ret < 0) | 565 | if (ret < 0) |
@@ -591,7 +595,7 @@ static int afs_deliver_yfsvl_get_endpoints(struct afs_call *call) | |||
591 | afs_extract_discard(call, 0); | 595 | afs_extract_discard(call, 0); |
592 | call->unmarshall = 5; | 596 | call->unmarshall = 5; |
593 | 597 | ||
594 | /* Done */ | 598 | /* Fall through - Done */ |
595 | case 5: | 599 | case 5: |
596 | ret = afs_extract_data(call, false); | 600 | ret = afs_extract_data(call, false); |
597 | if (ret < 0) | 601 | if (ret < 0) |
diff --git a/fs/afs/yfsclient.c b/fs/afs/yfsclient.c index 6e97a42d24d1..871e29f06257 100644 --- a/fs/afs/yfsclient.c +++ b/fs/afs/yfsclient.c | |||
@@ -544,7 +544,7 @@ static int yfs_deliver_fs_fetch_data64(struct afs_call *call) | |||
544 | afs_extract_to_tmp64(call); | 544 | afs_extract_to_tmp64(call); |
545 | call->unmarshall++; | 545 | call->unmarshall++; |
546 | 546 | ||
547 | /* extract the returned data length */ | 547 | /* Fall through - and extract the returned data length */ |
548 | case 1: | 548 | case 1: |
549 | _debug("extract data length"); | 549 | _debug("extract data length"); |
550 | ret = afs_extract_data(call, true); | 550 | ret = afs_extract_data(call, true); |
@@ -571,7 +571,7 @@ static int yfs_deliver_fs_fetch_data64(struct afs_call *call) | |||
571 | iov_iter_bvec(&call->iter, READ, call->bvec, 1, size); | 571 | iov_iter_bvec(&call->iter, READ, call->bvec, 1, size); |
572 | ASSERTCMP(size, <=, PAGE_SIZE); | 572 | ASSERTCMP(size, <=, PAGE_SIZE); |
573 | 573 | ||
574 | /* extract the returned data */ | 574 | /* Fall through - and extract the returned data */ |
575 | case 2: | 575 | case 2: |
576 | _debug("extract data %zu/%llu", | 576 | _debug("extract data %zu/%llu", |
577 | iov_iter_count(&call->iter), req->remain); | 577 | iov_iter_count(&call->iter), req->remain); |
@@ -598,6 +598,8 @@ static int yfs_deliver_fs_fetch_data64(struct afs_call *call) | |||
598 | /* Discard any excess data the server gave us */ | 598 | /* Discard any excess data the server gave us */ |
599 | iov_iter_discard(&call->iter, READ, req->actual_len - req->len); | 599 | iov_iter_discard(&call->iter, READ, req->actual_len - req->len); |
600 | call->unmarshall = 3; | 600 | call->unmarshall = 3; |
601 | |||
602 | /* Fall through */ | ||
601 | case 3: | 603 | case 3: |
602 | _debug("extract discard %zu/%llu", | 604 | _debug("extract discard %zu/%llu", |
603 | iov_iter_count(&call->iter), req->actual_len - req->len); | 605 | iov_iter_count(&call->iter), req->actual_len - req->len); |
@@ -613,7 +615,7 @@ static int yfs_deliver_fs_fetch_data64(struct afs_call *call) | |||
613 | sizeof(struct yfs_xdr_YFSCallBack) + | 615 | sizeof(struct yfs_xdr_YFSCallBack) + |
614 | sizeof(struct yfs_xdr_YFSVolSync)); | 616 | sizeof(struct yfs_xdr_YFSVolSync)); |
615 | 617 | ||
616 | /* extract the metadata */ | 618 | /* Fall through - and extract the metadata */ |
617 | case 4: | 619 | case 4: |
618 | ret = afs_extract_data(call, false); | 620 | ret = afs_extract_data(call, false); |
619 | if (ret < 0) | 621 | if (ret < 0) |
@@ -629,6 +631,7 @@ static int yfs_deliver_fs_fetch_data64(struct afs_call *call) | |||
629 | 631 | ||
630 | call->unmarshall++; | 632 | call->unmarshall++; |
631 | 633 | ||
634 | /* Fall through */ | ||
632 | case 5: | 635 | case 5: |
633 | break; | 636 | break; |
634 | } | 637 | } |
@@ -1584,7 +1587,7 @@ static int yfs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1584 | call->unmarshall++; | 1587 | call->unmarshall++; |
1585 | afs_extract_to_buf(call, sizeof(struct yfs_xdr_YFSFetchVolumeStatus)); | 1588 | afs_extract_to_buf(call, sizeof(struct yfs_xdr_YFSFetchVolumeStatus)); |
1586 | 1589 | ||
1587 | /* extract the returned status record */ | 1590 | /* Fall through - and extract the returned status record */ |
1588 | case 1: | 1591 | case 1: |
1589 | _debug("extract status"); | 1592 | _debug("extract status"); |
1590 | ret = afs_extract_data(call, true); | 1593 | ret = afs_extract_data(call, true); |
@@ -1596,7 +1599,7 @@ static int yfs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1596 | call->unmarshall++; | 1599 | call->unmarshall++; |
1597 | afs_extract_to_tmp(call); | 1600 | afs_extract_to_tmp(call); |
1598 | 1601 | ||
1599 | /* extract the volume name length */ | 1602 | /* Fall through - and extract the volume name length */ |
1600 | case 2: | 1603 | case 2: |
1601 | ret = afs_extract_data(call, true); | 1604 | ret = afs_extract_data(call, true); |
1602 | if (ret < 0) | 1605 | if (ret < 0) |
@@ -1611,7 +1614,7 @@ static int yfs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1611 | afs_extract_begin(call, call->reply[2], size); | 1614 | afs_extract_begin(call, call->reply[2], size); |
1612 | call->unmarshall++; | 1615 | call->unmarshall++; |
1613 | 1616 | ||
1614 | /* extract the volume name */ | 1617 | /* Fall through - and extract the volume name */ |
1615 | case 3: | 1618 | case 3: |
1616 | _debug("extract volname"); | 1619 | _debug("extract volname"); |
1617 | ret = afs_extract_data(call, true); | 1620 | ret = afs_extract_data(call, true); |
@@ -1624,7 +1627,7 @@ static int yfs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1624 | afs_extract_to_tmp(call); | 1627 | afs_extract_to_tmp(call); |
1625 | call->unmarshall++; | 1628 | call->unmarshall++; |
1626 | 1629 | ||
1627 | /* extract the offline message length */ | 1630 | /* Fall through - and extract the offline message length */ |
1628 | case 4: | 1631 | case 4: |
1629 | ret = afs_extract_data(call, true); | 1632 | ret = afs_extract_data(call, true); |
1630 | if (ret < 0) | 1633 | if (ret < 0) |
@@ -1639,7 +1642,7 @@ static int yfs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1639 | afs_extract_begin(call, call->reply[2], size); | 1642 | afs_extract_begin(call, call->reply[2], size); |
1640 | call->unmarshall++; | 1643 | call->unmarshall++; |
1641 | 1644 | ||
1642 | /* extract the offline message */ | 1645 | /* Fall through - and extract the offline message */ |
1643 | case 5: | 1646 | case 5: |
1644 | _debug("extract offline"); | 1647 | _debug("extract offline"); |
1645 | ret = afs_extract_data(call, true); | 1648 | ret = afs_extract_data(call, true); |
@@ -1653,7 +1656,7 @@ static int yfs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1653 | afs_extract_to_tmp(call); | 1656 | afs_extract_to_tmp(call); |
1654 | call->unmarshall++; | 1657 | call->unmarshall++; |
1655 | 1658 | ||
1656 | /* extract the message of the day length */ | 1659 | /* Fall through - and extract the message of the day length */ |
1657 | case 6: | 1660 | case 6: |
1658 | ret = afs_extract_data(call, true); | 1661 | ret = afs_extract_data(call, true); |
1659 | if (ret < 0) | 1662 | if (ret < 0) |
@@ -1668,7 +1671,7 @@ static int yfs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1668 | afs_extract_begin(call, call->reply[2], size); | 1671 | afs_extract_begin(call, call->reply[2], size); |
1669 | call->unmarshall++; | 1672 | call->unmarshall++; |
1670 | 1673 | ||
1671 | /* extract the message of the day */ | 1674 | /* Fall through - and extract the message of the day */ |
1672 | case 7: | 1675 | case 7: |
1673 | _debug("extract motd"); | 1676 | _debug("extract motd"); |
1674 | ret = afs_extract_data(call, false); | 1677 | ret = afs_extract_data(call, false); |
@@ -1681,6 +1684,7 @@ static int yfs_deliver_fs_get_volume_status(struct afs_call *call) | |||
1681 | 1684 | ||
1682 | call->unmarshall++; | 1685 | call->unmarshall++; |
1683 | 1686 | ||
1687 | /* Fall through */ | ||
1684 | case 8: | 1688 | case 8: |
1685 | break; | 1689 | break; |
1686 | } | 1690 | } |
@@ -2026,6 +2030,7 @@ static int yfs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2026 | call->unmarshall++; | 2030 | call->unmarshall++; |
2027 | 2031 | ||
2028 | /* Extract the file status count and array in two steps */ | 2032 | /* Extract the file status count and array in two steps */ |
2033 | /* Fall through */ | ||
2029 | case 1: | 2034 | case 1: |
2030 | _debug("extract status count"); | 2035 | _debug("extract status count"); |
2031 | ret = afs_extract_data(call, true); | 2036 | ret = afs_extract_data(call, true); |
@@ -2043,6 +2048,7 @@ static int yfs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2043 | more_counts: | 2048 | more_counts: |
2044 | afs_extract_to_buf(call, sizeof(struct yfs_xdr_YFSFetchStatus)); | 2049 | afs_extract_to_buf(call, sizeof(struct yfs_xdr_YFSFetchStatus)); |
2045 | 2050 | ||
2051 | /* Fall through */ | ||
2046 | case 2: | 2052 | case 2: |
2047 | _debug("extract status array %u", call->count); | 2053 | _debug("extract status array %u", call->count); |
2048 | ret = afs_extract_data(call, true); | 2054 | ret = afs_extract_data(call, true); |
@@ -2066,6 +2072,7 @@ static int yfs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2066 | afs_extract_to_tmp(call); | 2072 | afs_extract_to_tmp(call); |
2067 | 2073 | ||
2068 | /* Extract the callback count and array in two steps */ | 2074 | /* Extract the callback count and array in two steps */ |
2075 | /* Fall through */ | ||
2069 | case 3: | 2076 | case 3: |
2070 | _debug("extract CB count"); | 2077 | _debug("extract CB count"); |
2071 | ret = afs_extract_data(call, true); | 2078 | ret = afs_extract_data(call, true); |
@@ -2082,6 +2089,7 @@ static int yfs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2082 | more_cbs: | 2089 | more_cbs: |
2083 | afs_extract_to_buf(call, sizeof(struct yfs_xdr_YFSCallBack)); | 2090 | afs_extract_to_buf(call, sizeof(struct yfs_xdr_YFSCallBack)); |
2084 | 2091 | ||
2092 | /* Fall through */ | ||
2085 | case 4: | 2093 | case 4: |
2086 | _debug("extract CB array"); | 2094 | _debug("extract CB array"); |
2087 | ret = afs_extract_data(call, true); | 2095 | ret = afs_extract_data(call, true); |
@@ -2104,6 +2112,7 @@ static int yfs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2104 | afs_extract_to_buf(call, sizeof(struct yfs_xdr_YFSVolSync)); | 2112 | afs_extract_to_buf(call, sizeof(struct yfs_xdr_YFSVolSync)); |
2105 | call->unmarshall++; | 2113 | call->unmarshall++; |
2106 | 2114 | ||
2115 | /* Fall through */ | ||
2107 | case 5: | 2116 | case 5: |
2108 | ret = afs_extract_data(call, false); | 2117 | ret = afs_extract_data(call, false); |
2109 | if (ret < 0) | 2118 | if (ret < 0) |
@@ -2114,6 +2123,7 @@ static int yfs_deliver_fs_inline_bulk_status(struct afs_call *call) | |||
2114 | 2123 | ||
2115 | call->unmarshall++; | 2124 | call->unmarshall++; |
2116 | 2125 | ||
2126 | /* Fall through */ | ||
2117 | case 6: | 2127 | case 6: |
2118 | break; | 2128 | break; |
2119 | } | 2129 | } |
diff --git a/fs/btrfs/ref-verify.c b/fs/btrfs/ref-verify.c index 5cec2c6970f2..e87cbdad02a3 100644 --- a/fs/btrfs/ref-verify.c +++ b/fs/btrfs/ref-verify.c | |||
@@ -509,6 +509,7 @@ static int process_leaf(struct btrfs_root *root, | |||
509 | switch (key.type) { | 509 | switch (key.type) { |
510 | case BTRFS_EXTENT_ITEM_KEY: | 510 | case BTRFS_EXTENT_ITEM_KEY: |
511 | *num_bytes = key.offset; | 511 | *num_bytes = key.offset; |
512 | /* fall through */ | ||
512 | case BTRFS_METADATA_ITEM_KEY: | 513 | case BTRFS_METADATA_ITEM_KEY: |
513 | *bytenr = key.objectid; | 514 | *bytenr = key.objectid; |
514 | ret = process_extent_item(fs_info, path, &key, i, | 515 | ret = process_extent_item(fs_info, path, &key, i, |
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index b8a0e8d0672d..136a3eb64604 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h | |||
@@ -394,6 +394,7 @@ static inline enum btrfs_map_op btrfs_op(struct bio *bio) | |||
394 | return BTRFS_MAP_WRITE; | 394 | return BTRFS_MAP_WRITE; |
395 | default: | 395 | default: |
396 | WARN_ON_ONCE(1); | 396 | WARN_ON_ONCE(1); |
397 | /* fall through */ | ||
397 | case REQ_OP_READ: | 398 | case REQ_OP_READ: |
398 | return BTRFS_MAP_READ; | 399 | return BTRFS_MAP_READ; |
399 | } | 400 | } |
diff --git a/fs/ceph/file.c b/fs/ceph/file.c index 9f53c3d99304..84725b53ac21 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c | |||
@@ -247,6 +247,7 @@ static int ceph_init_file(struct inode *inode, struct file *file, int fmode) | |||
247 | case S_IFREG: | 247 | case S_IFREG: |
248 | ceph_fscache_register_inode_cookie(inode); | 248 | ceph_fscache_register_inode_cookie(inode); |
249 | ceph_fscache_file_set_cookie(inode, file); | 249 | ceph_fscache_file_set_cookie(inode, file); |
250 | /* fall through */ | ||
250 | case S_IFDIR: | 251 | case S_IFDIR: |
251 | ret = ceph_init_file_info(inode, file, fmode, | 252 | ret = ceph_init_file_info(inode, file, fmode, |
252 | S_ISDIR(inode->i_mode)); | 253 | S_ISDIR(inode->i_mode)); |
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index 39843fa7e11b..591e82ba443c 100644 --- a/fs/configfs/dir.c +++ b/fs/configfs/dir.c | |||
@@ -1690,9 +1690,11 @@ static loff_t configfs_dir_lseek(struct file *file, loff_t offset, int whence) | |||
1690 | switch (whence) { | 1690 | switch (whence) { |
1691 | case 1: | 1691 | case 1: |
1692 | offset += file->f_pos; | 1692 | offset += file->f_pos; |
1693 | /* fall through */ | ||
1693 | case 0: | 1694 | case 0: |
1694 | if (offset >= 0) | 1695 | if (offset >= 0) |
1695 | break; | 1696 | break; |
1697 | /* fall through */ | ||
1696 | default: | 1698 | default: |
1697 | return -EINVAL; | 1699 | return -EINVAL; |
1698 | } | 1700 | } |
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 3f99ab288695..d6e48a6487d5 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c | |||
@@ -616,8 +616,10 @@ pgoff_t f2fs_get_next_page_offset(struct dnode_of_data *dn, pgoff_t pgofs) | |||
616 | switch (dn->max_level) { | 616 | switch (dn->max_level) { |
617 | case 3: | 617 | case 3: |
618 | base += 2 * indirect_blks; | 618 | base += 2 * indirect_blks; |
619 | /* fall through */ | ||
619 | case 2: | 620 | case 2: |
620 | base += 2 * direct_blks; | 621 | base += 2 * direct_blks; |
622 | /* fall through */ | ||
621 | case 1: | 623 | case 1: |
622 | base += direct_index; | 624 | base += direct_index; |
623 | break; | 625 | break; |
diff --git a/fs/fcntl.c b/fs/fcntl.c index 083185174c6d..3d40771e8e7c 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c | |||
@@ -769,7 +769,7 @@ static void send_sigio_to_task(struct task_struct *p, | |||
769 | si.si_fd = fd; | 769 | si.si_fd = fd; |
770 | if (!do_send_sig_info(signum, &si, p, type)) | 770 | if (!do_send_sig_info(signum, &si, p, type)) |
771 | break; | 771 | break; |
772 | /* fall-through: fall back on the old plain SIGIO signal */ | 772 | /* fall-through - fall back on the old plain SIGIO signal */ |
773 | case 0: | 773 | case 0: |
774 | do_send_sig_info(SIGIO, SEND_SIG_PRIV, p, type); | 774 | do_send_sig_info(SIGIO, SEND_SIG_PRIV, p, type); |
775 | } | 775 | } |
diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c index f6d1a3893f5a..2f9290f69610 100644 --- a/fs/gfs2/bmap.c +++ b/fs/gfs2/bmap.c | |||
@@ -710,7 +710,7 @@ static int gfs2_iomap_alloc(struct inode *inode, struct iomap *iomap, | |||
710 | } | 710 | } |
711 | if (n == 0) | 711 | if (n == 0) |
712 | break; | 712 | break; |
713 | /* Branching from existing tree */ | 713 | /* fall through - To branching from existing tree */ |
714 | case ALLOC_GROW_DEPTH: | 714 | case ALLOC_GROW_DEPTH: |
715 | if (i > 1 && i < mp->mp_fheight) | 715 | if (i > 1 && i < mp->mp_fheight) |
716 | gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[i-1]); | 716 | gfs2_trans_add_meta(ip->i_gl, mp->mp_bh[i-1]); |
@@ -721,7 +721,7 @@ static int gfs2_iomap_alloc(struct inode *inode, struct iomap *iomap, | |||
721 | state = ALLOC_DATA; | 721 | state = ALLOC_DATA; |
722 | if (n == 0) | 722 | if (n == 0) |
723 | break; | 723 | break; |
724 | /* Tree complete, adding data blocks */ | 724 | /* fall through - To tree complete, adding data blocks */ |
725 | case ALLOC_DATA: | 725 | case ALLOC_DATA: |
726 | BUG_ON(n > dblks); | 726 | BUG_ON(n > dblks); |
727 | BUG_ON(mp->mp_bh[end_of_metadata] == NULL); | 727 | BUG_ON(mp->mp_bh[end_of_metadata] == NULL); |
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index eab04eca95a3..112d85849db1 100644 --- a/fs/jffs2/fs.c +++ b/fs/jffs2/fs.c | |||
@@ -340,6 +340,7 @@ struct inode *jffs2_iget(struct super_block *sb, unsigned long ino) | |||
340 | rdev = old_decode_dev(je16_to_cpu(jdev.old_id)); | 340 | rdev = old_decode_dev(je16_to_cpu(jdev.old_id)); |
341 | else | 341 | else |
342 | rdev = new_decode_dev(je32_to_cpu(jdev.new_id)); | 342 | rdev = new_decode_dev(je32_to_cpu(jdev.new_id)); |
343 | /* fall through */ | ||
343 | 344 | ||
344 | case S_IFSOCK: | 345 | case S_IFSOCK: |
345 | case S_IFIFO: | 346 | case S_IFIFO: |
diff --git a/fs/libfs.c b/fs/libfs.c index 0fb590d79f30..9efb647917e0 100644 --- a/fs/libfs.c +++ b/fs/libfs.c | |||
@@ -146,9 +146,11 @@ loff_t dcache_dir_lseek(struct file *file, loff_t offset, int whence) | |||
146 | switch (whence) { | 146 | switch (whence) { |
147 | case 1: | 147 | case 1: |
148 | offset += file->f_pos; | 148 | offset += file->f_pos; |
149 | /* fall through */ | ||
149 | case 0: | 150 | case 0: |
150 | if (offset >= 0) | 151 | if (offset >= 0) |
151 | break; | 152 | break; |
153 | /* fall through */ | ||
152 | default: | 154 | default: |
153 | return -EINVAL; | 155 | return -EINVAL; |
154 | } | 156 | } |
diff --git a/fs/locks.c b/fs/locks.c index 71d0c6c2aac5..d7c05dde4ed8 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -1476,7 +1476,7 @@ static void lease_clear_pending(struct file_lock *fl, int arg) | |||
1476 | switch (arg) { | 1476 | switch (arg) { |
1477 | case F_UNLCK: | 1477 | case F_UNLCK: |
1478 | fl->fl_flags &= ~FL_UNLOCK_PENDING; | 1478 | fl->fl_flags &= ~FL_UNLOCK_PENDING; |
1479 | /* fall through: */ | 1479 | /* fall through */ |
1480 | case F_RDLCK: | 1480 | case F_RDLCK: |
1481 | fl->fl_flags &= ~FL_DOWNGRADE_PENDING; | 1481 | fl->fl_flags &= ~FL_DOWNGRADE_PENDING; |
1482 | } | 1482 | } |
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 0cfd257ffdaf..4680ad3bf55b 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -427,6 +427,7 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
427 | goto out; | 427 | goto out; |
428 | open->op_openowner->oo_flags |= NFS4_OO_CONFIRMED; | 428 | open->op_openowner->oo_flags |= NFS4_OO_CONFIRMED; |
429 | reclaim = true; | 429 | reclaim = true; |
430 | /* fall through */ | ||
430 | case NFS4_OPEN_CLAIM_FH: | 431 | case NFS4_OPEN_CLAIM_FH: |
431 | case NFS4_OPEN_CLAIM_DELEG_CUR_FH: | 432 | case NFS4_OPEN_CLAIM_DELEG_CUR_FH: |
432 | status = do_open_fhandle(rqstp, cstate, open); | 433 | status = do_open_fhandle(rqstp, cstate, open); |
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index f056b1d3fecd..eca4a23f93c8 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -2585,6 +2585,7 @@ nfsd4_exchange_id(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
2585 | break; | 2585 | break; |
2586 | default: /* checked by xdr code */ | 2586 | default: /* checked by xdr code */ |
2587 | WARN_ON_ONCE(1); | 2587 | WARN_ON_ONCE(1); |
2588 | /* fall through */ | ||
2588 | case SP4_SSV: | 2589 | case SP4_SSV: |
2589 | status = nfserr_encr_alg_unsupp; | 2590 | status = nfserr_encr_alg_unsupp; |
2590 | goto out_nolock; | 2591 | goto out_nolock; |
diff --git a/fs/ocfs2/cluster/quorum.c b/fs/ocfs2/cluster/quorum.c index af2e7473956e..67dcee65fe50 100644 --- a/fs/ocfs2/cluster/quorum.c +++ b/fs/ocfs2/cluster/quorum.c | |||
@@ -81,6 +81,7 @@ static void o2quo_fence_self(void) | |||
81 | default: | 81 | default: |
82 | WARN_ON(o2nm_single_cluster->cl_fence_method >= | 82 | WARN_ON(o2nm_single_cluster->cl_fence_method >= |
83 | O2NM_FENCE_METHODS); | 83 | O2NM_FENCE_METHODS); |
84 | /* fall through */ | ||
84 | case O2NM_FENCE_RESET: | 85 | case O2NM_FENCE_RESET: |
85 | printk(KERN_ERR "*** ocfs2 is very sorry to be fencing this " | 86 | printk(KERN_ERR "*** ocfs2 is very sorry to be fencing this " |
86 | "system by restarting ***\n"); | 87 | "system by restarting ***\n"); |
diff --git a/fs/seq_file.c b/fs/seq_file.c index 1dea7a8a5255..abe27ec43176 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c | |||
@@ -317,6 +317,7 @@ loff_t seq_lseek(struct file *file, loff_t offset, int whence) | |||
317 | switch (whence) { | 317 | switch (whence) { |
318 | case SEEK_CUR: | 318 | case SEEK_CUR: |
319 | offset += file->f_pos; | 319 | offset += file->f_pos; |
320 | /* fall through */ | ||
320 | case SEEK_SET: | 321 | case SEEK_SET: |
321 | if (offset < 0) | 322 | if (offset < 0) |
322 | break; | 323 | break; |
diff --git a/fs/signalfd.c b/fs/signalfd.c index 757afc7c5895..44b6845b071c 100644 --- a/fs/signalfd.c +++ b/fs/signalfd.c | |||
@@ -176,6 +176,7 @@ static ssize_t signalfd_dequeue(struct signalfd_ctx *ctx, kernel_siginfo_t *info | |||
176 | if (!nonblock) | 176 | if (!nonblock) |
177 | break; | 177 | break; |
178 | ret = -EAGAIN; | 178 | ret = -EAGAIN; |
179 | /* fall through */ | ||
179 | default: | 180 | default: |
180 | spin_unlock_irq(¤t->sighand->siglock); | 181 | spin_unlock_irq(¤t->sighand->siglock); |
181 | return ret; | 182 | return ret; |
diff --git a/fs/ufs/util.h b/fs/ufs/util.h index 7fd4802222b8..e1f1b2e868a7 100644 --- a/fs/ufs/util.h +++ b/fs/ufs/util.h | |||
@@ -42,7 +42,7 @@ ufs_get_fs_state(struct super_block *sb, struct ufs_super_block_first *usb1, | |||
42 | case UFS_ST_SUNOS: | 42 | case UFS_ST_SUNOS: |
43 | if (fs32_to_cpu(sb, usb3->fs_postblformat) == UFS_42POSTBLFMT) | 43 | if (fs32_to_cpu(sb, usb3->fs_postblformat) == UFS_42POSTBLFMT) |
44 | return fs32_to_cpu(sb, usb1->fs_u0.fs_sun.fs_state); | 44 | return fs32_to_cpu(sb, usb1->fs_u0.fs_sun.fs_state); |
45 | /* Fall Through to UFS_ST_SUN */ | 45 | /* Fall Through - to UFS_ST_SUN */ |
46 | case UFS_ST_SUN: | 46 | case UFS_ST_SUN: |
47 | return fs32_to_cpu(sb, usb3->fs_un2.fs_sun.fs_state); | 47 | return fs32_to_cpu(sb, usb3->fs_un2.fs_sun.fs_state); |
48 | case UFS_ST_SUNx86: | 48 | case UFS_ST_SUNx86: |
@@ -63,7 +63,7 @@ ufs_set_fs_state(struct super_block *sb, struct ufs_super_block_first *usb1, | |||
63 | usb1->fs_u0.fs_sun.fs_state = cpu_to_fs32(sb, value); | 63 | usb1->fs_u0.fs_sun.fs_state = cpu_to_fs32(sb, value); |
64 | break; | 64 | break; |
65 | } | 65 | } |
66 | /* Fall Through to UFS_ST_SUN */ | 66 | /* Fall Through - to UFS_ST_SUN */ |
67 | case UFS_ST_SUN: | 67 | case UFS_ST_SUN: |
68 | usb3->fs_un2.fs_sun.fs_state = cpu_to_fs32(sb, value); | 68 | usb3->fs_un2.fs_sun.fs_state = cpu_to_fs32(sb, value); |
69 | break; | 69 | break; |
diff --git a/lib/asn1_decoder.c b/lib/asn1_decoder.c index dc14beae2c9a..8f3d207d2b00 100644 --- a/lib/asn1_decoder.c +++ b/lib/asn1_decoder.c | |||
@@ -385,6 +385,8 @@ next_op: | |||
385 | case ASN1_OP_END_SET_ACT: | 385 | case ASN1_OP_END_SET_ACT: |
386 | if (unlikely(!(flags & FLAG_MATCHED))) | 386 | if (unlikely(!(flags & FLAG_MATCHED))) |
387 | goto tag_mismatch; | 387 | goto tag_mismatch; |
388 | /* fall through */ | ||
389 | |||
388 | case ASN1_OP_END_SEQ: | 390 | case ASN1_OP_END_SEQ: |
389 | case ASN1_OP_END_SET_OF: | 391 | case ASN1_OP_END_SET_OF: |
390 | case ASN1_OP_END_SEQ_OF: | 392 | case ASN1_OP_END_SEQ_OF: |
@@ -450,6 +452,8 @@ next_op: | |||
450 | pc += asn1_op_lengths[op]; | 452 | pc += asn1_op_lengths[op]; |
451 | goto next_op; | 453 | goto next_op; |
452 | } | 454 | } |
455 | /* fall through */ | ||
456 | |||
453 | case ASN1_OP_ACT: | 457 | case ASN1_OP_ACT: |
454 | ret = actions[machine[pc + 1]](context, hdr, tag, data + tdp, len); | 458 | ret = actions[machine[pc + 1]](context, hdr, tag, data + tdp, len); |
455 | if (ret < 0) | 459 | if (ret < 0) |
diff --git a/lib/cmdline.c b/lib/cmdline.c index 171c19b6888e..dc59d6216318 100644 --- a/lib/cmdline.c +++ b/lib/cmdline.c | |||
@@ -135,18 +135,23 @@ unsigned long long memparse(const char *ptr, char **retptr) | |||
135 | case 'E': | 135 | case 'E': |
136 | case 'e': | 136 | case 'e': |
137 | ret <<= 10; | 137 | ret <<= 10; |
138 | /* fall through */ | ||
138 | case 'P': | 139 | case 'P': |
139 | case 'p': | 140 | case 'p': |
140 | ret <<= 10; | 141 | ret <<= 10; |
142 | /* fall through */ | ||
141 | case 'T': | 143 | case 'T': |
142 | case 't': | 144 | case 't': |
143 | ret <<= 10; | 145 | ret <<= 10; |
146 | /* fall through */ | ||
144 | case 'G': | 147 | case 'G': |
145 | case 'g': | 148 | case 'g': |
146 | ret <<= 10; | 149 | ret <<= 10; |
150 | /* fall through */ | ||
147 | case 'M': | 151 | case 'M': |
148 | case 'm': | 152 | case 'm': |
149 | ret <<= 10; | 153 | ret <<= 10; |
154 | /* fall through */ | ||
150 | case 'K': | 155 | case 'K': |
151 | case 'k': | 156 | case 'k': |
152 | ret <<= 10; | 157 | ret <<= 10; |
diff --git a/lib/zstd/bitstream.h b/lib/zstd/bitstream.h index a826b99e1d63..3a49784d5c61 100644 --- a/lib/zstd/bitstream.h +++ b/lib/zstd/bitstream.h | |||
@@ -259,10 +259,15 @@ ZSTD_STATIC size_t BIT_initDStream(BIT_DStream_t *bitD, const void *srcBuffer, s | |||
259 | bitD->bitContainer = *(const BYTE *)(bitD->start); | 259 | bitD->bitContainer = *(const BYTE *)(bitD->start); |
260 | switch (srcSize) { | 260 | switch (srcSize) { |
261 | case 7: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[6]) << (sizeof(bitD->bitContainer) * 8 - 16); | 261 | case 7: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[6]) << (sizeof(bitD->bitContainer) * 8 - 16); |
262 | /* fall through */ | ||
262 | case 6: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[5]) << (sizeof(bitD->bitContainer) * 8 - 24); | 263 | case 6: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[5]) << (sizeof(bitD->bitContainer) * 8 - 24); |
264 | /* fall through */ | ||
263 | case 5: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[4]) << (sizeof(bitD->bitContainer) * 8 - 32); | 265 | case 5: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[4]) << (sizeof(bitD->bitContainer) * 8 - 32); |
266 | /* fall through */ | ||
264 | case 4: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[3]) << 24; | 267 | case 4: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[3]) << 24; |
268 | /* fall through */ | ||
265 | case 3: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[2]) << 16; | 269 | case 3: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[2]) << 16; |
270 | /* fall through */ | ||
266 | case 2: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[1]) << 8; | 271 | case 2: bitD->bitContainer += (size_t)(((const BYTE *)(srcBuffer))[1]) << 8; |
267 | default:; | 272 | default:; |
268 | } | 273 | } |
diff --git a/lib/zstd/compress.c b/lib/zstd/compress.c index f9166cf4f7a9..5e0b67003e55 100644 --- a/lib/zstd/compress.c +++ b/lib/zstd/compress.c | |||
@@ -3182,6 +3182,7 @@ static size_t ZSTD_compressStream_generic(ZSTD_CStream *zcs, void *dst, size_t * | |||
3182 | zcs->outBuffFlushedSize = 0; | 3182 | zcs->outBuffFlushedSize = 0; |
3183 | zcs->stage = zcss_flush; /* pass-through to flush stage */ | 3183 | zcs->stage = zcss_flush; /* pass-through to flush stage */ |
3184 | } | 3184 | } |
3185 | /* fall through */ | ||
3185 | 3186 | ||
3186 | case zcss_flush: { | 3187 | case zcss_flush: { |
3187 | size_t const toFlush = zcs->outBuffContentSize - zcs->outBuffFlushedSize; | 3188 | size_t const toFlush = zcs->outBuffContentSize - zcs->outBuffFlushedSize; |
diff --git a/lib/zstd/decompress.c b/lib/zstd/decompress.c index b17846725ca0..269ee9a796c1 100644 --- a/lib/zstd/decompress.c +++ b/lib/zstd/decompress.c | |||
@@ -1768,6 +1768,7 @@ size_t ZSTD_decompressContinue(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, c | |||
1768 | return 0; | 1768 | return 0; |
1769 | } | 1769 | } |
1770 | dctx->expected = 0; /* not necessary to copy more */ | 1770 | dctx->expected = 0; /* not necessary to copy more */ |
1771 | /* fall through */ | ||
1771 | 1772 | ||
1772 | case ZSTDds_decodeFrameHeader: | 1773 | case ZSTDds_decodeFrameHeader: |
1773 | memcpy(dctx->headerBuffer + ZSTD_frameHeaderSize_prefix, src, dctx->expected); | 1774 | memcpy(dctx->headerBuffer + ZSTD_frameHeaderSize_prefix, src, dctx->expected); |
@@ -2375,7 +2376,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream *zds, ZSTD_outBuffer *output, ZSTD_inB | |||
2375 | } | 2376 | } |
2376 | zds->stage = zdss_read; | 2377 | zds->stage = zdss_read; |
2377 | } | 2378 | } |
2378 | /* pass-through */ | 2379 | /* fall through */ |
2379 | 2380 | ||
2380 | case zdss_read: { | 2381 | case zdss_read: { |
2381 | size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx); | 2382 | size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx); |
@@ -2404,6 +2405,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream *zds, ZSTD_outBuffer *output, ZSTD_inB | |||
2404 | zds->stage = zdss_load; | 2405 | zds->stage = zdss_load; |
2405 | /* pass-through */ | 2406 | /* pass-through */ |
2406 | } | 2407 | } |
2408 | /* fall through */ | ||
2407 | 2409 | ||
2408 | case zdss_load: { | 2410 | case zdss_load: { |
2409 | size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx); | 2411 | size_t const neededInSize = ZSTD_nextSrcSizeToDecompress(zds->dctx); |
@@ -2436,6 +2438,7 @@ size_t ZSTD_decompressStream(ZSTD_DStream *zds, ZSTD_outBuffer *output, ZSTD_inB | |||
2436 | /* pass-through */ | 2438 | /* pass-through */ |
2437 | } | 2439 | } |
2438 | } | 2440 | } |
2441 | /* fall through */ | ||
2439 | 2442 | ||
2440 | case zdss_flush: { | 2443 | case zdss_flush: { |
2441 | size_t const toFlushSize = zds->outEnd - zds->outStart; | 2444 | size_t const toFlushSize = zds->outEnd - zds->outStart; |
diff --git a/lib/zstd/huf_compress.c b/lib/zstd/huf_compress.c index 40055a7016e6..e727812d12aa 100644 --- a/lib/zstd/huf_compress.c +++ b/lib/zstd/huf_compress.c | |||
@@ -556,7 +556,9 @@ size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, si | |||
556 | n = srcSize & ~3; /* join to mod 4 */ | 556 | n = srcSize & ~3; /* join to mod 4 */ |
557 | switch (srcSize & 3) { | 557 | switch (srcSize & 3) { |
558 | case 3: HUF_encodeSymbol(&bitC, ip[n + 2], CTable); HUF_FLUSHBITS_2(&bitC); | 558 | case 3: HUF_encodeSymbol(&bitC, ip[n + 2], CTable); HUF_FLUSHBITS_2(&bitC); |
559 | /* fall through */ | ||
559 | case 2: HUF_encodeSymbol(&bitC, ip[n + 1], CTable); HUF_FLUSHBITS_1(&bitC); | 560 | case 2: HUF_encodeSymbol(&bitC, ip[n + 1], CTable); HUF_FLUSHBITS_1(&bitC); |
561 | /* fall through */ | ||
560 | case 1: HUF_encodeSymbol(&bitC, ip[n + 0], CTable); HUF_FLUSHBITS(&bitC); | 562 | case 1: HUF_encodeSymbol(&bitC, ip[n + 0], CTable); HUF_FLUSHBITS(&bitC); |
561 | case 0: | 563 | case 0: |
562 | default:; | 564 | default:; |