]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bus: fsl-mc: properly empty-initialize structure
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 4 Dec 2019 14:29:50 +0000 (16:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:38:28 +0000 (08:38 +0100)
commitdb54c15b01e0dc9e311f3988d2ad5df639c00f6c
treef2e2d717aaabbcbac3505875d5630ecd1acf9ad6
parent133f8852187cd21e001b35f1f36bb73fb96cbd26
bus: fsl-mc: properly empty-initialize structure

[ Upstream commit cff081ea9d0962defd733daf6778f62b1dac3daa ]

Use the proper form of the empty initializer when working with
structures that contain an array. Otherwise, older gcc versions (eg gcc
4.9) will complain about this.

Fixes: 1ac210d128ef ("bus: fsl-mc: add the fsl_mc_get_endpoint function")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Link: https://lore.kernel.org/r/20191204142950.30206-1-ioana.ciornei@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bus/fsl-mc/fsl-mc-bus.c