summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_ldsem.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2015-10-27 18:46:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-13 19:59:48 -0800
commitfc0285f210500acad01dd8bd578dcd7f013db064 (patch)
tree7e3d1883d8a1de82abeced9355a38f3128e617ae /drivers/tty/tty_ldsem.c
parenteba3b47b26191385326406903120ca6f88300785 (diff)
downloadop-kernel-dev-fc0285f210500acad01dd8bd578dcd7f013db064.zip
op-kernel-dev-fc0285f210500acad01dd8bd578dcd7f013db064.tar.gz
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>
Diffstat (limited to 'drivers/tty/tty_ldsem.c')
-rw-r--r--drivers/tty/tty_ldsem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_ldsem.c b/drivers/tty/tty_ldsem.c
index ad7eba5..f901089 100644
--- a/drivers/tty/tty_ldsem.c
+++ b/drivers/tty/tty_ldsem.c
@@ -319,7 +319,7 @@ down_write_failed(struct ld_semaphore *sem, long count, long timeout)
-static inline int __ldsem_down_read_nested(struct ld_semaphore *sem,
+static int __ldsem_down_read_nested(struct ld_semaphore *sem,
int subclass, long timeout)
{
long count;
OpenPOWER on IntegriCloud