mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
9e70cbd11b
Initialising the hwrng struct with zeros causes a
compile-time sparse warning:
$ ARCH=um make -j10 W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
...
CHECK arch/um/drivers/random.c
arch/um/drivers/random.c:31:31: sparse: warning: Using plain integer as NULL pointer
Fix the warning by not initialising the hwrng struct
with zeros as it is initialised anyway during module
init.
Fixes:
|
||
---|---|---|
.. | ||
chan.h | ||
chan_kern.c | ||
chan_user.c | ||
chan_user.h | ||
cow.h | ||
cow_sys.h | ||
cow_user.c | ||
daemon.h | ||
daemon_kern.c | ||
daemon_user.c | ||
fd.c | ||
harddog_kern.c | ||
harddog_user.c | ||
hostaudio_kern.c | ||
Kconfig | ||
line.c | ||
line.h | ||
Makefile | ||
mconsole.h | ||
mconsole_kern.c | ||
mconsole_kern.h | ||
mconsole_user.c | ||
mmapper_kern.c | ||
net_kern.c | ||
net_user.c | ||
null.c | ||
pcap_kern.c | ||
pcap_user.c | ||
pcap_user.h | ||
port.h | ||
port_kern.c | ||
port_user.c | ||
pty.c | ||
random.c | ||
rtc.h | ||
rtc_kern.c | ||
rtc_user.c | ||
slip.h | ||
slip_common.c | ||
slip_common.h | ||
slip_kern.c | ||
slip_user.c | ||
slirp.h | ||
slirp_kern.c | ||
slirp_user.c | ||
ssl.c | ||
stderr_console.c | ||
stdio_console.c | ||
stdio_console.h | ||
tty.c | ||
ubd.h | ||
ubd_kern.c | ||
ubd_user.c | ||
umcast.h | ||
umcast_kern.c | ||
umcast_user.c | ||
vde.h | ||
vde_kern.c | ||
vde_user.c | ||
vector_kern.c | ||
vector_kern.h | ||
vector_transports.c | ||
vector_user.c | ||
vector_user.h | ||
vhost_user.h | ||
virt-pci.c | ||
virtio_uml.c | ||
xterm.c | ||
xterm.h | ||
xterm_kern.c |