dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: DASH Mailing List <dash@vger.kernel.org>
Subject: [PATCH] alias: Mark printalias as noinline
Date: Sat, 4 May 2024 13:30:33 +0800	[thread overview]
Message-ID: <ZjXH-bUn4MS-YwnA@gondor.apana.org.au> (raw)

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

                 reply	other threads:[~2024-05-04  5:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZjXH-bUn4MS-YwnA@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=dash@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).