Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2487858pxj; Mon, 10 May 2021 04:18:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw/ELtx0ccoBU4GUvtVKrPvXd/Hhx2NCVHWz9ZUB8iCQxG/hm3JHzYlu5LMrsdcXF34jnd X-Received: by 2002:a05:6e02:16ca:: with SMTP id 10mr15589062ilx.65.1620645484096; Mon, 10 May 2021 04:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645484; cv=none; d=google.com; s=arc-20160816; b=t/fWAzOXYlIfQip1in2IsjxhmBvll6fIlUfgs1l7qplDXlJsH8qvDL+9K32Y/pntVw gpdf993bQ7QqgGOYOggaVs9MZxyTJWfbp0QWpGD5WlxL4u/7x0U5q8123qPZTL1hcx4E mIx46RQLpcfivSsE2ljeyWz8yDLPApImEuFqykVXBcRkZNhQWlNzAPmWp2yTIC10kEHg 8vu2KGmWZgGsaG8nDOZB3dt7VJYTWwIg4Zg+B0CBVwi0QNqJZu5WLx7xUEfDBvHBxjHr uQ291C0g01UFQMTxit4z59/ELmb2rWCmmaRNrjpAhrVqt/Cr3o7G8y9MQDoxaGEXkQ9U 1k0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7/xKMv/Rwp7DZRKVp1TNPxWuzbAUrrJAj3HV6iTTWwU=; b=fMXGqFr6wGUVMn4uTl4qEaQR7n0Pz+nYBDKsF8sCDv1OChNI6B91DEThhPlSh+TcdV tNGglFvPqonwQ5lMyTcV68Dl0DlOHy+qN2ejMm6+yRGX+cxvi8uBZcFcLAhzlXF5QK5+ 9NSAZHn9EuZhcSOXGyZCroSqdgpeqc44u7Ijin2bvPz0FRm706QE4ydBTud+Xw5tnEsW EcNJdnn3zIpCug/Pk7S5wzw/WgLsWtNvY3oKGmLKn+hCrSg++GA4lssQIIz2iS78POGe Tp+k8+92ce+RBshru8h6vWZN8FibsYObP021IOO3WCSTO64IlhZkhKDvCvMsXirLCg8d YaAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S5X790rm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f20si12901165ion.8.2021.05.10.04.17.52; Mon, 10 May 2021 04:18:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S5X790rm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232526AbhEJLMH (ORCPT + 99 others); Mon, 10 May 2021 07:12:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:42196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233491AbhEJKuI (ORCPT ); Mon, 10 May 2021 06:50:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9316A61944; Mon, 10 May 2021 10:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643141; bh=zEaw3zcLJD+oaYX/gXnVh3nZV+0dX9pjyV3rpI/3UX8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S5X790rmXteUJN0xbLvx2weH4y17skxqnKgnex7yOW1jjGMB10SDCWfDqO+Fpy+Qv 1z1vcNDsPzFAlwGu4zFu6UbQux4MzV/PqgmCFwDelXZgfn7dzE+44os81vMUIRPZGK Yo1L8Nkwas98nF1UNcZ1oVJKbs/hGaW9NDYe7gkk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Christian=20K=C3=B6nig?= , Tom Rix , Arnd Bergmann , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 193/299] amdgpu: avoid incorrect %hu format string Date: Mon, 10 May 2021 12:19:50 +0200 Message-Id: <20210510102011.324065512@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 7d98d416c2cc1c1f7d9508e887de4630e521d797 ] clang points out that the %hu format string does not match the type of the variables here: drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c:263:7: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] version_major, version_minor); ^~~~~~~~~~~~~ include/drm/drm_print.h:498:19: note: expanded from macro 'DRM_ERROR' __drm_err(fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ Change it to a regular %u, the same way a previous patch did for another instance of the same warning. Reviewed-by: Christian König Reviewed-by: Tom Rix Signed-off-by: Arnd Bergmann Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index f8bebf18ee36..665ead139c30 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c @@ -259,7 +259,7 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev) if ((adev->asic_type == CHIP_POLARIS10 || adev->asic_type == CHIP_POLARIS11) && (adev->uvd.fw_version < FW_1_66_16)) - DRM_ERROR("POLARIS10/11 UVD firmware version %hu.%hu is too old.\n", + DRM_ERROR("POLARIS10/11 UVD firmware version %u.%u is too old.\n", version_major, version_minor); } else { unsigned int enc_major, enc_minor, dec_minor; -- 2.30.2