From nobody Mon May 4 13:07:58 2026 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B490B2E06EA for ; Mon, 4 May 2026 07:34:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777880079; cv=none; b=JwItAHibrmE4NTI4izkZR93jynLcaeI6qUkac67JF2W1gfTDFEXAIcsa1iDsuErdI9I2M8l5wCPzwVTMBCx+3mnjVEmoA9Weyr/zxu46eBKKHt9AdUQ/OWweG8L79NA2PzNy6giEX18i+0heethr5EXzDL+ghGrNFBiKMPiW18E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777880079; c=relaxed/simple; bh=IvpBzrTG8NsRbACgF6uIDFqr/tHY09F62gKICIeQhBU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=XexBjIflO4Ch9JrQHje1XBflA2b6TEDCk94rgcqyBH6bRl3DD1awCo133kYPRDFuoCr2ckRTOFzR0HDR2Kq3y7k1bohEW+x44/0zOAOicceJZ9Hk5uLtq/cyF+7pJXbJYnJGY/yhwNhKhGd5osHGQdiJ+lS1YTsd3bt/Sy6SCjA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b=IaNeyMhN; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="IaNeyMhN" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4891c00e7aeso29876985e9.2 for ; Mon, 04 May 2026 00:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1777880075; x=1778484875; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ikXVRoL7UxdcoQ7zQVqAT6TJS61guAaeU9Wz822bWgs=; b=IaNeyMhNhsOAJHgBqi4/hb7ZStECTNl8zvKwScsPnWfF3IAysaN6vjXRQe0ZlQ0f/J YJKyvc2jjAPH56KIJZ4NL6if91RcxFHLWc+5tbHuc9JyIJxYGdgsbwt1ArlbCrDVd7XF EEf2QvtBmue2InUY+A/1sXSEMgQGlmy43B0b/rZ1cEItXwDIqAZ7U7FA2QzkOQe5/08Z 7ZwutsldfJklgnY+4VjUpB4xe0a4nwEWc/qu14irL/dbRYMfJ8RW+7vPWVchEQ2VQcwS Ar4UJD8IDmgIum5AYarDYamuAuxrUkAM3gmLzj21wtrQ3y3F3sKG1Qdlg7nq+mtvYsz7 9s+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777880075; x=1778484875; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ikXVRoL7UxdcoQ7zQVqAT6TJS61guAaeU9Wz822bWgs=; b=cF8Z535S+AxLryudjTQ4MEaJz+w6SKxT5R5fyfUKgGYp/RXKjYDqyuxpHpCYbqFWhJ gVVpfNlaEoGX8jgsFWh/Vhhg6xhSSZWFZNTt/WeHemUAFYeDmR4jNgUPVwU+nXDQrosA VVWZrBGAq8dAh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a98663189mr156282625e9.18.1777880074832; Mon, 04 May 2026 00:34:34 -0700 (PDT) Received: from localhost (p200300f65f114e08f5a4175dadf07882.dip0.t-ipconnect.de. [2003:f6:5f11:4e08:f5a4:175d:adf0:7882]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-48a8feb0cbfsm105853715e9.2.2026.05.04.00.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2026 00:34:34 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Zack Rusin , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: Markus Schneider-Pargmann , Broadcom internal kernel review list , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/vmwgfx: Don't use UTS_RELEASE directly Date: Mon, 4 May 2026 09:34:20 +0200 Message-ID: <20260504073422.1130008-2-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1949; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=IvpBzrTG8NsRbACgF6uIDFqr/tHY09F62gKICIeQhBU=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBp+Ev+gQ84ZfIwKeIdxO14OnTXaeamQgdaf6msa 8VNof+RPyKJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCafhL/gAKCRCPgPtYfRL+ TvCVB/998JTZnFpdrEZrgFbZyiGMA5KaFJ4x7pDaHhSV5hYwZqfLmZGJkr9gJb7tzJ+F89hDdpH A+4/AtT6bEFMt4kWcV/6bdh5nAr6KeQLK9bi7hGWle5m22LjHzhESHkhZOvSaMeZkvX6ZkbafY+ EyrgEeY38IGZkrSgrdJp4HUdPeh46fXDp7FqCZok1gRo7S1Bn3Lec/a2uGibMquhWow+60+8g0g 7zx2k3SeBKnG/VJ2jvX1jEDuKdnsjOBtim31NAUNr0oLrzLhjPrjkOFCoFCdmDMiVHaGKhZdTnW idn/k5dfMc6CMfMKxGOaO7qbfLNGDSpKvs8tcGDC9Xo/9VYi X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable UTS_RELEASE evaluates to a static string and changes quite easily (e.g. uncommitted changes in the source tree or new commits). So when checking if a patch introduces changes to the resulting binary each usage of UTS_RELEASE is source of annoyance. Instead of using UTS_RELEASE directly use init_utsname()->release which evaluates to the same string but with that a change of UTS_RELEASE doesn't affect vmwgfx_drv.o. Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) --- Hello, an alternative way to address this is to drop the kernel version string completely. But I'm not sure how redundant this really is so I chose the init_utsname() approach. Best regards Uwe drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/v= mwgfx_drv.c index 0f101aedb49a..12f5f288ae15 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -24,7 +24,6 @@ #include #include #include -#include =20 #ifdef CONFIG_X86 #include @@ -35,6 +34,7 @@ #include #include #include +#include #include #include =20 @@ -1115,7 +1115,7 @@ static int vmw_driver_load(struct vmw_private *dev_pr= iv, u32 pci_id) vmw_print_sm_type(dev_priv); vmw_host_printf("vmwgfx: Module Version: %d.%d.%d (kernel: %s)", VMWGFX_DRIVER_MAJOR, VMWGFX_DRIVER_MINOR, - VMWGFX_DRIVER_PATCHLEVEL, UTS_RELEASE); + VMWGFX_DRIVER_PATCHLEVEL, init_utsname()->release); vmw_write_driver_id(dev_priv); =20 dev_priv->pm_nb.notifier_call =3D vmwgfx_pm_notifier; base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 --=20 2.47.3