summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2012-03-16 17:07:51 +0000
committerShaun Ruffell <sruffell@digium.com>2012-03-16 17:07:51 +0000
commitd58aa9f11fec7e6e90f2d42a718744ba078828fc (patch)
tree6cd4003590cd37b1ad95b18dea0c6827334065a0
parent095caff3da38ded06df8f0d128c3bd9b159a4776 (diff)
dahdi: #include <linux/module.h> 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 <sruffell@digium.com> Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10361 Conflicts: include/dahdi/kernel.h git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@10530 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--drivers/dahdi/voicebus/GpakCust.h1
-rw-r--r--include/dahdi/kernel.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.h b/drivers/dahdi/voicebus/GpakCust.h
index 64ef44a..db1dc85 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 <linux/module.h>
#include <linux/device.h>
#include <linux/completion.h>
#include <linux/workqueue.h>
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index dc9cdc2..dc38af7 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -43,6 +43,7 @@
#endif
#include <linux/fs.h>
#include <linux/kobject.h>
+#include <linux/module.h>
#include <linux/ioctl.h>
#ifdef CONFIG_DAHDI_NET