Message ID | ZjXH-bUn4MS-YwnA@gondor.apana.org.au (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Herbert Xu |
Headers | show |
Series | alias: Mark printalias as noinline | expand |
diff --git a/src/alias.c b/src/alias.c index a443e05..1b9b979 100644 --- a/src/alias.c +++ b/src/alias.c @@ -202,8 +202,7 @@ freealias(struct alias *ap) { return next; } -void -printalias(const struct alias *ap) { +void __attribute__((noinline)) printalias(const struct alias *ap) { out1fmt(snlfmt, single_quote(ap->name)); }
The function printalias is not any critical path and inlining it makes no sense. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> --- src/alias.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)