From patchwork Wed Nov 21 09:54:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 10692517 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C673D14DE for ; Wed, 21 Nov 2018 12:28:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5AE42B9B6 for ; Wed, 21 Nov 2018 12:28:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A969E2BAB0; Wed, 21 Nov 2018 12:28:05 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C25F2B9B6 for ; Wed, 21 Nov 2018 12:28:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 14AAD6E5D5; Wed, 21 Nov 2018 12:28:03 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-it1-x141.google.com (mail-it1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by gabe.freedesktop.org (Postfix) with ESMTPS id 11AC56E3A3 for ; Wed, 21 Nov 2018 09:54:56 +0000 (UTC) Received: by mail-it1-x141.google.com with SMTP id g85so7919785ita.3 for ; Wed, 21 Nov 2018 01:54:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hdZf1VE382pYo3IvUdgDs25LetDkW2NEeNw5O3jQkX4=; b=PHO7UI+2zbhtwxCUpmDiuQLQYcB+eVfbOlU4nT/cexom0HCgskX5rOWg4pu2ADWTtN xHztYZzpL6oUpIkMuL5lq0eVr2lH21x7Mf9yDTHRhSHB+rDPTDEuncyLy/JrW3Kgn98z qhT3LU7a+mYxIEgkW4D5V5/8lvI94e+Xy3YzKaspV0Hce90iMqdD6vXrKy444qFmXNnM W8AEYmCFDjjtm9slYuA0mJi/NgYLnoBeBkoQMG+n03a7m4/HAEWUWsk6LxgIg1/QYNch Wotz3s/QevwOpui2PrDiAxKEox8jdCAxg29bGE4DtIiHmXrZ+mxwExd6R3LZc2TN+bL6 alSA== X-Gm-Message-State: AGRZ1gJAXJzJi4HU3CmpM1XBXnd98PrxxRedldskG8MYl54oifS0MIr5 ziNok07+RX3PEhzptmoelM8Q6w== X-Google-Smtp-Source: AFSGD/U3f0W4YxHNeOTPIFVjvFuepZnApik4o+ULuVvQiWA/AImDQAtucejXLQwfdBxBRiJEJb3Gwg== X-Received: by 2002:a05:660c:1d1:: with SMTP id s17mr5361985itk.79.1542794095351; Wed, 21 Nov 2018 01:54:55 -0800 (PST) Received: from ch-lap-hans.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id g16sm5259710ioh.40.2018.11.21.01.54.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 01:54:54 -0800 (PST) From: Hans Holmberg To: David Airlie Date: Wed, 21 Nov 2018 10:54:23 +0100 Message-Id: <20181121095423.20760-1-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.17.1 X-Mailman-Approved-At: Wed, 21 Nov 2018 12:28:01 +0000 Subject: [Intel-gfx] [PATCH] drm/i915: avoid rebuilding i915_gpu_error.o on version string updates X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Rodrigo Vivi , Hans Holmberg MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Hans Holmberg There is no need to rebuild i915_gpu_error.o when the version string changes as the version is available in init_utsname()->release. Signed-off-by: Hans Holmberg --- drivers/gpu/drm/i915/i915_gpu_error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c index 8762d17b6659..958e1484a3dd 100644 --- a/drivers/gpu/drm/i915/i915_gpu_error.c +++ b/drivers/gpu/drm/i915/i915_gpu_error.c @@ -27,7 +27,7 @@ * */ -#include +#include #include #include #include @@ -650,7 +650,7 @@ int i915_error_state_to_str(struct drm_i915_error_state_buf *m, if (*error->error_msg) err_printf(m, "%s\n", error->error_msg); - err_printf(m, "Kernel: " UTS_RELEASE "\n"); + err_printf(m, "Kernel: %s\n", init_utsname()->release); ts = ktime_to_timespec64(error->time); err_printf(m, "Time: %lld s %ld us\n", (s64)ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC);