1 From 17e04c68557c4c9cb1a0112717019329a0cc3f96 Mon Sep 17 00:00:00 2001
2 From: Otavio Salvador <otavio@ossystems.com.br>
3 Date: Tue, 6 Jan 2015 13:39:50 -0200
4 Subject: [PATCH] mcc_config.h: Only include mvf_sema4.h if building in kernel
5 Organization: O.S. Systems Software LTDA.
7 When mcc_config.h is used to make application we shouldn't include
8 mvf_sema4.h as it is an internal symbol of kernel and shouldn't be
9 directly referenced by user space applications using the MCC
12 This patch puts a guard using __KERNEL__ define, avoiding the include
13 and the definition of MCC_SHMEM_SEMAPHORE_NUMBER as
14 MVF_SHMEM_SEMAPHORE_NUMBER would be undefined.
16 Upstream-Status: Pending
18 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
20 mcc_config.h | 8 +++++---
21 1 file changed, 5 insertions(+), 3 deletions(-)
23 diff --git a/mcc_config.h b/mcc_config.h
24 index 6a12c6d..3887aad 100644
28 #ifndef __MCC_CONFIG__
29 #define __MCC_CONFIG__
32 #include <linux/mvf_sema4.h>
34 +/* semaphore number */
35 +#define MCC_SHMEM_SEMAPHORE_NUMBER (MVF_SHMEM_SEMAPHORE_NUMBER)
39 #define MCC_OS_USED (MCC_LINUX)
42 /* other cores, besides this participating in mcc */
43 #define MCC_OTHER_CORES {1}
45 -/* semaphore number */
46 -#define MCC_SHMEM_SEMAPHORE_NUMBER (MVF_SHMEM_SEMAPHORE_NUMBER)
48 #endif /* __MCC_CONFIG__ */