From patchwork Mon Apr 24 22:05:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 87179 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3033902vqo; Mon, 24 Apr 2023 15:15:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2eEaYB7nGuEBGyu1mqFxImLo35rdxVEydSFA2VcHLF3hAZSWJHUN6FJoKZ94bDu0+3CM+ X-Received: by 2002:a05:6a00:190f:b0:63f:1eb3:824b with SMTP id y15-20020a056a00190f00b0063f1eb3824bmr15925257pfi.17.1682374529558; Mon, 24 Apr 2023 15:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682374529; cv=none; d=google.com; s=arc-20160816; b=nih3EodbW6T6jA2rm7qaXSnbX4LJj7AJllmd0qZYNuTCGKxmPmzEbsJWGm6M/LZEtM oIpx8LJEl9yvh8lcxxBdH/gziHmvCCb+RID9LExwcx0ZFtCIQuH6q05CVIVHDJFOSFtl fSJUOskDFw09+0GXDoSF4CZmJFcjN8bcfdvIN/PO56WD5sV/g8/c0v17x1bHeHWA3yPL Q4LjR3UW7McGTpABwfxARjA+ZiF8u4hKGDNZ4mEsXnUapbPQhucljCRa9TYJ1VD9o+BX UNZVxu3pbYfl7xNIcqqkBS1T6biUg5HFjH5Yq9IVojWvvbP4vMVZSInhK+/MtKOAbmgB iIng== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a65640f000000b0051397a23a0bsi11744738pgv.482.2023.04.24.15.15.13; Mon, 24 Apr 2023 15:15:29 -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 S233196AbjDXWGt (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764097554923366127?= X-GMAIL-MSGID: =?utf-8?q?1764097554923366127?= 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);