diff options
author | Shaun Ruffell <sruffell@digium.com> | 2012-03-29 15:25:23 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2012-03-29 15:25:23 +0000 |
commit | ebe4520a98b9c2dea5ee60e9316c5934daf16a36 (patch) | |
tree | 9ebe4939d455d8a35c50178d3fe414a60b9fb4df /drivers/dahdi/wctdm24xxp | |
parent | b412e9ebcd1811a7f85023430892b95ada140e62 (diff) |
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@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10613 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/base.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 1d883bd..e1d6799 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -1073,9 +1073,22 @@ wctdm_isr_getreg(struct wctdm *wc, struct wctdm_module *const mod, u8 address) 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) { @@ -1220,22 +1233,6 @@ static inline void wctdm_transmitprep(struct wctdm *wc, unsigned char *sframe) 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) { struct wctdm_cmd *cmd; |