OpenCloudOS-Kernel/arch/s390/pci
Arnd Bergmann 92dfffee97 s390: pci: don't print uninitialized data for debugging
gcc correctly warns about an incorrect use of the 'pa' variable in case
we pass an empty scatterlist to __s390_dma_map_sg:

  arch/s390/pci/pci_dma.c: In function '__s390_dma_map_sg':
  arch/s390/pci/pci_dma.c:309:13: warning: 'pa' may be used uninitialized in this function [-Wmaybe-uninitialized]

This adds a bogus initialization to the function to sanitize the debug
output.  I would have preferred a solution without the initialization,
but I only got the report from the kbuild bot after turning on the
warning again, and didn't manage to reproduce it myself.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-11-11 08:45:08 -08:00
..
Makefile s390/kernel: add system calls for PCI memory access 2014-11-19 09:46:43 +01:00
pci.c s390/pci: add zpci_report_error interface 2016-08-24 09:23:56 +02:00
pci_clp.c s390/pci: PCI function group 0 is valid for clp_query_pci_fn 2016-04-01 08:42:35 +02:00
pci_debug.c s390/pci: fmb enhancements 2016-04-15 18:16:40 +02:00
pci_dma.c s390: pci: don't print uninitialized data for debugging 2016-11-11 08:45:08 -08:00
pci_event.c s390/pci: Delete an unnecessary check before the function call "pci_dev_put" 2016-07-18 10:17:24 +02:00
pci_insn.c s390/pci: use basic blocks for pci inline assemblies 2016-06-28 09:32:32 +02:00
pci_mmio.c s390/pci: fix possible information leak in mmio syscall 2015-02-26 09:24:48 +01:00
pci_sysfs.c s390/pci: add report_error attribute 2016-04-15 18:16:39 +02:00