On Thu, Jul 07, 2022 at 01:20:25PM -0400, Stefan Berger wrote: > Refactor IMA buffer related functions to make them reusable for carrying > TPM logs across kexec. > > Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxxxxx> > Cc: Rob Herring <robh+dt@xxxxxxxxxx> > Cc: Frank Rowand <frowand.list@xxxxxxxxx> > Cc: Mimi Zohar <zohar@xxxxxxxxxxxxx> > > --- > v6: > - Add __init to get_kexec_buffer as suggested by Jonathan > > v5: > - Rebased on Jonathan McDowell's commit "b69a2afd5afc x86/kexec: Carry > forward IMA measurement log on kexec" > v4: > - Move debug output into setup_buffer() > --- > drivers/of/kexec.c | 126 ++++++++++++++++++++++++++------------------- > 1 file changed, 74 insertions(+), 52 deletions(-) Reviewed-by: Rob Herring <robh@xxxxxxxxxx>