Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4392288pxb; Mon, 21 Feb 2022 20:05:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3etYCD+Vg7Xs2Tl653nIShoiA3sJnHdDPzeYLkJpdmel+5K3GWOPf7OY7doZsTBuTCULB X-Received: by 2002:a17:90a:fe4:b0:1bc:1db6:c77f with SMTP id 91-20020a17090a0fe400b001bc1db6c77fmr2144393pjz.184.1645502729260; Mon, 21 Feb 2022 20:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645502729; cv=none; d=google.com; s=arc-20160816; b=W63C8PQfD8z7s1RrvG/f5SzFCr7WOqADDU9G44PIqZDxTXIsN9yqRgsGIhzyYkQQPB Q8PwsjIR4pHUiukA13yrbiUqp7RJWe4TA8EIMclDkVaijAAi6NGXq03C+cEE3NnclqkU tAeZkOg3qmSTjL8BbvRMYxmUin6Al3XTpMa0qn7N/3EKkh+0KB4q/+iksrvVB8/sWDOV PiLabnstH26F8hlWZhx4Q1fpcu+IGBgL3EDov61xerNI0rhwQIGCUr9Ihcd2onpYjcAH t/8c5x6HoO0ExpVsMSegoW68SAoj4QwqNQ66lyXsFr0+eCBN+C+lk8MO/acew8JBdPYx iSHw== 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=xzKNd7GA0Uw5dJrCAvJmpzQ8yy/617JlR/sUX1zYx5xwUUTW9dw1N5XxGIEskJ/vy2 IOYRGfpo9jf4EHlwifCOZLvUCrUFjbAEs3VUBF4m60Cco5OY7w2fP/LqBAx9QLMuIh8v weuT1fy/m/q/Bh1+hJ2zJ+Fx+rUaj7OanESGqgZ4dY0OW44C+PTTGEU9owyEG9QBP+hq ZbCo6Qi8d6DfOVemiQfnIpb18i2kdLnkThJaSGCSZW/is2IWAUynBsjpdqHbCnsGBYo5 TYDSP6KmvojjpNEH3IjbSRkevwk/6KR8J+8dkAohd/OHep3tYNFk4lsPCp+hNVV2ugGS sp3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lrP+PaA3; 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 f132si18381485pgc.340.2022.02.21.20.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 20:05:29 -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=lrP+PaA3; 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 EE13365835; Mon, 21 Feb 2022 20:05:18 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236644AbiBUXUl (ORCPT + 99 others); Mon, 21 Feb 2022 18:20:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236737AbiBUXTy (ORCPT ); Mon, 21 Feb 2022 18:19:54 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8BDF25E93; Mon, 21 Feb 2022 15:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645485514; x=1677021514; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JVXkGTgMk0f0BZi0vzDMp/6U04Z0YVjDjG523a9A54I=; b=lrP+PaA3wb2lQS8gMMtrU+QaCIbJtIVLrXYUlrw77ciR465csEmM4mPm W1wXc9vKGM6DaEE3RmUa7nHnT3yK3gb9EwgU8vzV8J2udbm4O+lV1x2Yk 1Z3RyFCTPsxsvzRhIdBXaFhjOXI/BLzNQuot1dGfZFX9J9uggXPPIyAB8 d40TRstYpx4lXBPkiMT+fvfTLXbwELxCXmH/ej+H/gHJ+nCtXreF+C0z1 Wre6M2rLUHYWSaoA93E4aa77Lr5ZAvWz4FcQtdLhYgdoz4jA7jSlZvQvV V+rixVT735IsLJX5HXKxzAC3xGzfI/YM+LMGIOHk/hAo091+2NrL29CbD Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10265"; a="251530478" X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="251530478" 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:27 -0800 X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="638694636" 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:25 -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 10/11] drm/i915: Correct type of wakeref variable Date: Tue, 22 Feb 2022 00:17:04 +0100 Message-Id: <20220221231705.1481059-23-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