summaryrefslogtreecommitdiff
path: root/include/asm-generic/export.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/export.h')
-rw-r--r--include/asm-generic/export.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/export.h b/include/asm-generic/export.h
index 365345f9a9e3..07a36a874dca 100644
--- a/include/asm-generic/export.h
+++ b/include/asm-generic/export.h
@@ -33,7 +33,7 @@
*/
.macro ___EXPORT_SYMBOL name,val,sec
-#ifdef CONFIG_MODULES
+#if defined(CONFIG_MODULES) && !defined(__DISABLE_EXPORTS)
.section ___ksymtab\sec+\name,"a"
.balign KSYM_ALIGN
__ksymtab_\name: