]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix inlining related build failures in mxser.c
authorJesper Juhl <juhl-lkml@dif.dk>
Thu, 23 Dec 2004 09:31:36 +0000 (01:31 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Dec 2004 09:31:36 +0000 (01:31 -0800)
This fixes a build failure with gcc-3.4.1, where we use some functions
before we define them inline.

The simple way to fix those is to simply un-inline the functions in
question. Since they are somewhat large that's what I did.

An alternative would be to rework the ordering of the file so the
functions are defined before their first use.

Signed-off-by: Jesper juhl <juhl-lkml@dif.dk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/mxser.c

index b9bb92a9304505afb226e3ba62991f5704a2b1fd..e46b66d9ef5029d409c9967ca810c83e407b0dbc 100644 (file)
@@ -410,9 +410,9 @@ static void mxser_start(struct tty_struct *);
 static void mxser_hangup(struct tty_struct *);
 static void mxser_rs_break(struct tty_struct *, int);
 static irqreturn_t mxser_interrupt(int, void *, struct pt_regs *);
-static inline void mxser_receive_chars(struct mxser_struct *, int *);
-static inline void mxser_transmit_chars(struct mxser_struct *);
-static inline void mxser_check_modem_status(struct mxser_struct *, int);
+static void mxser_receive_chars(struct mxser_struct *, int *);
+static void mxser_transmit_chars(struct mxser_struct *);
+static void mxser_check_modem_status(struct mxser_struct *, int);
 static int mxser_block_til_ready(struct tty_struct *, struct file *, struct mxser_struct *);
 static int mxser_startup(struct mxser_struct *);
 static void mxser_shutdown(struct mxser_struct *);
@@ -1989,7 +1989,7 @@ static irqreturn_t mxser_interrupt(int irq, void *dev_id, struct pt_regs *regs)
        return handled;
 }
 
-static inline void mxser_receive_chars(struct mxser_struct *info, int *status)
+static void mxser_receive_chars(struct mxser_struct *info, int *status)
 {
        struct tty_struct *tty = info->tty;
        unsigned char ch, gdl;
@@ -2143,7 +2143,7 @@ intr_old:
 
 }
 
-static inline void mxser_transmit_chars(struct mxser_struct *info)
+static void mxser_transmit_chars(struct mxser_struct *info)
 {
        int count, cnt;
        unsigned long flags;
@@ -2206,7 +2206,7 @@ static inline void mxser_transmit_chars(struct mxser_struct *info)
        spin_unlock_irqrestore(&info->slock, flags);
 }
 
-static inline void mxser_check_modem_status(struct mxser_struct *info, int status)
+static void mxser_check_modem_status(struct mxser_struct *info, int status)
 {
        /* update input line counters */
        if (status & UART_MSR_TERI)