[PATCH v2 09/16] backport: do not call coredump when it was not build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When coredump was included in the kernel backports is build against
then it could be that the prototype are used, which caused a undefined
references linking problem. This patch fixes the problem by only using
this when the driver is actually compiled in.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 backport/compat/backports.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/compat/backports.h b/backport/compat/backports.h
index 323c908..ccc8972 100644
--- a/backport/compat/backports.h
+++ b/backport/compat/backports.h
@@ -13,7 +13,7 @@ static inline void crypto_ccm_module_exit(void)
 {}
 #endif
 
-#ifdef CPTCFG_BPAUTO_WANT_DEV_COREDUMP
+#ifdef CPTCFG_BPAUTO_BUILD_WANT_DEV_COREDUMP
 int devcoredump_init(void);
 void devcoredump_exit(void);
 #else
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux