diff options
author | Arnd Bergmann <[email protected]> | 2016-11-10 17:44:48 +0100 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-11-11 08:45:08 -0800 |
commit | 92dfffee974f75c28b0c89f31318669091de1ec3 (patch) | |
tree | af05e2169fc95c6560ccb3e13148d183e7c99dff /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 069013a9e2bbf1ace3f796cb664023dcd40730f7 (diff) |
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 <[email protected]>
Acked-by: Sebastian Ott <[email protected]>
Acked-by: Martin Schwidefsky <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions