public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/mkcompile_h: Remove trailing spaces from compiler version
@ 2017-06-12  8:23 Jonathan Liu
  2017-06-19 13:50 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Liu @ 2017-06-12  8:23 UTC (permalink / raw)
  To: Masahiro Yamada, Michal Marek; +Cc: linux-kbuild, linux-kernel, Jonathan Liu

Improves the output of "cat /proc/version" by getting rid of the
trailing space at the end of the compiler version when the kernel
is compiled using GCC.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 scripts/mkcompile_h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h
index 6fdc97ef6023..fd8fdb91581d 100755
--- a/scripts/mkcompile_h
+++ b/scripts/mkcompile_h
@@ -76,7 +76,7 @@ UTS_TRUNCATE="cut -b -$UTS_LEN"
   echo \#define LINUX_COMPILE_BY \"`echo $LINUX_COMPILE_BY | $UTS_TRUNCATE`\"
   echo \#define LINUX_COMPILE_HOST \"`echo $LINUX_COMPILE_HOST | $UTS_TRUNCATE`\"
 
-  echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | grep ' version '`\"
+  echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | grep ' version ' | sed 's/[[:space:]]*$//'`\"
 ) > .tmpcompile
 
 # Only replace the real compile.h if the new one is different,
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] scripts/mkcompile_h: Remove trailing spaces from compiler version
  2017-06-12  8:23 [PATCH] scripts/mkcompile_h: Remove trailing spaces from compiler version Jonathan Liu
@ 2017-06-19 13:50 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2017-06-19 13:50 UTC (permalink / raw)
  To: Jonathan Liu
  Cc: Michal Marek, Linux Kbuild mailing list,
	Linux Kernel Mailing List

2017-06-12 17:23 GMT+09:00 Jonathan Liu <net147@gmail.com>:
> Improves the output of "cat /proc/version" by getting rid of the
> trailing space at the end of the compiler version when the kernel
> is compiled using GCC.
>
> Signed-off-by: Jonathan Liu <net147@gmail.com>
> ---

Applied to linux-kbuild/misc.  Thanks!

-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-19 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12  8:23 [PATCH] scripts/mkcompile_h: Remove trailing spaces from compiler version Jonathan Liu
2017-06-19 13:50 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox