Skip to content

Commit

Permalink
rtl8188eu: Fix fallthrough statements
Browse files Browse the repository at this point in the history
In kernel 5.4.0-rc3, the kernel includes define a "fallthrough" macro,
which breaks a couple of the statements in the driver. Use __fallthrough__
instead.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
lwfinger committed Oct 16, 2019
1 parent 49b933a commit 126d786
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hal/usb_halinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ static void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
switch (variable) {
case HW_VAR_BASIC_RATE:
*((u16 *)(val)) = haldata->BasicRateSet;
__attribute__((fallthrough));
__attribute__((__fallthrough__));
case HW_VAR_TXPAUSE:
val[0] = rtw_read8(Adapter, REG_TXPAUSE);
break;
Expand Down
2 changes: 1 addition & 1 deletion hal/usb_ops_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
case -ENODEV:
case -ESHUTDOWN:
RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("usb_read_port_complete:bSurpriseRemoved=true\n"));
__attribute__((fallthrough));
__attribute__((__fallthrough__));
case -ENOENT:
adapt->bDriverStopped = true;
RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("usb_read_port_complete:bDriverStopped=true\n"));
Expand Down

0 comments on commit 126d786

Please sign in to comment.