* [PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917
@ 2025-03-11 8:41 Madhavan Srinivasan
2025-03-11 15:15 ` Catalin Marinas
2025-03-11 17:17 ` Catalin Marinas
0 siblings, 2 replies; 3+ messages in thread
From: Madhavan Srinivasan @ 2025-03-11 8:41 UTC (permalink / raw)
To: catalin.marinas, shuah
Cc: mpe, npiggin, christophe.leroy, naveen, yury.khrustalev,
linux-arm-kernel, linux-kselftest, linuxppc-dev,
Madhavan Srinivasan, Venkat Rao Bagalkote
Build break was reported in the powerpc mailing list for next-20250218 with below errors
make[1]: Nothing to be done for 'all'.
BUILD_TARGET=/root/venkat/linux-next/tools/testing/selftests/powerpc/mm; mkdir -p $BUILD_TARGET; make OUTPUT=$BUILD_TARGET -k -C mm all
CC pkey_exec_prot
In file included from pkey_exec_prot.c:18:
/root/venkat/linux-next/tools/testing/selftests/powerpc/include/pkeys.h: In function ‘pkeys_unsupported’:
/root/venkat/linux-next/tools/testing/selftests/powerpc/include/pkeys.h:96:34: error: ‘PKEY_UNRESTRICTED’ undeclared (first use in this function)
96 | pkey = sys_pkey_alloc(0, PKEY_UNRESTRICTED);
| ^~~~~~~~~~~~~~~~~
https://lore.kernel.org/all/20250113170619.484698-2-yury.khrustalev@arm.com/ patchset
has been queued to arm64/for-next/pkey_unrestricted which is causing a build break
in the selftest/powerpc builds.
Commit 6d61527d931ba ("mm/pkey: Add PKEY_UNRESTRICTED macro") added a macro
PKEY_UNRESTRICTED to handle implicit literal value of 0x0 (which is "unrestricted").
Add the same to selftest/powerpc/pkeys.h to fix the reported build break.
Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Closes: https://lore.kernel.org/lkml/3267ea6e-5a1a-4752-96ef-8351c912d386@linux.ibm.com/T/
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
---
Catalin, can you take this fix via arm64/for-next/pkey_unrestricted?
Patch applies clean on top of arm64/for-next/pkey_unrestricted
tools/testing/selftests/powerpc/include/pkeys.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/powerpc/include/pkeys.h b/tools/testing/selftests/powerpc/include/pkeys.h
index c6d4063dd4f6..d6deb6ffa1b9 100644
--- a/tools/testing/selftests/powerpc/include/pkeys.h
+++ b/tools/testing/selftests/powerpc/include/pkeys.h
@@ -24,6 +24,9 @@
#undef PKEY_DISABLE_EXECUTE
#define PKEY_DISABLE_EXECUTE 0x4
+#undef PKEY_UNRESTRICTED
+#define PKEY_UNRESTRICTED 0x0
+
/* Older versions of libc do not define this */
#ifndef SEGV_PKUERR
#define SEGV_PKUERR 4
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917
2025-03-11 8:41 [PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917 Madhavan Srinivasan
@ 2025-03-11 15:15 ` Catalin Marinas
2025-03-11 17:17 ` Catalin Marinas
1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2025-03-11 15:15 UTC (permalink / raw)
To: Madhavan Srinivasan
Cc: shuah, mpe, npiggin, christophe.leroy, naveen, yury.khrustalev,
linux-arm-kernel, linux-kselftest, linuxppc-dev,
Venkat Rao Bagalkote
Hi Madhavan,
On Tue, Mar 11, 2025 at 02:11:29PM +0530, Madhavan Srinivasan wrote:
> Build break was reported in the powerpc mailing list for next-20250218 with below errors
>
> make[1]: Nothing to be done for 'all'.
> BUILD_TARGET=/root/venkat/linux-next/tools/testing/selftests/powerpc/mm; mkdir -p $BUILD_TARGET; make OUTPUT=$BUILD_TARGET -k -C mm all
> CC pkey_exec_prot
> In file included from pkey_exec_prot.c:18:
> /root/venkat/linux-next/tools/testing/selftests/powerpc/include/pkeys.h: In function ‘pkeys_unsupported’:
> /root/venkat/linux-next/tools/testing/selftests/powerpc/include/pkeys.h:96:34: error: ‘PKEY_UNRESTRICTED’ undeclared (first use in this function)
> 96 | pkey = sys_pkey_alloc(0, PKEY_UNRESTRICTED);
> | ^~~~~~~~~~~~~~~~~
>
> https://lore.kernel.org/all/20250113170619.484698-2-yury.khrustalev@arm.com/ patchset
> has been queued to arm64/for-next/pkey_unrestricted which is causing a build break
> in the selftest/powerpc builds.
>
> Commit 6d61527d931ba ("mm/pkey: Add PKEY_UNRESTRICTED macro") added a macro
> PKEY_UNRESTRICTED to handle implicit literal value of 0x0 (which is "unrestricted").
> Add the same to selftest/powerpc/pkeys.h to fix the reported build break.
>
> Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
> Closes: https://lore.kernel.org/lkml/3267ea6e-5a1a-4752-96ef-8351c912d386@linux.ibm.com/T/
> Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
> ---
> Catalin, can you take this fix via arm64/for-next/pkey_unrestricted?
> Patch applies clean on top of arm64/for-next/pkey_unrestricted
I'll take it, sorry for the break. I did not realise powerpc duplicates
those definitions.
--
Catalin
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917
2025-03-11 8:41 [PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917 Madhavan Srinivasan
2025-03-11 15:15 ` Catalin Marinas
@ 2025-03-11 17:17 ` Catalin Marinas
1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2025-03-11 17:17 UTC (permalink / raw)
To: shuah, Madhavan Srinivasan
Cc: Will Deacon, mpe, npiggin, christophe.leroy, naveen,
yury.khrustalev, linux-arm-kernel, linux-kselftest, linuxppc-dev,
Venkat Rao Bagalkote
On Tue, 11 Mar 2025 14:11:29 +0530, Madhavan Srinivasan wrote:
> Build break was reported in the powerpc mailing list for next-20250218 with below errors
>
> make[1]: Nothing to be done for 'all'.
> BUILD_TARGET=/root/venkat/linux-next/tools/testing/selftests/powerpc/mm; mkdir -p $BUILD_TARGET; make OUTPUT=$BUILD_TARGET -k -C mm all
> CC pkey_exec_prot
> In file included from pkey_exec_prot.c:18:
> /root/venkat/linux-next/tools/testing/selftests/powerpc/include/pkeys.h: In function ‘pkeys_unsupported’:
> /root/venkat/linux-next/tools/testing/selftests/powerpc/include/pkeys.h:96:34: error: ‘PKEY_UNRESTRICTED’ undeclared (first use in this function)
> 96 | pkey = sys_pkey_alloc(0, PKEY_UNRESTRICTED);
> | ^~~~~~~~~~~~~~~~~
>
> [...]
Applied to arm64 (for-next/pkey_unrestricted), thanks!
[1/1] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917
https://git.kernel.org/arm64/c/73276cee1a25
--
Catalin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-11 17:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 8:41 [PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917 Madhavan Srinivasan
2025-03-11 15:15 ` Catalin Marinas
2025-03-11 17:17 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).