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

tty: Deinline __ldsem_down_write_nested, save 128 bytes

This function compiles to 491 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
5ef6504e fc0285f2

+1 -1
+1 -1
drivers/tty/tty_ldsem.c
··· 338 338 return 1; 339 339 } 340 340 341 - static inline int __ldsem_down_write_nested(struct ld_semaphore *sem, 341 + static int __ldsem_down_write_nested(struct ld_semaphore *sem, 342 342 int subclass, long timeout) 343 343 { 344 344 long count;