[PATCH] alias: Mark printalias as noinline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The function printalias is not any critical path and inlining it
makes no sense.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux