aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-05-11 11:56:11 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-05-15 14:02:59 -0400
commitc35278e217fb45e1001845c33ffd1c947599b40c (patch)
tree85e1f2e1030a3bf1ce41fa2aa238e513482f8b45 /src
parent039d3f05239e48f0ddfae5fb14cde00d817b9ed2 (diff)
downloadkutter-c35278e217fb45e1001845c33ffd1c947599b40c.tar.gz
kutter-c35278e217fb45e1001845c33ffd1c947599b40c.tar.xz
kutter-c35278e217fb45e1001845c33ffd1c947599b40c.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/command.c2
-rw-r--r--src/endstop.c2
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;