Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4392376pxb; Mon, 21 Feb 2022 20:05:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlnGFc54/j79Dro0gyiseIEbU5u1ffYj/1m58Hj8hmIHe07ae4GzLy9UEflmNOOsim0YCx X-Received: by 2002:a17:90b:1e4b:b0:1bc:4d46:55a7 with SMTP id pi11-20020a17090b1e4b00b001bc4d4655a7mr2143321pjb.151.1645502740486; Mon, 21 Feb 2022 20:05:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645502740; cv=none; d=google.com; s=arc-20160816; b=QqYovQcJeVIGVzS4QTTU8eOIiQC3Ct3Alitq/tli2kbr87Ha+E4XuAKbHDCzTFKcrn PPIjLTUoUqKZo5dqB609yikcjn8dBtr1JgaGiy3r6P5FVMjo4EOpx6r2OO9ULuO+dUM6 lSd6v83xiUaogpWpCYvqYgErexZk1iNwDO8j8zknFGMZcL1aoNbHXAMljCC7KXubuXel iafsy3dswRY5RoC8zZsMlmWc5cner7pUcvLicoiFW4oWuVjzNs8XJWQEXQtKiY6UM30i fHaACkhNI1SDkLZCcMwz1hL9ZCBgPsZC43BeYj4iqs5PkgOPvgItdEMbH6wykgW/m2q6 a3Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xrmauJajnzSye1qFFoHakt0owCHesZ++wsA+BSHJfLs=; b=DSYvrFi7RP/d9MeU7lYa1txbxvUnXI+maamQce+F1fAmny3jQ69KDoU0eraqmYe0kQ Q2SZMu5C8rHhNR6NsiCIFTZ73jHQ3CDc06jpDKOYfR4jlsutfXT+TCbaJQTiOnB/aA1y 2M3TPtMw1trioVCoFsBHiHZMmrZn0itWwH+J3FXp26SBKVAEFggtg2zSZJucRc/x5XGg xUFUTr+YeFYxmQqMYFrQhcQ+oU1m/ak5prpT7+wtJz8E7MG8oXdS0mrHLQzaYoFe4KXX tUSRFaQbPNtJXQIHEzGHdSh36qb0alLRdDq9UjJJVE4DBbAUN0PpH7PwdVEWAZ03bObu AOYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DLCXrtCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x19si19984942pga.392.2022.02.21.20.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 20:05:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DLCXrtCz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7F85065835; Mon, 21 Feb 2022 20:05:29 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237019AbiBUX1Z (ORCPT + 99 others); Mon, 21 Feb 2022 18:27:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236897AbiBUX07 (ORCPT ); Mon, 21 Feb 2022 18:26:59 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DC2725585; Mon, 21 Feb 2022 15:26:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645485988; x=1677021988; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JVXkGTgMk0f0BZi0vzDMp/6U04Z0YVjDjG523a9A54I=; b=DLCXrtCzn5lKWU9CpAHzxZlc2y/hua7RWeTq+6i3YHZ2nLUN2+TCoaYC CreLXN8u8P+fhUvn7qzTko/+tX+EpbBTUru1lbQIFUS+cqRyHhW/pZ4w5 mvH5pjmynifM88phqUyIy859hfQUSM+iA5wpbIvK9+FAFXGWK7QqCy+/2 6jdeO9GOftL/KnKjCcAfdtJR+yr/RHJv9TfIXTM08PpW1un3lEWADq6Nh TVos6HAOFN8nVLs1RhuCu39m3r8x9Dc1gre+r+Ctk746QMfMS4pIDpsY2 JPgTycf4oljgC/lznSt7ymXIqrcssuhIGM+4Tl6SXAcCgnLItvjejDWyo Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10265"; a="338011937" X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="338011937" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 15:26:28 -0800 X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="706397078" Received: from lab-ah.igk.intel.com ([10.91.215.196]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 15:26:24 -0800 From: Andrzej Hajda To: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, netdev Cc: Andrzej Hajda , Jani Nikula , Daniel Vetter , Lucas De Marchi , Chris Wilson , Eric Dumazet , Dmitry Vyukov , Jakub Kicinski Subject: [PATCH v3 10/11] drm/i915: Correct type of wakeref variable Date: Tue, 22 Feb 2022 00:25:41 +0100 Message-Id: <20220221232542.1481315-11-andrzej.hajda@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220221232542.1481315-1-andrzej.hajda@intel.com> References: <20220221232542.1481315-1-andrzej.hajda@intel.com> MIME-Version: 1.0 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --- 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 7799939c38945..b308dd0866eaf 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c @@ -2797,7 +2797,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.25.1