forked from luck/tmp_suning_uos_patched
Wimplicit-fallthrough patches for 5.3-rc6
Hi Linus, Please, pull the following patches that mark switch cases where we are expecting to fall through. - Fix fall-through warnings on arm and mips for multiple configurations. Thanks Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEkmRahXBSurMIg1YvRwW0y0cG2zEFAl1clmEACgkQRwW0y0cG 2zGqbg/9HPC3Cf3oYq4o0/kV+cfS0ir6iJCz1mspFfbBloaS/EU7A2CF35bDz7k3 XUzl/ci82EQCnuJv/X6ddayUF1S/vFWLnQXRznz07kJspUnNpu7JKgsZr2qsHaRe CfCj62J/Kuhnke8EUjuWEuga6YXYsYlcevgg/tpVXsTmxrpq2A15tWyut7WEe4JQ kWPELwYbPsDvTj2siZrgMRBx4gVzQKQVo5TpZiuADeJu9RuFT/64PI9TDQGE7c+X fFq4ijd1YPj/E+WI7k5VdUbXYiPIIXmkJ4VAPcu5VWmUS7y7bTeye0Jc3uYAxI1r 7rykYhNzniGn3SZL+wq8rHchL3dTLBYhd34HhTlb5xdGFwmbzKgHBqdlGpH8HOo+ CLu8kPYdmnzYCth4md0ENwgBVkj0tweyZuMzCys1qR6RFhOipxWLNGEvIXWZ0Sp8 uNyXnPdCrZTmlwubwY4FOOLsGKW06GnD64cfmEYoCMcmT2j7clbjasWYM4PXQvbt 0dVtt8k4M5LJBLh8qTX7RMZHDQYMiiYiMnLLAXf4wB0VUTqgNuLc4k0PpX3kBYtO 4b0lU/LQH+8811BMNVBHK55StQ8DjM0C2yfQWx610eoohjV70JTyxOWoqeHFL5hq DIFdLDOgvJCqtyYgJDjmCmH9x6lgfvmxAKq66h9Z7vt25KLUizQ= =fQZm -----END PGP SIGNATURE----- Merge tag 'Wimplicit-fallthrough-5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux Pull more fallthrough fixes from Gustavo A. R. Silva: "Fix fall-through warnings on arm and mips for multiple configurations" * tag 'Wimplicit-fallthrough-5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux: video: fbdev: acornfb: Mark expected switch fall-through scsi: libsas: sas_discover: Mark expected switch fall-through MIPS: Octeon: Mark expected switch fall-through power: supply: ab8500_charger: Mark expected switch fall-through watchdog: wdt285: Mark expected switch fall-through mtd: sa1100: Mark expected switch fall-through drm/sun4i: tcon: Mark expected switch fall-through drm/sun4i: sun6i_mipi_dsi: Mark expected switch fall-through ARM: riscpc: Mark expected switch fall-through dmaengine: fsldma: Mark expected switch fall-through
This commit is contained in:
commit
20eabc8966
|
@ -46,6 +46,7 @@ static int __init parse_tag_acorn(const struct tag *tag)
|
|||
switch (tag->u.acorn.vram_pages) {
|
||||
case 512:
|
||||
vram_size += PAGE_SIZE * 256;
|
||||
/* Fall through - ??? */
|
||||
case 256:
|
||||
vram_size += PAGE_SIZE * 256;
|
||||
default:
|
||||
|
|
|
@ -46,6 +46,7 @@ static inline uint64_t CVMX_SLI_PCIE_MSI_RCV_FUNC(void)
|
|||
case OCTEON_CN78XX & OCTEON_FAMILY_MASK:
|
||||
if (OCTEON_IS_MODEL(OCTEON_CN78XX_PASS1_X))
|
||||
return 0x0000000000003CB0ull;
|
||||
/* Else, fall through */
|
||||
default:
|
||||
return 0x0000000000023CB0ull;
|
||||
}
|
||||
|
|
|
@ -1163,6 +1163,7 @@ static int fsl_dma_chan_probe(struct fsldma_device *fdev,
|
|||
switch (chan->feature & FSL_DMA_IP_MASK) {
|
||||
case FSL_DMA_IP_85XX:
|
||||
chan->toggle_ext_pause = fsl_chan_toggle_ext_pause;
|
||||
/* Fall through */
|
||||
case FSL_DMA_IP_83XX:
|
||||
chan->toggle_ext_start = fsl_chan_toggle_ext_start;
|
||||
chan->set_src_loop_size = fsl_chan_set_src_loop_size;
|
||||
|
|
|
@ -314,6 +314,7 @@ static void sun4i_tcon0_mode_set_dithering(struct sun4i_tcon *tcon,
|
|||
/* R and B components are only 5 bits deep */
|
||||
val |= SUN4I_TCON0_FRM_CTL_MODE_R;
|
||||
val |= SUN4I_TCON0_FRM_CTL_MODE_B;
|
||||
/* Fall through */
|
||||
case MEDIA_BUS_FMT_RGB666_1X18:
|
||||
case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG:
|
||||
/* Fall through: enable dithering */
|
||||
|
|
|
@ -993,6 +993,7 @@ static ssize_t sun6i_dsi_transfer(struct mipi_dsi_host *host,
|
|||
ret = sun6i_dsi_dcs_read(dsi, msg);
|
||||
break;
|
||||
}
|
||||
/* Else, fall through */
|
||||
|
||||
default:
|
||||
ret = -EINVAL;
|
||||
|
|
|
@ -81,6 +81,7 @@ static int sa1100_probe_subdev(struct sa_subdev_info *subdev, struct resource *r
|
|||
default:
|
||||
printk(KERN_WARNING "SA1100 flash: unknown base address "
|
||||
"0x%08lx, assuming CS0\n", phys);
|
||||
/* Fall through */
|
||||
|
||||
case SA1100_CS0_PHYS:
|
||||
subdev->map.bankwidth = (MSC0 & MSC_RBW) ? 2 : 4;
|
||||
|
|
|
@ -742,6 +742,7 @@ static int ab8500_charger_max_usb_curr(struct ab8500_charger *di,
|
|||
USB_CH_IP_CUR_LVL_1P5;
|
||||
break;
|
||||
}
|
||||
/* Else, fall through */
|
||||
case USB_STAT_HM_IDGND:
|
||||
dev_err(di->dev, "USB Type - Charging not allowed\n");
|
||||
di->max_usb_in_curr.usb_type_max = USB_CH_IP_CUR_LVL_0P05;
|
||||
|
|
|
@ -459,6 +459,7 @@ static void sas_discover_domain(struct work_struct *work)
|
|||
pr_notice("ATA device seen but CONFIG_SCSI_SAS_ATA=N so cannot attach\n");
|
||||
/* Fall through */
|
||||
#endif
|
||||
/* Fall through - only for the #else condition above. */
|
||||
default:
|
||||
error = -ENXIO;
|
||||
pr_err("unhandled device %d\n", dev->dev_type);
|
||||
|
|
|
@ -858,6 +858,7 @@ static void acornfb_parse_dram(char *opt)
|
|||
case 'M':
|
||||
case 'm':
|
||||
size *= 1024;
|
||||
/* Fall through */
|
||||
case 'K':
|
||||
case 'k':
|
||||
size *= 1024;
|
||||
|
|
|
@ -168,7 +168,7 @@ static long watchdog_ioctl(struct file *file, unsigned int cmd,
|
|||
soft_margin = new_margin;
|
||||
reload = soft_margin * (mem_fclk_21285 / 256);
|
||||
watchdog_ping();
|
||||
/* Fall */
|
||||
/* Fall through */
|
||||
case WDIOC_GETTIMEOUT:
|
||||
ret = put_user(soft_margin, int_arg);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user