linux_dsm_epyc7002/drivers/gpu/drm/bridge
Kees Cook 3f649ab728 treewide: Remove uninitialized_var() usage
Using uninitialized_var() is dangerous as it papers over real bugs[1]
(or can in the future), and suppresses unrelated compiler warnings
(e.g. "unused variable"). If the compiler thinks it is uninitialized,
either simply initialize the variable or make compiler changes.

In preparation for removing[2] the[3] macro[4], remove all remaining
needless uses with the following script:

git grep '\buninitialized_var\b' | cut -d: -f1 | sort -u | \
	xargs perl -pi -e \
		's/\buninitialized_var\(([^\)]+)\)/\1/g;
		 s:\s*/\* (GCC be quiet|to make compiler happy) \*/$::g;'

drivers/video/fbdev/riva/riva_hw.c was manually tweaked to avoid
pathological white-space.

No outstanding warnings were found building allmodconfig with GCC 9.3.0
for x86_64, i386, arm64, arm, powerpc, powerpc64le, s390x, mips, sparc64,
alpha, and m68k.

[1] https://lore.kernel.org/lkml/20200603174714.192027-1-glider@google.com/
[2] https://lore.kernel.org/lkml/CA+55aFw+Vbj0i=1TGqCR5vQkCzWJ0QxK6CernOU6eedsudAixw@mail.gmail.com/
[3] https://lore.kernel.org/lkml/CA+55aFwgbgqhbp1fkxvRKEpzyR5J8n1vKT1VZdz9knmPuXhOeg@mail.gmail.com/
[4] https://lore.kernel.org/lkml/CA+55aFz2500WfbKXAx8s67wrm9=yVJu65TpLgN_ybYNv0VEOKA@mail.gmail.com/

Reviewed-by: Leon Romanovsky <leonro@mellanox.com> # drivers/infiniband and mlx4/mlx5
Acked-by: Jason Gunthorpe <jgg@mellanox.com> # IB
Acked-by: Kalle Valo <kvalo@codeaurora.org> # wireless drivers
Reviewed-by: Chao Yu <yuchao0@huawei.com> # erofs
Signed-off-by: Kees Cook <keescook@chromium.org>
2020-07-16 12:35:15 -07:00
..
adv7511 drm: Fix misspellings of "Analog Devices" 2020-04-21 08:15:03 +02:00
analogix drm/bridge: anx6345: set correct BPC for display_info of connector 2020-04-14 19:30:36 +02:00
synopsys drm pull for 5.8-rc1 2020-06-02 15:04:15 -07:00
cdns-dsi.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
chrontel-ch7033.c drm/bridge: chrontel-ch7033: Add a new driver 2020-05-05 09:48:56 +02:00
display-connector.c drm/bridge: Add bridge driver for display connectors 2020-02-26 13:31:37 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
lvds-codec.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
Makefile drm/bridge: chrontel-ch7033: Add a new driver 2020-05-05 09:48:56 +02:00
megachips-stdpxxxx-ge-b850v3-fw.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
nwl-dsi.c drm/bridge: Add NWL MIPI DSI host controller support 2020-04-09 15:52:47 +02:00
nwl-dsi.h drm/bridge: Add NWL MIPI DSI host controller support 2020-04-09 15:52:47 +02:00
nxp-ptn3460.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
panel.c drm/bridge: panel: Return always an error pointer in drm_panel_bridge_add() 2020-04-25 16:48:55 +02:00
parade-ps8622.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
parade-ps8640.c drm/bridge: ps8640: Let panel to set the connector type 2020-04-25 16:43:11 +02:00
sii902x.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
sii9234.c drm/bridge: sii9234: silence warning about regulators during deferred probe 2020-03-27 08:39:55 +01:00
sil-sii8620.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
sil-sii8620.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
simple-bridge.c drm/bridge: simple-bridge: Add support for the TI OPA362 2020-02-26 13:31:33 +02:00
tc358764.c drm: Remove drm_fb_helper add, add all and remove connector calls 2020-03-06 14:19:58 +01:00
tc358767.c Linux 5.6-rc5 2020-03-11 07:27:21 +10:00
tc358768.c drm/bridge: fix stack usage warning on old gcc 2020-04-29 22:35:50 +02:00
thc63lvd1024.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
ti-sn65dsi86.c drm/bridge: Extend bridge API to disable connector creation 2020-02-26 13:31:23 +02:00
ti-tfp410.c Linux 5.6-rc5 2020-03-11 07:27:21 +10:00
ti-tpd12s015.c drm/bridge: Add driver for the TI TPD12S015 HDMI level shifter 2020-02-26 13:31:38 +02:00