[PATCH] alias: Mark printalias as noinline

Herbert Xu <[email protected]>
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
The function printalias is not any critical path and inlining it
makes no sense.

Signed-off-by: Herbert Xu <[email protected]>
---
 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 <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.