Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4563480rwl; Tue, 28 Mar 2023 08:26:32 -0700 (PDT) X-Google-Smtp-Source: AKy350YhyOzjHivBtBHfScGWPjIHirOJ3CFfdj1vcfs2y4OMu2UytJGH+D1+ycVRStZCen/qvi4I X-Received: by 2002:a17:907:20ee:b0:930:6e31:3c11 with SMTP id rh14-20020a17090720ee00b009306e313c11mr17203431ejb.70.1680017192339; Tue, 28 Mar 2023 08:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680017192; cv=none; d=google.com; s=arc-20160816; b=bMzfta6QFPGmbXpHXcBrWbq2jmLNQ6//RZfl8MJoUSihwPuDszAtorivFwDQurac1F YZ/4QIZXQW1Nja3U9GOvaxjabhwFlJtcXwxxQNHnwhyltblYDT8pewYCtMu3Nf5m5mEx q7ApmSaU4tYncliXVG5BeZX4oBe0I+b4yDZI1axm9ChaCPV2JPkIpAq/4JkNjtt+Lr3L VAscV4qqDI1FflUaptLtSqnKtpJzQvNM+6kk09bS3IufFv2Ius+hOOOGxYUfqFtU59xG Ujknb+9Zvz9tDrkTHz+cKsD2Ru+Harxt7mqwbfwSKOAoG48hdnu3NebA4CHybcY/U+q+ ROPQ== 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=oiVQvH742AxxBrieq3OC450bmEIM81iJhdlH9UX/b0o=; b=AV0u+88wUOBDTzD3bX7AoyyrRc9blhJMrvn0iPrSTr6OkmkbFXRfdBgadExO29Oonx cc+oiw9FSkJKYwbcnMGPv81FQLxMOwn9/huxY918QJodFn4GuHuyaDwy4xBGNlQNRPaI FvbClheckFUjlj83mPgCMj9lA/aS0hHNAyvUSdvSYUa+M+KFyfHhxiTCSVptYdAodhBg G+XVC6+jyFjXffBEX6ighrenAGCiJvixuHe4S/4hXhDnkC9J4hTBzGEmroX8AGfhZ93G 5Ip3eY1reZ1ggGOMfoNAIUUiwGaqq9/Irk6AmjFxav0eehf8eGphYqH/nK3t5DoCLaUI 1A+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="j/3o/1NN"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a170906a18100b00935086a660csi20078420ejy.17.2023.03.28.08.26.05; Tue, 28 Mar 2023 08:26:32 -0700 (PDT) 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="j/3o/1NN"; 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 S232470AbjC1PS6 (ORCPT + 99 others); Tue, 28 Mar 2023 11:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234003AbjC1PRz (ORCPT ); Tue, 28 Mar 2023 11:17:55 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00BA210A9B; Tue, 28 Mar 2023 08:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680016626; x=1711552626; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=LrADJYnQd6OA8VRZxmBcmho+KZF+ugscr5DiCLcs2Nw=; b=j/3o/1NN+V5/4aSjY9tW9Av8jUEnnkOtmkESuUjsSY2kr8gKOWKRTq3a N0ekhUYftH24pCTEqEICvdyio6uDkR/cPwUqbsgL45yR3BpGDhniqGZrz 5K5aiP7ez5Ptu19uTXJfc4NeuV1054D2JKz4PJG2pEOoAgOVz+lJmYyFa eKGJmCWaIGB/TF5v21Uw82c6Z6IwBqnlvJIEvoVKOT2f/Yvw6blF3oxFn hty/u4hA/giorkxtxfu310jj2Z8ytk8LQ0iy4I1vDwJMl/vqBA+ESL/us paj9P/ke7SaMDByDXU6heFVdUqEneC+UDTKPxrN9tuDeFmqedZbSHKiue g==; X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="403208712" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="403208712" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 08:16:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="773181768" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="773181768" Received: from lab-ah.igk.intel.com ([10.102.138.202]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 08:16:00 -0700 From: Andrzej Hajda Date: Tue, 28 Mar 2023 17:15:28 +0200 Subject: [PATCH v5 5/8] drm/i915: Correct type of wakeref variable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230224-track_gt-v5-5-77be86f2c872@intel.com> References: <20230224-track_gt-v5-0-77be86f2c872@intel.com> In-Reply-To: <20230224-track_gt-v5-0-77be86f2c872@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 , netdev@vger.kernel.org, Eric Dumazet , Jakub Kicinski , Dmitry Vyukov , "David S. Miller" , Andrzej Hajda , Andi Shyti X-Mailer: b4 0.11.1 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable 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 Wakeref has dedicated type. Assumption it will be int compatible forever is incorrect. Signed-off-by: Andrzej Hajda Reviewed-by: Andi Shyti --- 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 88e881b100cf0a..74d28a3af2d57b 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c @@ -3248,7 +3248,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); -- 2.34.1