summaryrefslogtreecommitdiff
path: root/include/kvm/arm_arch_timer.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-12-09 09:36:29 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-12-21 07:33:14 -0200
commit4dd19196c5539c377beaa9850fac30c18318c7a1 (patch)
tree8689a9f13298a3855dae0288b274da828848a42c /include/kvm/arm_arch_timer.h
parent79d6205a3f741c9fb89cfc47dfa0eddb1526726d (diff)
[media] dvb: avoid warning in dvb_net
With gcc-5 or higher on x86, we can get a bogus warning in the dvb-net code: drivers/media/dvb-core/dvb_net.c: In function 'dvb_net_ule': arch/x86/include/asm/string_32.h:78:22: error: '*((void *)&dest_addr+4)' may be used uninitialized in this function [-Werror=maybe-uninitialized] The problem here is that gcc doesn't track all of the conditions to prove it can't end up copying uninitialized data. This changes the logic around so we zero out the destination address earlier when we determine that it is not set here. This allows the compiler to figure it out. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/kvm/arm_arch_timer.h')
0 files changed, 0 insertions, 0 deletions