[PATCH] selftests/powerpc: Fix build break caused by EXPORT_SYMBOL changes

Subsystems: kernel selftest framework, the rest

STALE3615d

2 messages, 2 authors, 2016-10-19 · open the first message on its own page

[PATCH] selftests/powerpc: Fix build break caused by EXPORT_SYMBOL changes

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-10-05 05:23:04

The changes to make EXPORT_SYMBOL work in asm, specifically commit
9445aa1a3062 ("ppc: move exports to definitions"), in the kbuild tree,
breaks some of our selftests.

That is because we symlink the kernel code into the selftest, and shim
the required headers, and we are now missing asm/export.h

So create a minimal export.h to keep the tests building once powerpc and
the kbuild trees are merged.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 tools/testing/selftests/powerpc/copyloops/asm/export.h   | 1 +
 tools/testing/selftests/powerpc/stringloops/asm/export.h | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 tools/testing/selftests/powerpc/copyloops/asm/export.h
 create mode 100644 tools/testing/selftests/powerpc/stringloops/asm/export.h
diff --git a/tools/testing/selftests/powerpc/copyloops/asm/export.h b/tools/testing/selftests/powerpc/copyloops/asm/export.h
new file mode 100644
index 000000000000..2d14a9b4248c
--- /dev/null
+++ b/tools/testing/selftests/powerpc/copyloops/asm/export.h
@@ -0,0 +1 @@
+#define EXPORT_SYMBOL(x)
diff --git a/tools/testing/selftests/powerpc/stringloops/asm/export.h b/tools/testing/selftests/powerpc/stringloops/asm/export.h
new file mode 100644
index 000000000000..2d14a9b4248c
--- /dev/null
+++ b/tools/testing/selftests/powerpc/stringloops/asm/export.h
@@ -0,0 +1 @@
+#define EXPORT_SYMBOL(x)
-- 
2.7.4

Re: selftests/powerpc: Fix build break caused by EXPORT_SYMBOL changes

From: Michael Ellerman <hidden>
Date: 2016-10-19 02:17:36

On Wed, 2016-05-10 at 05:22:57 UTC, Michael Ellerman wrote:
The changes to make EXPORT_SYMBOL work in asm, specifically commit
9445aa1a3062 ("ppc: move exports to definitions"), in the kbuild tree,
breaks some of our selftests.

That is because we symlink the kernel code into the selftest, and shim
the required headers, and we are now missing asm/export.h

So create a minimal export.h to keep the tests building once powerpc and
the kbuild trees are merged.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Applied to powerpc next.

https://git.kernel.org/powerpc/c/8321564a11bbeadffcc7d6335bcf3c

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help