efi: Make rng_seed table handling local to efi.c
authorArd Biesheuvel <ardb@kernel.org>
Wed, 22 Jan 2020 13:58:15 +0000 (14:58 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commit5d288dbd88606d8f215c7138b10649115d79cadd
tree04abf3d0f68c221bc9a4238155b73197d1685e84
parentfd506e0cf9fd4306aa0eb57cbff5f00514da8179
efi: Make rng_seed table handling local to efi.c

Move the rng_seed table address from struct efi into a static global
variable in efi.c, which is the only place we ever refer to it anyway.
This reduces the footprint of struct efi, which is a r/w data structure
that is shared with the world.

Tested-by: Tony Luck <tony.luck@intel.com> # arch/ia64
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi.c
include/linux/efi.h