* [PATCH] alias: Mark printalias as noinline
@ 2024-05-04 5:30 Herbert Xu
0 siblings, 0 replies; only message in thread
From: Herbert Xu @ 2024-05-04 5:30 UTC (permalink / raw
To: DASH Mailing List
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(-)
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));
}
--
2.39.2
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-04 5:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-04 5:30 [PATCH] alias: Mark printalias as noinline Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).