linux_dsm_epyc7002/sound/soc
Gustavo A. R. Silva 681c896ceb
ASoC: wm0010: Replace zero-length array with flexible-array member
The current codebase makes use of the zero-length array language
extension to the C90 standard, but the preferred mechanism to declare
variable-length types such as these ones is a flexible array member[1][2],
introduced in C99:

struct foo {
        int stuff;
        struct boo array[];
};

By making use of the mechanism above, we will get a compiler warning
in case the flexible array does not occur last in the structure, which
will help us prevent some kind of undefined behavior bugs from being
inadvertenly introduced[3] to the codebase from now on.

This issue was found with the help of Coccinelle.

[1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html
[2] https://github.com/KSPP/linux/issues/21
[3] commit 7649773293 ("cxgb3/l2t: Fix undefined behaviour")

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200211200549.GA12072@embeddedor
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-02-12 19:13:40 +00:00
..
adi
amd ASoC: amd: Fix simultaneous playback and capture 2020-01-29 17:48:47 +00:00
atmel ASoC: atmel: fix atmel_ssc_set_audio link failure 2020-02-10 11:59:09 +00:00
au1x sound updates for 5.6-rc1 2020-01-28 16:26:57 -08:00
bcm
cirrus
codecs ASoC: wm0010: Replace zero-length array with flexible-array member 2020-02-12 19:13:40 +00:00
dwc
fsl ASoC: fsl_sai: Fix exiting path on probing failure 2020-02-06 15:52:50 +00:00
generic
hisilicon
img
intel ASoC: Intel: mrfld: return error codes when an error occurs 2020-02-11 11:25:05 +00:00
jz4740
kirkwood
mediatek ASoC: mediatek: mt8173-rt5650: support HDMI jack reporting 2020-02-11 11:47:57 +00:00
meson
mxs
pxa
qcom
rockchip
samsung
sh ASoC: sh: fsi: Restore devm_ioremap() alignment 2020-02-12 18:42:47 +00:00
sirf
sof Merge branch 'for-5.6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.7 2020-02-11 16:18:04 +00:00
spear
sprd
sti
stm ASoC: stm32: i2s: improve error management on probe deferral 2020-02-11 11:24:43 +00:00
sunxi treewide: remove redundant IS_ERR() before error code check 2020-02-04 03:05:27 +00:00
tegra ASoC: tegra: Revert 24 and 32 bit support 2020-02-02 12:07:47 +00:00
ti ASoC: ti: davinci-mcasp: remove redundant assignment to variable ret 2020-02-11 11:47:59 +00:00
txx9
uniphier
ux500
xilinx
xtensa
zte
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-component.c
soc-compress.c
soc-core.c
soc-dai.c ASoC: soc-pcm: call snd_soc_dai_startup()/shutdown() once 2020-02-11 15:42:03 +00:00
soc-dapm.c ASoC: soc-pcm: add for_each_dapm_widgets() macro 2020-02-11 15:41:16 +00:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-io.c
soc-jack.c
soc-ops.c
soc-pcm.c ASoC: soc-pcm: call snd_soc_dai_startup()/shutdown() once 2020-02-11 15:42:03 +00:00
soc-topology.c
soc-utils.c