Skip to content

Commit 4e0c15c

Browse files
shamispkawashima-fj
authored andcommitted
CMA: Fixing logic for CMA system call detection
The OPAL_CMA_NEED_SYSCALL_DEFS is always defined/set to 0 or 1. Therefore instead of checking if the macro is defined, we have to look at the value itself. Signed-off-by: Pavel Shamis (Pasha) <[email protected]> (cherry picked from commit d984b4b) Signed-off-by: KAWASHIMA Takahiro <[email protected]>
1 parent fdb3652 commit 4e0c15c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opal/mca/btl/sm/btl_sm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
2020
* Copyright (c) 2014-2015 Research Organization for Information Science
2121
* and Technology (RIST). All rights reserved.
22+
* Copyright (c) 2016 ARM, Inc. All rights reserved.
2223
* $COPYRIGHT$
2324
*
2425
* Additional copyrights may follow
@@ -41,7 +42,7 @@
4142
#include <sys/mman.h>
4243
#endif /* HAVE_SYS_MMAN_H */
4344

44-
#if OPAL_BTL_SM_HAVE_CMA && defined(OPAL_CMA_NEED_SYSCALL_DEFS)
45+
#if OPAL_BTL_SM_HAVE_CMA && OPAL_CMA_NEED_SYSCALL_DEFS
4546
#include "opal/sys/cma.h"
4647
#endif /* OPAL_CMA_NEED_SYSCALL_DEFS */
4748

0 commit comments

Comments
 (0)