linux/arch/um
Christopher Obbard 9e70cbd11b um: random: Don't initialise hwrng struct with zero
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>
2022-07-17 23:34:09 +02:00
..
configs kunit: Move default config from arch/um -> tools/testing/kunit 2021-06-23 17:49:17 -06:00
drivers um: random: Don't initialise hwrng struct with zero 2022-07-17 23:34:09 +02:00
include um: remove unused mm_copy_segments 2022-07-17 23:31:30 +02:00
kernel arch: um: Fix build for statically linked UML w/ constructors 2022-07-17 23:14:34 +02:00
os-Linux um: remove unused variable 2022-07-17 23:26:27 +02:00
scripts License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
.gitignore um: gitignore: Add kernel/capflags.c 2021-12-21 21:22:43 +01:00
Kbuild kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild 2021-05-26 23:10:37 +09:00
Kconfig um: Kconfig: Fix indentation 2022-07-17 23:12:03 +02:00
Kconfig.debug um: Disable CONFIG_GCOV with MODULES 2021-04-15 23:10:33 +02:00
Makefile Revert "um: clang: Strip out -mno-global-merge from USER_CFLAGS" 2022-04-02 00:05:28 +09:00
Makefile-os-Linux
Makefile-skas