From: Vipul Pandya Date: Tue, 31 Jul 2012 09:06:19 +0000 (+0530) Subject: compat: Fix cxgb3/cxgb4 missing symbol error on load X-Git-Tag: vofed-3.5-x~6 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f1099006878b578b902279b4404b63b8903d6e27;p=~emulex%2Fcompat.git compat: Fix cxgb3/cxgb4 missing symbol error on load Commit id 182630e0f686a569aaf9b34781b08f27dc0ab1bb was causing missing symbol error on load time for cxgb3/cxgb4 module. This commit adds additional check to avoid the issue. Signed-off-by: Vipul Pandya --- diff --git a/include/linux/compat-2.6.33.h b/include/linux/compat-2.6.33.h index ea4e37b..d0d4db1 100644 --- a/include/linux/compat-2.6.33.h +++ b/include/linux/compat-2.6.33.h @@ -16,11 +16,13 @@ #include #include +#if defined(CONFIG_COMPAT_FIRMWARE_CLASS) #if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE) #define release_firmware compat_release_firmware #define request_firmware compat_request_firmware #define request_firmware_nowait compat_request_firmware_nowait #endif +#endif #if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE) int compat_request_firmware(const struct firmware **fw, const char *name,