summaryrefslogtreecommitdiffstats
path: root/meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch')
-rw-r--r--meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch b/meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch
new file mode 100644
index 0000000..c61a4dc
--- /dev/null
+++ b/meta-smx6-extras/recipes/linux/linux-smx6/0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch
@@ -0,0 +1,31 @@
1From 56e321cd19ee4909ca623ce1c351c966904123a9 Mon Sep 17 00:00:00 2001
2From: Pantelis Antoniou <panto@antoniou-consulting.com>
3Date: Fri, 4 Jan 2013 00:32:33 +0200
4Subject: [PATCH] arm: Export cache flush management symbols when !MULTI_CACHE
5
6When compiling a kernel without CONFIG_MULTI_CACHE enabled the
7dma access functions end up not being exported. Fix it.
8
9Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
10Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
11---
12 arch/arm/kernel/setup.c | 9 +++++++++
13 1 file changed, 9 insertions(+)
14
15diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
16index 1e8b030..c6a9a61 100644
17--- a/arch/arm/kernel/setup.c
18+++ b/arch/arm/kernel/setup.c
19@@ -1080,3 +1080,12 @@ const struct seq_operations cpuinfo_op = {
20 .stop = c_stop,
21 .show = c_show
22 };
23+
24+/* export the cache management functions */
25+#ifndef MULTI_CACHE
26+
27+EXPORT_SYMBOL(__glue(_CACHE,_dma_map_area));
28+EXPORT_SYMBOL(__glue(_CACHE,_dma_unmap_area));
29+EXPORT_SYMBOL(__glue(_CACHE,_dma_flush_range));
30+
31+#endif