summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-11-10 19:44:48 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2016-11-11 19:45:08 +0300
commit92dfffee974f75c28b0c89f31318669091de1ec3 (patch)
treeaf05e2169fc95c6560ccb3e13148d183e7c99dff /drivers/media
parent069013a9e2bbf1ace3f796cb664023dcd40730f7 (diff)
downloadlinux-92dfffee974f75c28b0c89f31318669091de1ec3.tar.xz
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>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions