mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-10 21:45:31 +07:00
![]() pci_read_config_word() might fail and not initialize its output, as pointed out by older versions of gcc when using the -Wmaybe-unintialized flag: drivers/mtd/maps/ichxrom.c: In function ‘ichxrom_cleanup’: drivers/mtd/maps/ichxrom.c:63:2: error: ‘word’ is used uninitialized in this function [-Werror=uninitialized] This is apparently a correct warning, though it does not show up with newer compilers. Changing the code to not attempt to write back uninitialized data into PCI config space is a correct fix for the problem and avoids the warning. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Marek Vasut <marex@denx.de> Signed-off-by: Brian Norris <computersforpeace@gmail.com> |
||
---|---|---|
.. | ||
amd76xrom.c | ||
bfin-async-flash.c | ||
cfi_flagadm.c | ||
ck804xrom.c | ||
dc21285.c | ||
esb2rom.c | ||
gpio-addr-flash.c | ||
ichxrom.c | ||
impa7.c | ||
intel_vr_nor.c | ||
ixp4xx.c | ||
Kconfig | ||
l440gx.c | ||
lantiq-flash.c | ||
latch-addr-flash.c | ||
Makefile | ||
map_funcs.c | ||
netsc520.c | ||
nettel.c | ||
pci.c | ||
pcmciamtd.c | ||
physmap_of_gemini.c | ||
physmap_of_gemini.h | ||
physmap_of_versatile.c | ||
physmap_of_versatile.h | ||
physmap_of.c | ||
physmap.c | ||
pismo.c | ||
plat-ram.c | ||
pmcmsp-flash.c | ||
pxa2xx-flash.c | ||
rbtx4939-flash.c | ||
sa1100-flash.c | ||
sbc_gxx.c | ||
sc520cdp.c | ||
scb2_flash.c | ||
scx200_docflash.c | ||
solutionengine.c | ||
sun_uflash.c | ||
ts5500_flash.c | ||
tsunami_flash.c | ||
uclinux.c | ||
vmu-flash.c |