twx-linux/include
Richard Fitzgerald d327ea15a3 random32: Fix implicit truncation warning in prandom_seed_state()
sparse generates the following warning:

 include/linux/prandom.h:114:45: sparse: sparse: cast truncates bits from
 constant value

This is because the 64-bit seed value is manipulated and then placed in a
u32, causing an implicit cast and truncation. A forced cast to u32 doesn't
prevent this warning, which is reasonable because a typecast doesn't prove
that truncation was expected.

Logical-AND the value with 0xffffffff to make explicit that truncation to
32-bit is intended.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210525122012.6336-3-rf@opensource.cirrus.com
2021-05-27 15:38:17 +02:00
..
acpi Merge branches 'acpi-cppc', 'acpi-video' and 'acpi-utils' 2021-04-26 17:04:27 +02:00
asm-generic CFI on arm64 series for v5.13-rc1 2021-04-27 10:16:46 -07:00
clocksource ARM: platform support for Apple M1 2021-04-26 12:30:36 -07:00
crypto
drm
dt-bindings ARM: platform support for Apple M1 2021-04-26 12:30:36 -07:00
keys Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2021-04-26 08:51:23 -07:00
kunit
kvm
linux random32: Fix implicit truncation warning in prandom_seed_state() 2021-05-27 15:38:17 +02:00
math-emu
media
memory
misc
net AFS: Use the new netfs lib 2021-04-27 13:27:39 -07:00
pcmcia
ras
rdma
scsi Fix misc new gcc warnings 2021-04-27 17:05:53 -07:00
soc ARM: SoC drivers for v5.13 2021-04-26 12:11:52 -07:00
sound
target
trace AFS: Use the new netfs lib 2021-04-27 13:27:39 -07:00
uapi MTD core: 2021-04-26 16:16:09 -07:00
vdso
video
xen xen/arm: introduce XENFEAT_direct_mapped and XENFEAT_not_direct_mapped 2021-04-23 11:33:50 +02:00