[folded-merged] selftest-mm-mseal-read-only-elf-memory-segment-fix-2.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The quilt patch titled
     Subject: selftests: mm: fix linker error for inline function
has been removed from the -mm tree.  Its filename was
     selftest-mm-mseal-read-only-elf-memory-segment-fix-2.patch

This patch was dropped because it was folded into selftest-mm-mseal-read-only-elf-memory-segment.patch

------------------------------------------------------
From: Amer Al Shanawany <amer.shanawany@xxxxxxxxx>
Subject: selftests: mm: fix linker error for inline function
Date: Sat, 20 Apr 2024 22:23:46 +0200

add 'static' keyword to 'sys_mprotect()' to link properly, otherwise the
test won't build.

gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0

/usr/bin/ld: /tmp/cc7yeABp.o: in function `test_seal_elf':
seal_elf.c:(.text+0x7af): undefined reference to `sys_mprotect'
/usr/bin/ld: seal_elf.c:(.text+0x82c): undefined reference to
`sys_mprotect'
/usr/bin/ld: seal_elf.c:(.text+0xa4e): undefined reference to
`sys_mprotect'

Link: https://lkml.kernel.org/r/20240420202346.546444-1-amer.shanawany@xxxxxxxxx
Signed-off-by: Amer Al Shanawany <amer.shanawany@xxxxxxxxx>
Cc: Javier Carrasco <javier.carrasco.cruz@xxxxxxxxx>
Cc: Shuah Khan <shuah@xxxxxxxxxx>
Cc: Jeff Xu <jeffxu@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 tools/testing/selftests/mm/seal_elf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/tools/testing/selftests/mm/seal_elf.c~selftest-mm-mseal-read-only-elf-memory-segment-fix-2
+++ a/tools/testing/selftests/mm/seal_elf.c
@@ -72,7 +72,7 @@ static void *sys_mmap(void *addr, unsign
 	return sret;
 }
 
-inline int sys_mprotect(void *ptr, size_t size, unsigned long prot)
+static inline int sys_mprotect(void *ptr, size_t size, unsigned long prot)
 {
 	int sret;
 
_

Patches currently in -mm which might be from amer.shanawany@xxxxxxxxx are

selftest-mm-mseal-read-only-elf-memory-segment.patch





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux