linux-0001-arm-Export-cache-flush-management-symbols-when-MULTI.patch 1006 B

12345678910111213141516171819202122232425262728293031323334
  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. When compiling a kernel without CONFIG_MULTI_CACHE enabled the
  7. dma access functions end up not being exported. Fix it.
  8. Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
  9. ---
  10. arch/arm/kernel/setup.c | 9 +++++++++
  11. 1 file changed, 9 insertions(+)
  12. diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
  13. index da1d1aa..dcb678c 100644
  14. --- a/arch/arm/kernel/setup.c
  15. +++ b/arch/arm/kernel/setup.c
  16. @@ -923,3 +923,12 @@ const struct seq_operations cpuinfo_op = {
  17. .stop = c_stop,
  18. .show = c_show
  19. };
  20. +
  21. +/* export the cache management functions */
  22. +#ifndef MULTI_CACHE
  23. +
  24. +EXPORT_SYMBOL(__glue(_CACHE,_dma_map_area));
  25. +EXPORT_SYMBOL(__glue(_CACHE,_dma_unmap_area));
  26. +EXPORT_SYMBOL(__glue(_CACHE,_dma_flush_range));
  27. +
  28. +#endif
  29. --
  30. 1.7.10.4