Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6172341rwr; Mon, 24 Apr 2023 15:09:16 -0700 (PDT) X-Google-Smtp-Source: AKy350bU7DhEEtL7Tx97qaWlOTTS/pRxvh1/A0zPeVU5mfle/2W+rpFIamlpT1XvQg1ayx6+rYsD X-Received: by 2002:a17:902:e381:b0:1a6:3b9c:7fea with SMTP id g1-20020a170902e38100b001a63b9c7feamr13150109ple.36.1682374155810; Mon, 24 Apr 2023 15:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682374155; cv=none; d=google.com; s=arc-20160816; b=f3R7yYgaXPeVyO9Rt5yGT4erGYdN3WzXFHkcxhHpfRHxtgltlZhas74XuKhtndLlFd 14DQ0op7t39Ov1v4rE0Dj3b7uRcpTViXIjfhmwPF6yDmLSdWWKezarK6IexcxdZH6dXh Xlxd9q2IC6v2Kdg880aFgdExupin0tKDooK4XpMLnMh4dqC2v/GJiS9j2tvIp1wL0pxL HqsErXU4J5gE6TVo8XAKSE89dD6Ph8porLXulyzB63OLRaBwgEtZxdxZ43RogEGXD65f bxHFGn/q2h/rBC+7U0QKYJDRrWOAtMO0HXAbgOlz7QrlK7Ux1EBJJS9FeO9v0aDnmYZs AJBg== 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=EJPQJ8KOKndaoJJskI6fPVcPqHy6R9yx5s6liwSLVDI=; b=Zb9dFLSLCjk7TekpK4Z+GN8QkgK7mbSVRvy/ZPfHW/dRCOhOwRdSN6y/Y6ENnRi8+n /9QMhrtLxFDsqY7JJToQRulNgW+hPnOV/KhARF5j5/RItuAgPr486b+itfdgllEYmDSe QdnN3a95VhMB7bAnKzlyJE31BqVlD011UooIJAsBTMFm7o2IQMxS3ZlTT4C/x6W4aggb POXIG5b52Aw3nqqc1RbNddufTpqXmTi76ZlXq29PDku2/vMSOr7Hpn1BdqnJyBkYSRlG 0bHeEnucJrMlOHR804l6EDrq+7LzQZwZVwCSe44v0yg1C6VwQ+gAP6uI1vBooFhEn0Iy sEQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ROjkT2oO; 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 b4-20020a1709027e0400b001a9581bfb91si7135810plm.543.2023.04.24.15.09.01; Mon, 24 Apr 2023 15:09:15 -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=ROjkT2oO; 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 S233193AbjDXWGt (ORCPT + 99 others); Mon, 24 Apr 2023 18:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233247AbjDXWGh (ORCPT ); Mon, 24 Apr 2023 18:06:37 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93C1F8A62; Mon, 24 Apr 2023 15:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682373975; x=1713909975; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=Qt1xoilG/L7Fu1loOHz9Fk2Q2Og1EPjmLUv1rFNp/s4=; b=ROjkT2oOUrxMkNmc00oCBxA5sklFb126MaXlzJT2UnD7RKVfX2tAKmxr p7AdkRrTlvHLoM91MK33FKlVUCWWJ1A32dTZkBbAUREUX6dZKLViA9fvP gsYpkY5Qi25O8H2Qt4DeJST5oBBdt8SAZFMZiE7IR6pI0rdsBmEBxtLmM ZD8mdRFB2HNb0prFBnIafn74IBQ6a+v1dLBjsBRwFrPObGqJ4y/iFo860 aHcV+jBNX8+6UMGorJraCsDrHj8LUWqDxAkPxFIiCva2K9xOqj4X/MW5R zcJMQuX+UlZWcnqe7wnqsMQkY7h9LEdau4b5moTCJh3PsJKG0P4724b2c A==; X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="335473757" X-IronPort-AV: E=Sophos;i="5.99,223,1677571200"; d="scan'208";a="335473757" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 15:06:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10690"; a="939500409" X-IronPort-AV: E=Sophos;i="5.99,223,1677571200"; d="scan'208";a="939500409" Received: from lab-ah.igk.intel.com ([10.102.138.202]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 15:06:06 -0700 From: Andrzej Hajda Date: Tue, 25 Apr 2023 00:05:42 +0200 Subject: [PATCH v8 5/7] 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-v8-5-4b6517e61be6@intel.com> References: <20230224-track_gt-v8-0-4b6517e61be6@intel.com> In-Reply-To: <20230224-track_gt-v8-0-4b6517e61be6@intel.com> To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Eric Dumazet Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Chris Wilson , netdev@vger.kernel.org, Jakub Kicinski , Dmitry Vyukov , "David S. Miller" , Andi Shyti , Andrzej Hajda X-Mailer: b4 0.11.1 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 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 ee3e8352637f28..fe390d59929b02 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