From 06961f8605a0ee1629cc323a3c016bc0db2f7247 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Fri, 2 Dec 2011 19:56:11 +0000 Subject: [PATCH] dahdi: #include in dahdi/kernel.h and GpakCust.h Commit de47725, first released in 3.2-rc1 removed module.h from some kernel headers. Include it explicitly now. Resolves compilation errors like: error: implicit declaration of function 'try_module_get' error: 'THIS_MODULE' undeclared (first use in this function) error: implicit declaration of function 'module_put' Signed-off-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10361 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/voicebus/GpakCust.h | 1 + include/dahdi/kernel.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/dahdi/voicebus/GpakCust.h b/drivers/dahdi/voicebus/GpakCust.h index 3110f42..fecb9e5 100644 --- a/drivers/dahdi/voicebus/GpakCust.h +++ b/drivers/dahdi/voicebus/GpakCust.h @@ -36,6 +36,7 @@ #ifndef _GPAKCUST_H /* prevent multiple inclusion */ #define _GPAKCUST_H +#include #include #include #include diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 1e580fd..461cdc7 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -43,6 +43,7 @@ #endif #include #include +#include #include #ifdef CONFIG_DAHDI_NET