From patchwork Fri Feb 24 16:25:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 61398 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1019868wrd; Fri, 24 Feb 2023 08:52:49 -0800 (PST) X-Google-Smtp-Source: AK7set/RclM3OepDYmzuzGAGCaQoRiygkwa86qu29zhV/aG/mDybFvkDciAUP+BOIWsERLIdgGXP X-Received: by 2002:a05:6a20:6918:b0:c7:164c:edf7 with SMTP id q24-20020a056a20691800b000c7164cedf7mr16212481pzj.36.1677257569073; Fri, 24 Feb 2023 08:52:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677257569; cv=none; d=google.com; s=arc-20160816; b=df4zT8/3jd1TxKJP2bV6rsFwzThyuBuaFNkxiExkeh5Rx3f/6uGMxdjzfWVtIWFJWD HEFF5L29s7GnSrbPQRqFMIrv286vN5Rk/oJMTQsB8PCn7AVXIAjjq15BU+ezDLtN1wbe SyOyKjaLocTCdYS7uS4qW+iVyhkCFfpTvSf4SePenIRyyofIZ7eR9LfCaLjHIau5aDmN Qv3SRnMtd76x7aTPqWjMeuTJidQZ2q263j4tGW9ew1lfeBkRCP7uuLqRxa9WcGMA/ta4 7FmfTnQfcYeCLz7eOljlOth/Vj+MaIqvrRn046wbhefr5fCLpCZQFEWTjT2bxUzNiEEB B1TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=w4hqDT4dUQM0J679IiZZvHQUJ4MHTeFvqd1tiO6FdDI=; b=dXUkdSNOvQrSk32Vg5KLcUGwFPgLPZLkSjjUorvEVqGHtid7jtw14IFcvAEIXSPZ3u Ij4DSjqgNVqGAHDThsvATuxwNK13hTu1b2leYBaDe/XTNLjns18M1lomTVURQGsj+ByM nR4Lwo5UwojHSYUe4hknZhPoQn0cKmiReDexEiPO8HLrtOJuEAMGVzoljodxNn8jOOqe kVXzVNpW3kc7iQ78jpiuw/0qZtZlQ1FFmm2x+1zyW+4Ez2NxiRwhW07cpVExkdLaPEfd TiOISTtwWCeY5/OP/gF0lyFZU1azn4NBH9C+3GB99hOTsEuNO4fI/JTUIL4vjRdQf3aD DD7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KPcJXU1Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p14-20020a056a000b4e00b005941664b506si2761457pfo.224.2023.02.24.08.52.35; Fri, 24 Feb 2023 08:52:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KPcJXU1Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbjBXQ0s (ORCPT + 99 others); Fri, 24 Feb 2023 11:26:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbjBXQ0i (ORCPT ); Fri, 24 Feb 2023 11:26:38 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 747576A9E4 for ; Fri, 24 Feb 2023 08:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677255997; x=1708791997; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=tWIS1fDOoAR997SIfPLRFSn5hDKzRRgGJcW8CcVa3mw=; b=KPcJXU1ZJW5oJoR6vD2w+0IIlNFxgbYlXvtJkxV2Yy9LhuBDxDiHLxhN 6YmzBezt1l41ReS4PKGHr0M8yaib8pm0tKWixavhuMfO00KgB+AI8JN8O +ll6iP9/PxRqW3RIj9nwT80sEJEgDDc/VwXClwuUA9/7F5zzY7a5ADLXI TzQhwzOLWkw7hRqv4T+Zwc8BME4E/FyVHtM0ncEamdAMO6FLzF4Fy5Lpi MZtvcK+8xD6XTd+wRI4NFTHLDBwOUdXAa1H8NR8/OgmGZO5wsxEAjQiKK kshpRwdqvUxi5UNu6pd5SwcjG+x/5i1TZ/4SdwmQlnXwe19caWaoQ1fHI g==; X-IronPort-AV: E=McAfee;i="6500,9779,10631"; a="317273426" X-IronPort-AV: E=Sophos;i="5.97,325,1669104000"; d="scan'208";a="317273426" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2023 08:26:26 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10631"; a="705321998" X-IronPort-AV: E=Sophos;i="5.97,325,1669104000"; d="scan'208";a="705321998" Received: from lab-ah.igk.intel.com ([10.102.42.211]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2023 08:26:22 -0800 From: Andrzej Hajda Date: Fri, 24 Feb 2023 17:25:42 +0100 Subject: [PATCH 3/3] drm/i915: Correct type of wakeref variable MIME-Version: 1.0 Message-Id: <20230224-track_gt-v1-3-0222096fcdc6@intel.com> References: <20230224-track_gt-v1-0-0222096fcdc6@intel.com> In-Reply-To: <20230224-track_gt-v1-0-0222096fcdc6@intel.com> To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Chris Wilson , Andrzej Hajda , Chris Wilson X-Mailer: b4 0.11.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758732032927917015?= X-GMAIL-MSGID: =?utf-8?q?1758732032927917015?= Wakeref has dedicated type. Assumption it will be int compatible forever is incorrect. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c index 978820f8697059..c35f551193c9ad 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c @@ -3235,7 +3235,7 @@ static void destroyed_worker_func(struct work_struct *w) struct intel_guc *guc = container_of(w, struct intel_guc, submission_state.destroyed_worker); struct intel_gt *gt = guc_to_gt(guc); - int tmp; + intel_wakeref_t tmp; with_intel_gt_pm(gt, tmp) deregister_destroyed_contexts(guc);