[dahdi-commits] sruffell: branch linux/2.6 r10614 - /linux/branches/2.6/drivers/dahdi/wctdm24...
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Thu Mar 29 10:28:47 CDT 2012
Author: sruffell
Date: Thu Mar 29 10:28:43 2012
New Revision: 10614
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10614
Log:
wctdm24xxp: Remove forward declaration of inline for GCC 3.4.4
GCC 3.4.4 does not allow forward declaration of inline functions.
Internal-Issue-ID: DAHLIN-286
Reported-by: Guenther Kelleter
Patches: wctdm24xxp-inline.patch uploaded by Guenther Kelleter (License #6372)
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10613
Modified:
linux/branches/2.6/drivers/dahdi/wctdm24xxp/base.c
Modified: linux/branches/2.6/drivers/dahdi/wctdm24xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.6/drivers/dahdi/wctdm24xxp/base.c?view=diff&rev=10614&r1=10613&r2=10614
==============================================================================
--- linux/branches/2.6/drivers/dahdi/wctdm24xxp/base.c (original)
+++ linux/branches/2.6/drivers/dahdi/wctdm24xxp/base.c Thu Mar 29 10:28:43 2012
@@ -1073,9 +1073,22 @@
list_add(&cmd->node, &mod->pending_cmds);
}
+/* Must be called with wc.reglock held and local interrupts disabled */
static inline void
-wctdm_setreg_intr(struct wctdm *wc, struct wctdm_module *mod,
- int addr, int val);
+wctdm_setreg_intr(struct wctdm *wc, struct wctdm_module *mod, int addr, int val)
+{
+ struct wctdm_cmd *cmd;
+
+ cmd = kmalloc(sizeof(*cmd), GFP_ATOMIC);
+ if (unlikely(!cmd))
+ return;
+
+ cmd->complete = NULL;
+ cmd->cmd = CMD_WR(addr, val);
+
+ list_add_tail(&cmd->node, &mod->pending_cmds);
+}
+
static void cmd_checkisr(struct wctdm *wc, struct wctdm_module *const mod)
{
@@ -1218,22 +1231,6 @@
eframe += (EFRAME_SIZE + EFRAME_GAP);
}
spin_unlock(&wc->reglock);
-}
-
-/* Must be called with wc.reglock held and local interrupts disabled */
-static inline void
-wctdm_setreg_intr(struct wctdm *wc, struct wctdm_module *mod, int addr, int val)
-{
- struct wctdm_cmd *cmd;
-
- cmd = kmalloc(sizeof(*cmd), GFP_ATOMIC);
- if (unlikely(!cmd))
- return;
-
- cmd->complete = NULL;
- cmd->cmd = CMD_WR(addr, val);
-
- list_add_tail(&cmd->node, &mod->pending_cmds);
}
int wctdm_setreg(struct wctdm *wc, struct wctdm_module *mod, int addr, int val)
More information about the dahdi-commits
mailing list