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 5A41CC47DAF for ; Tue, 16 Jan 2024 17:42:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 320B210E5DA; Tue, 16 Jan 2024 17:42:37 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0D88F10E511; Tue, 16 Jan 2024 17:42:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705426954; x=1736962954; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8K/h1/j4SNbUYxEYWeTpA8KkHoZAgBmuZ8QW30qjzF4=; b=ARslKC73vY+mOjXaif4rO9ijR0SE52jY22m1kB/+iY0rDF70O8XqPMWl rW1lFS7pEjV1WqQCHkVPKF+iAOw01EGe66iVGFRCM2wP9hue/mYT/jcW4 9+Pd9o/Q3H2Jh2OG3u3Eqzdzyo7Sb5+xU9jpvaFjuvqbvfNef3PNRayTC O1DlePDXL3tRatQhLHOs6ax9sckkbbYnBmaaxy/S1KiUvofKbVZD4Zxxy Au7jnSX0EARr5FYQAUkLIUYYb/IOlSOZ+bXPwyK+YkGxyYBDYoSphckQA ILsUuvimS+0rxb62i5N8qJ01oHHNyppXRjVqaqNMBhSdZz6+/rGtU5Ee3 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10955"; a="13288229" X-IronPort-AV: E=Sophos;i="6.05,199,1701158400"; d="scan'208";a="13288229" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2024 09:42:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10955"; a="927555535" X-IronPort-AV: E=Sophos;i="6.05,199,1701158400"; d="scan'208";a="927555535" Received: from lucas-s2600cw.jf.intel.com ([10.165.21.196]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2024 09:42:31 -0800 From: Lucas De Marchi To: intel-xe@lists.freedesktop.org Subject: [PATCH v2 4/5] drm/xe: Fix cast on trace variable Date: Tue, 16 Jan 2024 09:40:49 -0800 Message-Id: <20240116174050.2435923-5-lucas.demarchi@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240116174050.2435923-1-lucas.demarchi@intel.com> References: <20240116174050.2435923-1-lucas.demarchi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lucas De Marchi , dri-devel@lists.freedesktop.org, Rodrigo Vivi Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Cast the pointer to unsigned long and let it be implicitly extended to u64. This fixes the build on 32bits arch. Cc: Matthew Brost Cc: Niranjana Vishwanathapura Cc: Rodrigo Vivi Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/xe/xe_trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/xe_trace.h b/drivers/gpu/drm/xe/xe_trace.h index 95163c303f3e..e4e7262191ad 100644 --- a/drivers/gpu/drm/xe/xe_trace.h +++ b/drivers/gpu/drm/xe/xe_trace.h @@ -31,7 +31,7 @@ DECLARE_EVENT_CLASS(xe_gt_tlb_invalidation_fence, ), TP_fast_assign( - __entry->fence = (u64)fence; + __entry->fence = (unsigned long)fence; __entry->seqno = fence->seqno; ), -- 2.40.1