X-Received: by 2002:a17:90b:4001:b0:1bc:68ec:ce48 with SMTP id ie1-20020a17090b400100b001bc68ecce48mr2328438pjb.133.1645506262964; Mon, 21 Feb 2022 21:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645506262; cv=none; d=google.com; s=arc-20160816; b=W4zhTijp9jUOjn64Youin3Iwv6WBUu2dEr35KRA3lGEwgZlQbLxSsRKJtVCPM0FCDN qLGg3qauGHbm5Q7FrKbvMcvRl4wahrENmLIuqnn+guIISDSCQnSXGrjWN0YDAwhLk+fF DXQ/93wnk3Zl0ypQ4rDAS62gkg3T0q2zcG47236FnDzn1rcbtQuF3pCKsl7Vy+NnIqrD jtEepQOT7uTvKF696aOQCO8xBM0WXCT0CiamQOlMDaiysHmE0234tGpk4YabHK0+YJLd GSRUnQ7bVgpDZ7AJwxFMkXG9yXxHmmt1jTgo0itZ/AAbj6pMwVotoUQsA42PYHhGzAMl t4nQ== 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=hUctO8qMWQ45zVBQAlN7O/H0t7kwt4uP/76M/rvLzsAirFPSAwr8aVatsJdvqnvFj4 MxcyJMzzOcW1xVJcong0OsiGH8viqaTW/xGGuxPfOdQk9pNQB1uo3tvdRdi/wziGXUkZ em+vm1oErsPkhhVpX5jrC7pYN7dhJXcWxJe1pie9LDAVHSjANHHsyRdVmN2DWAu78eLA nBfhx9PjZJPY1Mx0q8CGsqy0Gb20eItFEQHvsoRyq5SEV7nnZFMUbqTMclYl4VmE8pHe lQ6pSkDywMij71ZaZt0w2guUKS/hfjXLHEP4JFMo7Gpj5fRgSc4A/XZ2JoGhluKRJRs7 tUCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dky4AdLT; 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 s21si18237007pgs.540.2022.02.21.21.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:04:22 -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=dky4AdLT; 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 52D3F86E09; Mon, 21 Feb 2022 20:37:40 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236406AbiBUXTY (ORCPT + 99 others); Mon, 21 Feb 2022 18:19:24 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236220AbiBUXSu (ORCPT ); Mon, 21 Feb 2022 18:18:50 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6A3F24BFF; Mon, 21 Feb 2022 15:18:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645485496; x=1677021496; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JVXkGTgMk0f0BZi0vzDMp/6U04Z0YVjDjG523a9A54I=; b=dky4AdLTHfRrhWg04YEZvQXjE93QrNgekhRPXw+NR02/IatoI4XstTG8 rnwBbFXDYl0qpXIlM/DvfDeFjixoyQmWYHXdTCs7uVW/CIqqIWL5/Bxh2 zJykcy5Do5b+9sQflLX79OJeqxI7NHHnYpxpu83M6m/4DQcK1HR4joXl2 dknYK4dVNn5uIuzk1/nnOUFGt1SgaJV83hxkmV24lsWrdKfP+MePJHYXy gfQEN3DMP8gacIZBRX3ABvVVY9LU1kkK7G2t52ljOi7UOPzWt9FNWaF4f hsGau0Y/d8TF/w3UCN53CpQIlAgIy4xuYfqHAmYvmlX8lxAN+3QHHKGJe A==; X-IronPort-AV: E=McAfee;i="6200,9189,10265"; a="251530462" X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="251530462" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 15:18:15 -0800 X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="638694587" Received: from lab-ah.igk.intel.com ([10.91.215.196]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 15:18:12 -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 v2 8/9] drm/i915: Correct type of wakeref variable Date: Tue, 22 Feb 2022 00:17:00 +0100 Message-Id: <20220221231705.1481059-19-andrzej.hajda@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220221231705.1481059-1-andrzej.hajda@intel.com> References: <20220221231705.1481059-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