Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1868746imu; Wed, 21 Nov 2018 03:17:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/FoxK+Xh/TeS23hE6Ub9oriCcAXcH+l6xOnho6EzPwRWA9/ylrhJ7Fuk+PDnTPaHnynb1 X-Received: by 2002:a65:47ca:: with SMTP id f10mr5718760pgs.166.1542799027050; Wed, 21 Nov 2018 03:17:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542799027; cv=none; d=google.com; s=arc-20160816; b=AmLe86DqSD2ewfELSGlIghKgiTx+PMKsjM42r3BNT/6mclWeZJO4bJCe7sjxul+pIh CFEh1ejqyJH/Py73ZnmB4/Ildwh5jsIcXRKP7MPIiXNfKAJGsWGI4diH6ToemA+NRagA 4BIci2lbSAcwrk77uLWd3xsv1IgW6MX75jMQvvrxk29gkijCTdZ8m8BibHZg+ubsPwom lX1hmd/vaDSAYj5V6Ni+E5utmnfpY+LCBKiH+9nM7qT4PB5FJbZkRMYg3gg7CvTlPDeN 9WI7+VC/kIRG3e17ugclJ3zKFU858/+Id2yOKodM7OT+FODzmH453FIKcBm5XR4v4VOQ 73qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=hdZf1VE382pYo3IvUdgDs25LetDkW2NEeNw5O3jQkX4=; b=CCPrH0xOHinJZjYwE77HcekN2vQixWNNxVWBdUPzcEI9u6NkM3yDBStRMPn+TQOC9a n/3YTRbO2vbYl/yZXwsKUJA9MioZegcOWiA8lkThZMfUzI44RY55QV5o+e4inwf/rcq3 W+JjktWcbjmE9Hct21jW5C8K7/qEif4j6bcoinMoL81rgy0TerKthfayY/Hnor7Cyjk5 UQv0NGu9v/IdCqJBKNrtTIEUFbtwnBTkkmeYAI9pwwP/lJdsiHc6LRa39Dsr/sh3J2wd xu3/yb3FX2/t+oICTT5RwckPDUsqXP/xB3ANAqQwR80c4UX1yFZBXJs+9TYno6zlj+kT i4Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=JfYJOEHj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e69si33069054pfg.137.2018.11.21.03.16.48; Wed, 21 Nov 2018 03:17:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=JfYJOEHj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728849AbeKUU2n (ORCPT + 99 others); Wed, 21 Nov 2018 15:28:43 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:33535 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbeKUU2m (ORCPT ); Wed, 21 Nov 2018 15:28:42 -0500 Received: by mail-it1-f193.google.com with SMTP id p11-v6so12343864itf.0 for ; Wed, 21 Nov 2018 01:54:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owltronix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=hdZf1VE382pYo3IvUdgDs25LetDkW2NEeNw5O3jQkX4=; b=JfYJOEHjnf3dtUpn/Nmgi2ECej5aAkSCbuHPxuKE6UAFNe8SRSS7Mqkck3CsCi+cEj taQqceYq7JU30VA8e8S7ipU9JvUiwF+WoScbtGG2INZI+HYRWU4826At+tdgR9soAJTQ Gn52kzyU+EgDEFyuOPEbACmTYP3+dnwd96lU+OI9h9ugDwUbRHiCa4a1qCjudwcXImLJ b9dPpwtvIBn5B5m7XnJSzvABY/AfcmIjokdbkORYaP/xlioPph0mu9n5F/zTlT6WwaJN 7LK+ND8JxlsLz8frmv0ftsmrF0TYedGG9BVnE5zGhteeq2YCdsMbnnfQ0AchYTN8hMm7 k0iA== 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=gUX3uP3oYPi4+rbCiH6saL4d7EXglEf1N7sP7AU+Jsys+tQKXltgHg/dUhbffAyNuJ IRm9cNcbuc/u704ZpTIF2iISoHOpwPwV1U3MXPa6vDWQ9h19RRq6xcFZxaQluwBrY4BT 5qJ1sIVz14XoOTxXvZUC3p3Ux1/zMrIxzd69lNdIlpdYroqXZujqG6mJ6i27gck7cDsZ u2fa3m6aocKh0rnK9Sq+lzVMpR+cGX5c6QlOGAQCgaGO7J58LFhbkpK6DTjXd1+jx2d1 4nN3CrbWhbVXoxcSM3PJVQgN7cgEQ/05REVXTf3iRVFkpdEzwvqc9tMLIRtlou1Z2WHS R/3g== X-Gm-Message-State: AGRZ1gIRafz/oZYKQ2lqCJScZMG4byRy6I4CfZgdxtRob2LJGeyjAD7l hoQ84iAFXm7qGAGJ/dXcsJxlZw== 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 Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH] drm/i915: avoid rebuilding i915_gpu_error.o on version string updates 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 2.17.1