powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c
authorLakshmi Ramasubramanian <nramas@linux.microsoft.com>
Sun, 21 Feb 2021 17:49:27 +0000 (09:49 -0800)
committerRob Herring <robh@kernel.org>
Mon, 8 Mar 2021 19:06:29 +0000 (12:06 -0700)
commitfee3ff99bc67604fba77f19da0106f3ec52b1956
tree3f3d8f47d83a247b607df775f04197a6af71c3dc
parent39652741c80bb0006214cf81ba9707d2dc372292
powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c

The functions defined in "arch/powerpc/kexec/ima.c" handle setting up
and freeing the resources required to carry over the IMA measurement
list from the current kernel to the next kernel across kexec system call.
These functions do not have architecture specific code, but are
currently limited to powerpc.

Move remove_ima_buffer() and setup_ima_buffer() calls into
of_kexec_alloc_and_setup_fdt() defined in "drivers/of/kexec.c".

Move the remaining architecture independent functions from
"arch/powerpc/kexec/ima.c" to "drivers/of/kexec.c".
Delete "arch/powerpc/kexec/ima.c" and "arch/powerpc/include/asm/ima.h".
Remove references to the deleted files and functions in powerpc and
in ima.

Co-developed-by: Prakhar Srivastava <prsriva@linux.microsoft.com>
Signed-off-by: Prakhar Srivastava <prsriva@linux.microsoft.com>
Signed-off-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Tested-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210221174930.27324-11-nramas@linux.microsoft.com
arch/powerpc/include/asm/ima.h [deleted file]
arch/powerpc/include/asm/kexec.h
arch/powerpc/kexec/Makefile
arch/powerpc/kexec/file_load.c
arch/powerpc/kexec/file_load_64.c
arch/powerpc/kexec/ima.c [deleted file]
drivers/of/kexec.c
include/linux/of.h
security/integrity/ima/ima.h
security/integrity/ima/ima_kexec.c