Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: Deinline __ldsem_down_read_nested, save 128 bytes

This function compiles to 479 bytes of machine code.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Jiri Slaby <jslaby@suse.com>
CC: linux-serial@vger.kernel.org
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Denys Vlasenko and committed by
Greg Kroah-Hartman
fc0285f2 eba3b47b

+1 -1
+1 -1
drivers/tty/tty_ldsem.c
··· 319 319 320 320 321 321 322 - static inline int __ldsem_down_read_nested(struct ld_semaphore *sem, 322 + static int __ldsem_down_read_nested(struct ld_semaphore *sem, 323 323 int subclass, long timeout) 324 324 { 325 325 long count;