kexec_file: Change kexec_add_buffer to take kexec_buf as argument.
authorThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Tue, 29 Nov 2016 12:45:48 +0000 (23:45 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Nov 2016 12:14:59 +0000 (23:14 +1100)
commitec2b9bfaac44ea889625a6b9473d33898b10d35f
treeabb247ab853ca78135948da2e30da525b4a5839f
parent60fe3910bb029e3671ce7ac080a7acb7e032b9e0
kexec_file: Change kexec_add_buffer to take kexec_buf as argument.

This is done to simplify the kexec_add_buffer argument list.
Adapt all callers to set up a kexec_buf to pass to kexec_add_buffer.

In addition, change the type of kexec_buf.buffer from char * to void *.
There is no particular reason for it to be a char *, and the change
allows us to get rid of 3 existing casts to char * in the code.

Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Acked-by: Dave Young <dyoung@redhat.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/x86/kernel/crash.c
arch/x86/kernel/kexec-bzimage64.c
include/linux/kexec.h
kernel/kexec_file.c