]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/resource.c
resource: Provide resource struct in resource walk callback
authorTom Lendacky <thomas.lendacky@amd.com>
Fri, 20 Oct 2017 14:30:51 +0000 (09:30 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 7 Nov 2017 14:35:57 +0000 (15:35 +0100)
commit1d2e733b13b450e5854f4a8f8efcd77fa7362d62
treea38738ce58e19cb5fb1f3d95e24e75cb1ab8fdf7
parent4ac2aed837cbdbb21c12a28c04718e34c1dc225f
resource: Provide resource struct in resource walk callback

In preperation for a new function that will need additional resource
information during the resource walk, update the resource walk callback to
pass the resource structure.  Since the current callback start and end
arguments are pulled from the resource structure, the callback functions
can obtain them from the resource structure directly.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Tested-by: Borislav Petkov <bp@suse.de>
Cc: kvm@vger.kernel.org
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lkml.kernel.org/r/20171020143059.3291-10-brijesh.singh@amd.com
arch/powerpc/kernel/machine_kexec_file_64.c
arch/x86/kernel/crash.c
arch/x86/kernel/pmem.c
include/linux/ioport.h
include/linux/kexec.h
kernel/kexec_file.c
kernel/resource.c