mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-24 10:10:20 -04:00
s390/kdump: cleanup do_start_kdump() prototype and usage
Avoid unnecessary run-time and compile-time type conversions of do_start_kdump() function return value and parameter. Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
committed by
Vasily Gorbik
parent
7a04d491ed
commit
86295cb453
@@ -111,9 +111,8 @@ static noinline void __machine_kdump(void *image)
|
||||
store_status(__do_machine_kdump, image);
|
||||
}
|
||||
|
||||
static unsigned long do_start_kdump(unsigned long addr)
|
||||
static int do_start_kdump(struct kimage *image)
|
||||
{
|
||||
struct kimage *image = (struct kimage *) addr;
|
||||
int (*start_kdump)(int) = (void *)image->start;
|
||||
int rc;
|
||||
|
||||
@@ -134,8 +133,8 @@ static bool kdump_csum_valid(struct kimage *image)
|
||||
int rc;
|
||||
|
||||
preempt_disable();
|
||||
rc = call_on_stack(1, S390_lowcore.nodat_stack, unsigned long, do_start_kdump,
|
||||
unsigned long, (unsigned long)image);
|
||||
rc = call_on_stack(1, S390_lowcore.nodat_stack, int, do_start_kdump,
|
||||
struct kimage *, image);
|
||||
preempt_enable();
|
||||
return rc == 0;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user