[opensuse-kernel] [PATCH openSUSE-13.2] arm64-fix-mmap2-compat-syscall.patch: add missing endprocedure declaration
--- patches.arch/arm64-fix-mmap2-compat-syscall.patch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/patches.arch/arm64-fix-mmap2-compat-syscall.patch b/patches.arch/arm64-fix-mmap2-compat-syscall.patch index 0eea377..f7760fd 100644 --- a/patches.arch/arm64-fix-mmap2-compat-syscall.patch +++ b/patches.arch/arm64-fix-mmap2-compat-syscall.patch @@ -47,7 +47,7 @@ index 423a5b3..baf024d 100644 /* * System call wrappers for the AArch32 compatibility layer. -@@ -53,6 +56,20 @@ compat_sys_fstatfs64_wrapper: +@@ -53,6 +56,25 @@ compat_sys_fstatfs64_wrapper: b compat_sys_fstatfs64 ENDPROC(compat_sys_fstatfs64_wrapper) @@ -57,6 +57,7 @@ index 423a5b3..baf024d 100644 + * Note: off_4k (w5) is always units of 4K. If we can't do the requested + * offset, we return EINVAL. + */ ++#if PAGE_SHIFT > 12 +compat_sys_mmap2_wrapper: + tst w5, #~PAGE_MASK >> 12 + b.ne 1f @@ -64,10 +65,11 @@ index 423a5b3..baf024d 100644 + b sys_mmap_pgoff +1: mov x0, #-EINVAL + ret lr ++ENDPROC(compat_sys_mmap2_wrapper) ++#else ++#define compat_sys_mmap2_wrapper sys_mmap_pgoff ++#endif + /* * Wrappers for AArch32 syscalls that either take 64-bit parameters * in registers or that take 32-bit parameters which require sign --- -2.3.1 - -- 2.0.4 -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (1)
-
Dirk Müller