From 3ba30c294c415612b359a8b630dac29d12460aa9 Mon Sep 17 00:00:00 2001 From: andy928 Date: Fri, 18 Jan 2013 06:11:54 -0800 Subject: [PATCH] exported functions fix --- drivers/ata/libata-core.c | 2 +- include/linux/syno_user.h | 5 +++++ kernel/sysctl.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 630eb7e3..6adb31cd 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -7368,7 +7368,7 @@ int (*funcSYNOSendDiskPortDisEvent)(unsigned int, unsigned int) = NULL; EXPORT_SYMBOL(funcSYNOSendDiskPortDisEvent); #endif /* MY_ABC_HERE */ -#ifdef (defined(MY_DEF_HERE) || defined(XPENOLOGY)) +#if (defined(MY_DEF_HERE) || defined(XPENOLOGY)) int (*funcSYNOSendEboxRefreshEvent)(int portIndex) = NULL; EXPORT_SYMBOL(funcSYNOSendEboxRefreshEvent); #endif diff --git a/include/linux/syno_user.h b/include/linux/syno_user.h index 9eacb73f..1b81944f 100644 --- a/include/linux/syno_user.h +++ b/include/linux/syno_user.h @@ -3,6 +3,11 @@ #ifndef __SYNO_USER_H_ #define __SYNO_USER_H_ +/** + * XPEnology project + */ +#define XPENOLOGY + /** * Dsc: Synology multimedia server feature. For indexing video, photo, * music. diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c395bae3..4986db0f 100755 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -222,7 +222,7 @@ EXPORT_SYMBOL(g_esata_7042); int (*funcSYNOGetHwCapability)(CAPABILITY *) = NULL; EXPORT_SYMBOL(funcSYNOGetHwCapability); -#ifdef (defined(MY_DEF_HERE) || defined(XPENOLOGY)) +#if (defined(MY_DEF_HERE) || defined(XPENOLOGY)) EUNIT_PWRON_TYPE (*funcSynoEunitPowerctlType)(void) = NULL; EXPORT_SYMBOL(funcSynoEunitPowerctlType); #endif