diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c index 95a24db73bf692..ac4a770250bad1 100644 --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c @@ -1499,7 +1499,7 @@ static struct dma_chan *dw_axi_dma_of_xlate(struct of_phandle_args *dma_spec, { struct dw_axi_dma *dw = ofdma->of_dma_data; struct axi_dma_chan *chan; - uint32_t chan_flags_all; + uint32_t chan_flags_all = 0; uint32_t busy_channels; struct dma_chan *dchan; dma_cap_mask_t mask; diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index f0154b17458ec0..2c4826ede21b8d 100644 --- a/drivers/gpu/drm/vc4/vc4_plane.c +++ b/drivers/gpu/drm/vc4/vc4_plane.c @@ -2817,7 +2817,7 @@ int vc4_plane_create_additional_planes(struct drm_device *drm) struct drm_plane *cursor_plane; struct drm_crtc *crtc; unsigned int i; - struct drm_crtc *txp_crtc; + struct drm_crtc *txp_crtc = NULL; uint32_t non_txp_crtc_mask; drm_for_each_crtc(crtc, drm) { diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h index b2be07d11c67a3..d8c9d6bee80982 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h @@ -310,7 +310,7 @@ struct eventmsgs_ext { u8 command; u8 len; u8 maxgetsize; - u8 mask[1]; + u8 mask[]; }; typedef int (*brcmf_fweh_handler_t)(struct brcmf_if *ifp, diff --git a/drivers/pci/controller/pcie-brcmstb.c b/drivers/pci/controller/pcie-brcmstb.c index 095795a5bb0aee..b182ab75a8fc50 100644 --- a/drivers/pci/controller/pcie-brcmstb.c +++ b/drivers/pci/controller/pcie-brcmstb.c @@ -1575,7 +1575,7 @@ static void brcm_config_clkreq(struct brcm_pcie *pcie) { static const char err_msg[] = "invalid 'brcm,clkreq-mode' DT string\n"; const char *mode = "default"; - u32 clkreq_cntl; + u32 clkreq_cntl = 0; int ret, tmp; ret = of_property_read_string(pcie->np, "brcm,clkreq-mode", &mode); diff --git a/include/linux/pio_rp1.h b/include/linux/pio_rp1.h index f262fdd9c8f1c3..cbec0595496234 100644 --- a/include/linux/pio_rp1.h +++ b/include/linux/pio_rp1.h @@ -41,7 +41,7 @@ #define NUM_PIO_STATE_MACHINES 4 #define PIO_INSTRUCTION_COUNT 32 -#define PIO_ORIGIN_ANY ((uint)(~0)) +#define PIO_ORIGIN_ANY ((uint16_t)(~0)) #define GPIOS_MASK ((1 << RP1_PIO_GPIO_COUNT) - 1) #define PICO_NO_HARDWARE 0 diff --git a/sound/drivers/Kconfig b/sound/drivers/Kconfig index d6fd0c6be56a56..51b17967f206a9 100644 --- a/sound/drivers/Kconfig +++ b/sound/drivers/Kconfig @@ -265,8 +265,9 @@ config SND_AC97_POWER_SAVE_DEFAULT config SND_PIMIDI tristate "Pimidi driver" - depends on SND_SEQUENCER && CRC8 + depends on SND_SEQUENCER select SND_RAWMIDI + select CRC8 help Say Y here to include support for Blokas Pimidi. @@ -275,7 +276,8 @@ config SND_PIMIDI config SND_PISOUND_MICRO tristate "Pisound Micro driver" - depends on SND_SEQUENCER && CRC8 + depends on SND_SEQUENCER + select CRC8 help Say Y here to include support for Blokas Pisound Micro. diff --git a/sound/drivers/upisnd/upisnd_codec.c b/sound/drivers/upisnd/upisnd_codec.c index 9d0fe01e9a7d5e..1ca77255504859 100644 --- a/sound/drivers/upisnd/upisnd_codec.c +++ b/sound/drivers/upisnd/upisnd_codec.c @@ -736,7 +736,7 @@ static int adau1961_add_routes(struct snd_soc_component *component) { struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); struct adau *adau = snd_soc_component_get_drvdata(component); - int ret; + int ret = 0; if (adau->clk_src != ADAU1961_CLK_SRC_MCLK) ret = snd_soc_dapm_add_routes(dapm, &adau1961_dapm_pll_route, 1); diff --git a/sound/soc/bcm/hifiberry_studio_dac8x.c b/sound/soc/bcm/hifiberry_studio_dac8x.c index 75843084a7c973..a4553c2d2432ea 100644 --- a/sound/soc/bcm/hifiberry_studio_dac8x.c +++ b/sound/soc/bcm/hifiberry_studio_dac8x.c @@ -767,7 +767,7 @@ static int hb_uni_read_card_info(struct platform_device *pdev) return -EINVAL; } } else { - if ((priv->card_info.card_clk_options == 0x02)) { + if (priv->card_info.card_clk_options == 0x02) { dev_err(&pdev->dev, "Card cannot run as i2s clock consumer\n"); return -EINVAL;