From patchwork Fri Sep 22 08:14:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 9965437 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E8E5C60381 for ; Fri, 22 Sep 2017 08:14:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9486297F5 for ; Fri, 22 Sep 2017 08:14:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE079297FA; Fri, 22 Sep 2017 08:14:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F495297F5 for ; Fri, 22 Sep 2017 08:14:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751704AbdIVIOR (ORCPT ); Fri, 22 Sep 2017 04:14:17 -0400 Received: from arcturus.kleine-koenig.org ([78.47.169.190]:45482 "EHLO arcturus.kleine-koenig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795AbdIVIOQ (ORCPT ); Fri, 22 Sep 2017 04:14:16 -0400 Received: by arcturus.kleine-koenig.org (Postfix, from userid 1000) id DF8871B8BC9; Fri, 22 Sep 2017 10:14:15 +0200 (CEST) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: linux-sparse@vger.kernel.org Subject: [PATCH] compile-i386: Use SPARSE_VERSION instead of __DATE__ Date: Fri, 22 Sep 2017 10:14:10 +0200 Message-Id: <20170922081410.29162-1-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The compile date isn't very informative for a tool, the version is what really matters. Additionally using __DATE__ makes the build unreprodicible. Signed-off-by: Uwe Kleine-König Acked-by: Luc Van Oostenryck --- compile-i386.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compile-i386.c b/compile-i386.c index e4d3f27dd8a9..1cedcbda73d8 100644 --- a/compile-i386.c +++ b/compile-i386.c @@ -57,6 +57,7 @@ #include "target.h" #include "compile.h" #include "bitmap.h" +#include "version.h" struct textbuf { unsigned int len; /* does NOT include terminating null */ @@ -691,7 +692,7 @@ void emit_unit_begin(const char *basename) void emit_unit_end(void) { textbuf_emit(&unit_post_text); - printf("\t.ident\t\"sparse silly x86 backend (built %s)\"\n", __DATE__); + printf("\t.ident\t\"sparse silly x86 backend (version %s)\"\n", SPARSE_VERSION); } /* conditionally switch sections */