linux-stable/arch
Christopher Obbard 62d610cfc1 um: random: Don't initialise hwrng struct with zero
[ Upstream commit 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: 72d3e093af ("um: random: Register random as hwrng-core device")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:53 +02:00
..
alpha tty: the rest, stop using tty_schedule_flip() 2022-07-29 17:25:32 +02:00
arc
arm ARM: dts: qcom: pm8841: add required thermal-sensor-cells 2022-08-17 14:23:10 +02:00
arm64 KVM: arm64: Don't return from void function 2022-08-17 14:23:49 +02:00
csky csky: patch_text: Fixup last cpu should be master 2022-06-09 10:23:26 +02:00
h8300
hexagon
ia64 ia64, processor: fix -Wincompatible-pointer-types in ia64_get_irr() 2022-08-17 14:22:57 +02:00
m68k m68knommu: fix undefined reference to `mach_get_rtc_pll' 2022-06-14 18:36:15 +02:00
microblaze
mips MIPS: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK 2022-08-17 14:22:58 +02:00
nds32
nios2
openrisc
parisc parisc: io_pgetevents_time64() needs compat syscall in 32-bit compat mode 2022-08-17 14:22:52 +02:00
powerpc powerpc/64s: Disable stack variable initialisation for prom_init 2022-08-17 14:23:05 +02:00
riscv RISC-V: Add modules to virtual kernel memory layout dump 2022-08-17 14:22:52 +02:00
s390 KVM: s390: pv: leak the topmost page table when destroy fails 2022-08-17 14:23:51 +02:00
sh sh: convert nommu io{re,un}map() to static inline functions 2022-07-21 21:24:14 +02:00
sparc
um um: random: Don't initialise hwrng struct with zero 2022-08-17 14:23:53 +02:00
x86 KVM: SVM: Stuff next_rip on emulated INT3 injection if NRIPS is supported 2022-08-17 14:23:40 +02:00
xtensa xtensa: iss: fix handling error cases in iss_net_configure() 2022-08-17 14:23:52 +02:00
.gitignore
Kconfig arch: make TRACE_IRQFLAGS_NMI_SUPPORT generic 2022-08-17 14:23:00 +02:00