kexec/compat: convert to COMPAT_SYSCALL_DEFINE with changing parameter types
In order to allow the COMPAT_SYSCALL_DEFINE macro generate code that performs proper zero and sign extension convert all 64 bit parameters to their corresponding 32 bit compat counterparts. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
This commit is contained in:
@@ -1039,10 +1039,10 @@ void __weak crash_unmap_reserved_pages(void)
|
||||
{}
|
||||
|
||||
#ifdef CONFIG_COMPAT
|
||||
asmlinkage long compat_sys_kexec_load(unsigned long entry,
|
||||
unsigned long nr_segments,
|
||||
struct compat_kexec_segment __user *segments,
|
||||
unsigned long flags)
|
||||
COMPAT_SYSCALL_DEFINE4(kexec_load, compat_ulong_t, entry,
|
||||
compat_ulong_t, nr_segments,
|
||||
struct compat_kexec_segment __user *, segments,
|
||||
compat_ulong_t, flags)
|
||||
{
|
||||
struct compat_kexec_segment in;
|
||||
struct kexec_segment out, __user *ksegments;
|
||||
|
||||
Reference in New Issue
Block a user