* [PATCH] selftests: ptp: include default header install path
@ 2017-07-28 23:44 Grygorii Strashko
2017-08-02 21:32 ` Shuah Khan
0 siblings, 1 reply; 2+ messages in thread
From: Grygorii Strashko @ 2017-07-28 23:44 UTC (permalink / raw)
To: Shuah Khan, Jonathan Corbet
Cc: linux-kselftest, linux-kernel, Grygorii Strashko
Add the usr/include subdirectory of the top-level tree to the include
path to fix build when cross compiling for ARM.
testptp.c: In function 'main':
testptp.c:289:15: error: 'struct ptp_clock_caps' has no member named 'cross_timestamping'
caps.cross_timestamping);
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
tools/testing/selftests/ptp/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/ptp/Makefile b/tools/testing/selftests/ptp/Makefile
index 83dd42b..d4064c7 100644
--- a/tools/testing/selftests/ptp/Makefile
+++ b/tools/testing/selftests/ptp/Makefile
@@ -1,3 +1,4 @@
+CFLAGS += -I../../../../usr/include/
TEST_PROGS := testptp
LDLIBS += -lrt
all: $(TEST_PROGS)
--
2.10.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] selftests: ptp: include default header install path
2017-07-28 23:44 [PATCH] selftests: ptp: include default header install path Grygorii Strashko
@ 2017-08-02 21:32 ` Shuah Khan
0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2017-08-02 21:32 UTC (permalink / raw)
To: Grygorii Strashko, Jonathan Corbet
Cc: linux-kselftest, linux-kernel, Shuah Khan
On 07/28/2017 05:44 PM, Grygorii Strashko wrote:
> Add the usr/include subdirectory of the top-level tree to the include
> path to fix build when cross compiling for ARM.
> testptp.c: In function 'main':
> testptp.c:289:15: error: 'struct ptp_clock_caps' has no member named 'cross_timestamping'
> caps.cross_timestamping);
>
> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
> ---
> tools/testing/selftests/ptp/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/testing/selftests/ptp/Makefile b/tools/testing/selftests/ptp/Makefile
> index 83dd42b..d4064c7 100644
> --- a/tools/testing/selftests/ptp/Makefile
> +++ b/tools/testing/selftests/ptp/Makefile
> @@ -1,3 +1,4 @@
> +CFLAGS += -I../../../../usr/include/
> TEST_PROGS := testptp
> LDLIBS += -lrt
> all: $(TEST_PROGS)
>
Thanks for the patch. Applied to linux-kselftest next for 4.14-rc1
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-02 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-28 23:44 [PATCH] selftests: ptp: include default header install path Grygorii Strashko
2017-08-02 21:32 ` Shuah Khan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.