From patchwork Tue Mar 4 13:54:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 14000770 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 811AEC282D9 for ; Tue, 4 Mar 2025 13:55:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5285E10E5CD; Tue, 4 Mar 2025 13:55:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="nyyri6Ee"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6378410E5C9 for ; Tue, 4 Mar 2025 13:55:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741096504; x=1772632504; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=dQgArLKhvfiWa9vt/ktAwnp9Lz7/YHtFXYLGR4Hu1ws=; b=nyyri6EesEY0srxsGiWg/t4JaOwt0gFO7HVA78Q2xIBVVV2VUPcTeeJ9 GpkD5U81r93feThATIrEPwg6mEaOch2OQA+9RgZNWpI8ukDnHU874xN0B Puzt0c844+dotNq9BJxlz2N4HYu8j4/FfT8gCexThwy9BpGqycMIpJ5RQ fbQOb+naNUst7WH88aQztlE34t2p08Az6InNtMkEB9tg/Pd9/Z6yr9azp AYnykEGuPItRhB1ZW+TY3+mrCmOtPRa/uT0rC//BgdDK7/wcLKIuGqSsZ v2orA/pqgwcGfiJUHLgP3q9AUzkceMt25PYgP0cghP7I7B7+IZ2aFzhKF A==; X-CSE-ConnectionGUID: UQJ1AJ5nR3qandKsxbClSw== X-CSE-MsgGUID: a8psjzioSRi+0+2QPzQ7fg== X-IronPort-AV: E=McAfee;i="6700,10204,11363"; a="41910726" X-IronPort-AV: E=Sophos;i="6.14,220,1736841600"; d="scan'208";a="41910726" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2025 05:55:04 -0800 X-CSE-ConnectionGUID: lUkdvvWkSnWmlJiI/2eCvA== X-CSE-MsgGUID: cl9T2g4ASkKkNSW08hIq3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="123574506" Received: from bergbenj-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.192]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2025 05:55:01 -0800 From: Jani Nikula To: dri-devel@lists.freedesktop.org Cc: jani.nikula@intel.com, Kerem Karabay , Atharva Tiwari , Aditya Garg , Aun-Ali Zaidi , Thomas Zimmermann Subject: [PATCH] drm/appletbdrm: fix format character for size_t Date: Tue, 4 Mar 2025 15:54:56 +0200 Message-Id: <20250304135456.429407-1-jani.nikula@intel.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Use %zu for size_t instead of %lu to avoid failures on 32-bit builds: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ {aka ‘unsigned int’} Fixes: 0670c2f56e45 ("drm/tiny: add driver for Apple Touch Bars in x86 Macs") Cc: Kerem Karabay Cc: Atharva Tiwari Cc: Aditya Garg Cc: Aun-Ali Zaidi Cc: Thomas Zimmermann Signed-off-by: Jani Nikula Acked-by: Aditya Garg --- drivers/gpu/drm/tiny/appletbdrm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tiny/appletbdrm.c b/drivers/gpu/drm/tiny/appletbdrm.c index f5d177e234e4..394c8f9bd41a 100644 --- a/drivers/gpu/drm/tiny/appletbdrm.c +++ b/drivers/gpu/drm/tiny/appletbdrm.c @@ -167,7 +167,7 @@ static int appletbdrm_send_request(struct appletbdrm_device *adev, } if (actual_size != size) { - drm_err(drm, "Actual size (%d) doesn't match expected size (%lu)\n", + drm_err(drm, "Actual size (%d) doesn't match expected size (%zu)\n", actual_size, size); return -EIO; } @@ -208,7 +208,7 @@ static int appletbdrm_read_response(struct appletbdrm_device *adev, } if (actual_size != size) { - drm_err(drm, "Actual size (%d) doesn't match expected size (%lu)\n", + drm_err(drm, "Actual size (%d) doesn't match expected size (%zu)\n", actual_size, size); return -EBADMSG; }