From f1099006878b578b902279b4404b63b8903d6e27 Mon Sep 17 00:00:00 2001 From: Vipul Pandya Date: Tue, 31 Jul 2012 14:36:19 +0530 Subject: [PATCH] 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 --- include/linux/compat-2.6.33.h | 2 ++ 1 file changed, 2 insertions(+) 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, -- 2.41.0