Skip to content

Commit 8ec035a

Browse files
committed
Merge tag 'fallthrough-fixes-clang-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
Pull fallthrough fixes from Gustavo Silva: "Fix many fall-through warnings when building with Clang 12.0.0 and '-Wimplicit-fallthrough' so that we at some point will be able to enable that warning by default" * tag 'fallthrough-fixes-clang-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux: (26 commits) rxrpc: Fix fall-through warnings for Clang drm/nouveau/clk: Fix fall-through warnings for Clang drm/nouveau/therm: Fix fall-through warnings for Clang drm/nouveau: Fix fall-through warnings for Clang xfs: Fix fall-through warnings for Clang xfrm: Fix fall-through warnings for Clang tipc: Fix fall-through warnings for Clang sctp: Fix fall-through warnings for Clang rds: Fix fall-through warnings for Clang net/packet: Fix fall-through warnings for Clang net: netrom: Fix fall-through warnings for Clang ide: Fix fall-through warnings for Clang hwmon: (max6621) Fix fall-through warnings for Clang hwmon: (corsair-cpro) Fix fall-through warnings for Clang firewire: core: Fix fall-through warnings for Clang braille_console: Fix fall-through warnings for Clang ipv4: Fix fall-through warnings for Clang qlcnic: Fix fall-through warnings for Clang bnxt_en: Fix fall-through warnings for Clang netxen_nic: Fix fall-through warnings for Clang ...
2 parents 07bdc07 + 40e67c1 commit 8ec035a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+58
-22
lines changed

drivers/accessibility/braille/braille_console.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ static int keyboard_notifier_call(struct notifier_block *blk,
246246
beep(440);
247247
}
248248
}
249+
break;
249250
case KBD_UNBOUND_KEYCODE:
250251
case KBD_UNICODE:
251252
case KBD_KEYSYM:

drivers/atm/fore200e.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ fore200e_shutdown(struct fore200e* fore200e)
420420
/* XXX shouldn't we *start* by deregistering the device? */
421421
atm_dev_deregister(fore200e->atm_dev);
422422

423+
fallthrough;
423424
case FORE200E_STATE_BLANK:
424425
/* nothing to do for that state */
425426
break;

drivers/firewire/core-topology.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count)
5858
case SELFID_PORT_PARENT:
5959
case SELFID_PORT_NCONN:
6060
(*total_port_count)++;
61+
fallthrough;
6162
case SELFID_PORT_NONE:
6263
break;
6364
}

drivers/gpu/drm/nouveau/nouveau_bo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ nouveau_bo_pin(struct nouveau_bo *nvbo, uint32_t domain, bool contig)
440440
break;
441441
case TTM_PL_TT:
442442
error |= !(domain & NOUVEAU_GEM_DOMAIN_GART);
443+
break;
443444
default:
444445
break;
445446
}

drivers/gpu/drm/nouveau/nouveau_connector.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ nouveau_conn_atomic_set_property(struct drm_connector *connector,
157157
default:
158158
break;
159159
}
160+
break;
160161
case DRM_MODE_SCALE_FULLSCREEN:
161162
case DRM_MODE_SCALE_CENTER:
162163
case DRM_MODE_SCALE_ASPECT:

drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ nv50_clk_read(struct nvkm_clk *base, enum nv_clk_src src)
313313
default:
314314
break;
315315
}
316+
break;
316317
default:
317318
break;
318319
}

drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pwm_info(struct nvkm_therm *therm, int line)
4141
default:
4242
break;
4343
}
44+
break;
4445
default:
4546
break;
4647
}

drivers/hwmon/corsair-cpro.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ static int ccp_write(struct device *dev, enum hwmon_sensor_types type,
310310
default:
311311
break;
312312
}
313+
break;
313314
default:
314315
break;
315316
}

drivers/hwmon/max6621.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ max6621_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr,
156156
default:
157157
break;
158158
}
159-
159+
break;
160160
default:
161161
break;
162162
}

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,6 +2184,7 @@ static int bnxt_hwrm_handler(struct bnxt *bp, struct tx_cmp *txcmp)
21842184
case CMPL_BASE_TYPE_HWRM_ASYNC_EVENT:
21852185
bnxt_async_event_process(bp,
21862186
(struct hwrm_async_event_cmpl *)txcmp);
2187+
break;
21872188

21882189
default:
21892190
break;

0 commit comments

Comments
 (0)