1ca1e70ca901e1aeb836e074cb5da496dd599f4e
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / board / beaglebone / patches / linux / linux-0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch
1 From 29885f2f3d700341d322274db6ad085e601c0994 Mon Sep 17 00:00:00 2001
2 From: Pantelis Antoniou <panto@antoniou-consulting.com>
3 Date: Fri, 4 Jan 2013 00:32:33 +0200
4 Subject: [PATCH 3/3] arm: Export cache flush management symbols when
5  !MULTI_CACHE
6
7 When compiling a kernel without CONFIG_MULTI_CACHE enabled the
8 dma access functions end up not being exported. Fix it.
9
10 Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
11 ---
12  arch/arm/kernel/setup.c |    9 +++++++++
13  1 file changed, 9 insertions(+)
14
15 diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
16 index da1d1aa..dcb678c 100644
17 --- a/arch/arm/kernel/setup.c
18 +++ b/arch/arm/kernel/setup.c
19 @@ -923,3 +923,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
32 -- 
33 1.7.10.4
34