From patchwork Fri Apr 21 11:35:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 86260 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1003921vqo; Fri, 21 Apr 2023 04:49:14 -0700 (PDT) X-Google-Smtp-Source: AKy350acqikmb5K2NrRwJDfA2R+QsjJ5C2AP2dVVjQCooApnxkAohD7zkvAmjrrvYsHJ0kaEkqiA X-Received: by 2002:a17:90a:49cb:b0:246:f8d7:3083 with SMTP id l11-20020a17090a49cb00b00246f8d73083mr4999415pjm.16.1682077754221; Fri, 21 Apr 2023 04:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682077754; cv=none; d=google.com; s=arc-20160816; b=Y0zOAuYOt98xZXxjzUhsFMNa46qYlb3qZxKhEerqt43xD+Uw8GwRbAI7NJDPQejWbR W+w3DrxPAQEcixvP7h1ZI1YMYFl1TGc7PRbXpqz1QJDVV6HSpb+3yF09snDXL5UK1eQf /Nysn80PKzrKeepSk9khVQz7rGzo2cV7RLuG8gTJ5/nlrEkTn2++85OsenaSv3aeDqHq tPD0SklbbEj33xESf/0WuAlEeXhrSgzjBzNF4yjui79g4WwvyWvXffkb5M/EPlMUtkfG qmjLByjMoISbW60RpTqR7HR5BQyhpntNjjOo8GtigQu+BGyu7uMgNIoI1l1E3XSGFpnX GwLw== 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=oiVQvH742AxxBrieq3OC450bmEIM81iJhdlH9UX/b0o=; b=aZFXVRSBXKhCP6GE3Jcp3gKLiVUpKwde4OsUp3be7D9S6oixipiU0C7CyNe3VKsD2V pB/qHEEchJKncVExDUOe77yDVe3O5OM5hubmOhDE7o5yrZZL46bALQfGHGq/DmSnU85V rRQPFV7RMoKeJuNaSwL9ora85oeZ2BgGa7nCYXGO6JM3QFvWIBgHi0p7kj+acHN9HV5o WIF9gnfITnI68Y0NiMasemVlgge2+xzXPwpRKKySvyVqpcUxPb28xdGePXJLfthrtFmE B6usDanXUt8B6Sy9WQ0r1LH/bH3wtNHRL3vg2acyOALwMYeW2yCMt0NWFLmVk/8qNdMQ VRcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MYHeOLPg; 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 k34-20020a17090a3ea500b00246b0bfcb5esi4295510pjc.144.2023.04.21.04.48.58; Fri, 21 Apr 2023 04:49:14 -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=MYHeOLPg; 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 S231802AbjDULf5 (ORCPT + 99 others); Fri, 21 Apr 2023 07:35:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231811AbjDULfq (ORCPT ); Fri, 21 Apr 2023 07:35:46 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3953C175; Fri, 21 Apr 2023 04:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682076936; x=1713612936; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=LrADJYnQd6OA8VRZxmBcmho+KZF+ugscr5DiCLcs2Nw=; b=MYHeOLPgxJwdO8KdjZLxMfcw087mntrF86ZlTt9No9otVqQ9qsKe6C3Z 18pxwLTrcIT1tcTDKrQ9+yMLHwMqArvJ8QzQeKgAAjS9eroMtgH1UuWz1 768kdRtVdgqnoOO+uyAc6cL14ywOaE8Kn3I644c7UXnz6ibgcqDH+mH1V K+3r28thpWSKkqBbgD9IS101UTLnN+OjMGu0zBk2Q7t7ZLvPk8tNBlemR wFNC5wXD3ScUg3DkXvJSzOvTcQ/mU2VN9YAuLUuOQEW/Z+NuVDhbF/BZk RQXlUEgp5zAWtighGMRxL30epjLJyA/Q4LGhTNqppE0IZm1yHMKRfIiR2 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="432249915" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="432249915" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2023 04:35:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="642489677" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="642489677" Received: from lab-ah.igk.intel.com ([10.102.138.202]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2023 04:35:32 -0700 From: Andrzej Hajda Date: Fri, 21 Apr 2023 13:35:08 +0200 Subject: [PATCH v7 5/7] drm/i915: Correct type of wakeref variable MIME-Version: 1.0 Message-Id: <20230224-track_gt-v7-5-11f08358c1ec@intel.com> References: <20230224-track_gt-v7-0-11f08358c1ec@intel.com> In-Reply-To: <20230224-track_gt-v7-0-11f08358c1ec@intel.com> To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Chris Wilson , netdev@vger.kernel.org, Eric Dumazet , Jakub Kicinski , Dmitry Vyukov , "David S. Miller" , Andi Shyti , Andrzej Hajda X-Mailer: b4 0.11.1 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1763786362858592100?= X-GMAIL-MSGID: =?utf-8?q?1763786362858592100?= 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 88e881b100cf0a..74d28a3af2d57b 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);