From c35278e217fb45e1001845c33ffd1c947599b40c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 11 May 2017 11:56:11 -0400 Subject: [PATCH] build: Avoid using noinline in common code It's not necessary to use noinline for parsef() and stop_steppers(). Signed-off-by: Kevin O'Connor --- src/command.c | 2 +- src/endstop.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.c b/src/command.c index 6ddd7eb7..915bbd42 100644 --- a/src/command.c +++ b/src/command.c @@ -67,7 +67,7 @@ parse_int(char **pp) } // Parse an incoming command into 'args' -static noinline char * +static char * parsef(char *p, char *maxend, const struct command_parser *cp, uint32_t *args) { if (sched_is_shutdown() && !(READP(cp->flags) & HF_IN_SHUTDOWN)) { diff --git a/src/endstop.c b/src/endstop.c index 91a278cc..7a1fb1d9 100644 --- a/src/endstop.c +++ b/src/endstop.c @@ -21,7 +21,7 @@ struct end_stop { enum { ESF_PIN_HIGH=1<<0, ESF_HOMING=1<<1, ESF_REPORT=1<<2 }; -static void noinline +static void stop_steppers(struct end_stop *e) { e->flags = ESF_REPORT;