linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ARM64] selftests, arm64: add kernel headers path for tags_test
@ 2019-09-04 16:41 Andrey Konovalov
  2019-09-06 13:51 ` Will Deacon
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Konovalov @ 2019-09-04 16:41 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kselftest, linux-kernel, Will Deacon
  Cc: Catalin Marinas, Vincenzo Frascino, Mark Rutland,
	Cristian Marussi, Amit Kachhap, Dmitry Vyukov, Kostya Serebryany,
	Evgeniy Stepanov, Andrey Konovalov

tags_test.c relies on PR_SET_TAGGED_ADDR_CTRL/PR_TAGGED_ADDR_ENABLE being
present in system headers. When this is not the case the build of this
test fails with undeclared identifier errors.

Fix by providing the path to the KSFT installed kernel headers in CFLAGS.

Reported-by: Cristian Marussi <cristian.marussi@arm.com>
Suggested-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
---
 tools/testing/selftests/arm64/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/arm64/Makefile b/tools/testing/selftests/arm64/Makefile
index a61b2e743e99..f9f79fb272f0 100644
--- a/tools/testing/selftests/arm64/Makefile
+++ b/tools/testing/selftests/arm64/Makefile
@@ -4,6 +4,7 @@
 ARCH ?= $(shell uname -m 2>/dev/null || echo not)
 
 ifneq (,$(filter $(ARCH),aarch64 arm64))
+CFLAGS += -I../../../../usr/include/
 TEST_GEN_PROGS := tags_test
 TEST_PROGS := run_tags_test.sh
 endif
-- 
2.23.0.187.g17f5b7556c-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH ARM64] selftests, arm64: add kernel headers path for tags_test
  2019-09-04 16:41 [PATCH ARM64] selftests, arm64: add kernel headers path for tags_test Andrey Konovalov
@ 2019-09-06 13:51 ` Will Deacon
  2019-09-06 13:55   ` Andrey Konovalov
  0 siblings, 1 reply; 4+ messages in thread
From: Will Deacon @ 2019-09-06 13:51 UTC (permalink / raw)
  To: Andrey Konovalov
  Cc: linux-arm-kernel, linux-kselftest, linux-kernel, Will Deacon,
	Mark Rutland, Catalin Marinas, Evgeniy Stepanov,
	Kostya Serebryany, Cristian Marussi, Amit Kachhap,
	Vincenzo Frascino, Dmitry Vyukov

On Wed, Sep 04, 2019 at 06:41:00PM +0200, Andrey Konovalov wrote:
> tags_test.c relies on PR_SET_TAGGED_ADDR_CTRL/PR_TAGGED_ADDR_ENABLE being
> present in system headers. When this is not the case the build of this
> test fails with undeclared identifier errors.
> 
> Fix by providing the path to the KSFT installed kernel headers in CFLAGS.
> 
> Reported-by: Cristian Marussi <cristian.marussi@arm.com>
> Suggested-by: Cristian Marussi <cristian.marussi@arm.com>
> Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
> ---
>  tools/testing/selftests/arm64/Makefile | 1 +
>  1 file changed, 1 insertion(+)

Damn, I just tagged the arm64 queue for 5.4 and didn't spot this patch.

I'll queue it at -rc1 instead, if that's ok? It doesn't look urgent.

Thanks,

Will

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH ARM64] selftests, arm64: add kernel headers path for tags_test
  2019-09-06 13:51 ` Will Deacon
@ 2019-09-06 13:55   ` Andrey Konovalov
  2019-09-06 14:21     ` Cristian Marussi
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Konovalov @ 2019-09-06 13:55 UTC (permalink / raw)
  To: Will Deacon
  Cc: Linux ARM, open list:KERNEL SELFTEST FRAMEWORK, LKML,
	Will Deacon, Mark Rutland, Catalin Marinas, Evgeniy Stepanov,
	Kostya Serebryany, Cristian Marussi, Amit Kachhap,
	Vincenzo Frascino, Dmitry Vyukov

On Fri, Sep 6, 2019 at 3:51 PM Will Deacon <will@kernel.org> wrote:
>
> On Wed, Sep 04, 2019 at 06:41:00PM +0200, Andrey Konovalov wrote:
> > tags_test.c relies on PR_SET_TAGGED_ADDR_CTRL/PR_TAGGED_ADDR_ENABLE being
> > present in system headers. When this is not the case the build of this
> > test fails with undeclared identifier errors.
> >
> > Fix by providing the path to the KSFT installed kernel headers in CFLAGS.
> >
> > Reported-by: Cristian Marussi <cristian.marussi@arm.com>
> > Suggested-by: Cristian Marussi <cristian.marussi@arm.com>
> > Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
> > ---
> >  tools/testing/selftests/arm64/Makefile | 1 +
> >  1 file changed, 1 insertion(+)
>
> Damn, I just tagged the arm64 queue for 5.4 and didn't spot this patch.
>
> I'll queue it at -rc1 instead, if that's ok? It doesn't look urgent.

Sorry, I guess I should have pinged you directly.

I think it should be fine to leave it for rc1. It might cause a build
error in some kernel CI systems if they run kselftests though.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH ARM64] selftests, arm64: add kernel headers path for tags_test
  2019-09-06 13:55   ` Andrey Konovalov
@ 2019-09-06 14:21     ` Cristian Marussi
  0 siblings, 0 replies; 4+ messages in thread
From: Cristian Marussi @ 2019-09-06 14:21 UTC (permalink / raw)
  To: Andrey Konovalov, Will Deacon
  Cc: Linux ARM, open list:KERNEL SELFTEST FRAMEWORK, LKML,
	Will Deacon, Mark Rutland, Catalin Marinas, Evgeniy Stepanov,
	Kostya Serebryany, Amit Kachhap, Vincenzo Frascino,
	Dmitry Vyukov

On 06/09/2019 14:55, Andrey Konovalov wrote:
> On Fri, Sep 6, 2019 at 3:51 PM Will Deacon <will@kernel.org> wrote:
>>
>> On Wed, Sep 04, 2019 at 06:41:00PM +0200, Andrey Konovalov wrote:
>>> tags_test.c relies on PR_SET_TAGGED_ADDR_CTRL/PR_TAGGED_ADDR_ENABLE being
>>> present in system headers. When this is not the case the build of this
>>> test fails with undeclared identifier errors.
>>>
>>> Fix by providing the path to the KSFT installed kernel headers in CFLAGS.
>>>
>>> Reported-by: Cristian Marussi <cristian.marussi@arm.com>
>>> Suggested-by: Cristian Marussi <cristian.marussi@arm.com>
>>> Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
>>> ---
>>>  tools/testing/selftests/arm64/Makefile | 1 +
>>>  1 file changed, 1 insertion(+)
>>
>> Damn, I just tagged the arm64 queue for 5.4 and didn't spot this patch.
>>
>> I'll queue it at -rc1 instead, if that's ok? It doesn't look urgent.
> 
> Sorry, I guess I should have pinged you directly.
> 
> I think it should be fine to leave it for rc1. It might cause a build
> error in some kernel CI systems if they run kselftests though.
> 

It won't be a big issue probably.

Cristian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-06 14:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-04 16:41 [PATCH ARM64] selftests, arm64: add kernel headers path for tags_test Andrey Konovalov
2019-09-06 13:51 ` Will Deacon
2019-09-06 13:55   ` Andrey Konovalov
2019-09-06 14:21     ` Cristian Marussi

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).