Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1256949 > unrolled thread

[PATCH 0/8] drivers/tty/: Deinline functions when it saves at least 300 bytes per function

Started byDenys Vlasenko <dvlasenk@redhat.com>
First post2015-10-27 17:50 +0100
Last post2015-10-27 18:10 +0100
Articles 4 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/8] drivers/tty/: Deinline functions when it saves at least 300 bytes per function Denys Vlasenko <dvlasenk@redhat.com> - 2015-10-27 17:50 +0100
    [PATCH 2/8] cyclades: Deinline cyy_writeb, save 880 bytes Denys Vlasenko <dvlasenk@redhat.com> - 2015-10-27 17:50 +0100
    [PATCH 8/8] tty/tty_ldisc: Deinline tty_ldisc_put, save 368 bytes Denys Vlasenko <dvlasenk@redhat.com> - 2015-10-27 17:50 +0100
    Re: [PATCH 0/8] drivers/tty/: Deinline functions when it saves at  least 300 bytes per function Peter Hurley <peter@hurleysoftware.com> - 2015-10-27 18:10 +0100

#1256949 — [PATCH 0/8] drivers/tty/: Deinline functions when it saves at least 300 bytes per function

FromDenys Vlasenko <dvlasenk@redhat.com>
Date2015-10-27 17:50 +0100
Subject[PATCH 0/8] drivers/tty/: Deinline functions when it saves at least 300 bytes per function
Message-ID<qofBE-7xc-7@gated-at.bofh.it>
Denys Vlasenko (8):
  tty/cyclades.c: Deinline cyy_readb, save 368 bytes
  tty/cyclades.c: Deinline cyy_writeb, save 880 bytes
  tty/cyclades.c: Deinline serial_paranoia_check, save 304 bytes
  tty/isicom.c: Deinline WaitTillCardIsFree, save 1120 bytes
  tty/serial/bcm63xx_uart.c: Deinline wait_for_xmitr, save 374 bytes
  tty/serial/jsm/jsm_neo.c: Deinline neo_parse_isr, save 688 bytes
  tty/serial/serial_core.c: Deinline uart_update_mctrl, save 304 bytes
  tty/tty_ldisc.c: Deinline tty_ldisc_put, save 368 bytes

 drivers/tty/cyclades.c            | 6 +++---
 drivers/tty/isicom.c              | 2 +-
 drivers/tty/serial/bcm63xx_uart.c | 2 +-
 drivers/tty/serial/jsm/jsm_neo.c  | 2 +-
 drivers/tty/serial/serial_core.c  | 2 +-
 drivers/tty/tty_ldisc.c           | 2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1256950 — [PATCH 2/8] cyclades: Deinline cyy_writeb, save 880 bytes

FromDenys Vlasenko <dvlasenk@redhat.com>
Date2015-10-27 17:50 +0100
Subject[PATCH 2/8] cyclades: Deinline cyy_writeb, save 880 bytes
Message-ID<qofBG-7xc-63@gated-at.bofh.it>
In reply to#1256949
This function compiles to 35 bytes of machine code.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Peter Hurley <peter@hurleysoftware.com>
CC: Jiri Slaby <jslaby@suse.com>
CC: linux-serial@vger.kernel.org
---
 drivers/tty/cyclades.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c
index cf81fbc..7f9f635 100644
--- a/drivers/tty/cyclades.c
+++ b/drivers/tty/cyclades.c
@@ -292,7 +292,7 @@ static void cyz_rx_restart(unsigned long);
 static struct timer_list cyz_rx_full_timer[NR_PORTS];
 #endif				/* CONFIG_CYZ_INTR */
 
-static inline void cyy_writeb(struct cyclades_port *port, u32 reg, u8 val)
+static void cyy_writeb(struct cyclades_port *port, u32 reg, u8 val)
 {
 	struct cyclades_card *card = port->card;
 
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1256951 — [PATCH 8/8] tty/tty_ldisc: Deinline tty_ldisc_put, save 368 bytes

FromDenys Vlasenko <dvlasenk@redhat.com>
Date2015-10-27 17:50 +0100
Subject[PATCH 8/8] tty/tty_ldisc: Deinline tty_ldisc_put, save 368 bytes
Message-ID<qofBG-7xc-59@gated-at.bofh.it>
In reply to#1256949
This function compiles to 72 bytes of machine code.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Peter Hurley <peter@hurleysoftware.com>
CC: Jiri Slaby <jslaby@suse.com>
CC: linux-serial@vger.kernel.org
---
 drivers/tty/tty_ldisc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c
index 71750cb..14c4ad8 100644
--- a/drivers/tty/tty_ldisc.c
+++ b/drivers/tty/tty_ldisc.c
@@ -185,7 +185,7 @@ static struct tty_ldisc *tty_ldisc_get(struct tty_struct *tty, int disc)
  *
  *	Complement of tty_ldisc_get().
  */
-static inline void tty_ldisc_put(struct tty_ldisc *ld)
+static void tty_ldisc_put(struct tty_ldisc *ld)
 {
 	if (WARN_ON_ONCE(!ld))
 		return;
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1256983 — Re: [PATCH 0/8] drivers/tty/: Deinline functions when it saves at least 300 bytes per function

FromPeter Hurley <peter@hurleysoftware.com>
Date2015-10-27 18:10 +0100
SubjectRe: [PATCH 0/8] drivers/tty/: Deinline functions when it saves at least 300 bytes per function
Message-ID<qofV2-7TL-77@gated-at.bofh.it>
In reply to#1256949
On 10/27/2015 12:39 PM, Denys Vlasenko wrote:
> Denys Vlasenko (8):
>   tty/cyclades.c: Deinline cyy_readb, save 368 bytes
>   tty/cyclades.c: Deinline cyy_writeb, save 880 bytes
>   tty/cyclades.c: Deinline serial_paranoia_check, save 304 bytes
>   tty/isicom.c: Deinline WaitTillCardIsFree, save 1120 bytes
>   tty/serial/bcm63xx_uart.c: Deinline wait_for_xmitr, save 374 bytes
>   tty/serial/jsm/jsm_neo.c: Deinline neo_parse_isr, save 688 bytes
>   tty/serial/serial_core.c: Deinline uart_update_mctrl, save 304 bytes
>   tty/tty_ldisc.c: Deinline tty_ldisc_put, save 368 bytes
> 
>  drivers/tty/cyclades.c            | 6 +++---
>  drivers/tty/isicom.c              | 2 +-
>  drivers/tty/serial/bcm63xx_uart.c | 2 +-
>  drivers/tty/serial/jsm/jsm_neo.c  | 2 +-
>  drivers/tty/serial/serial_core.c  | 2 +-
>  drivers/tty/tty_ldisc.c           | 2 +-
>  6 files changed, 8 insertions(+), 8 deletions(-)

For series,

Reviewed-by: Peter Hurley <peter@hurleysoftware.com>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web