From patchwork Tue Mar 28 15:15:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 76144 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2314483vqo; Tue, 28 Mar 2023 08:41:44 -0700 (PDT) X-Google-Smtp-Source: AKy350Z0+dcDKzXlQcyjTx/CGf6qMk/2QZw6u6l0+9wAgYBhH1zYvnNaXYmG/K6QZ6IMpm9Dk6Z8 X-Received: by 2002:a17:906:5a94:b0:933:15c0:6e05 with SMTP id l20-20020a1709065a9400b0093315c06e05mr16013094ejq.7.1680018104597; Tue, 28 Mar 2023 08:41:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680018104; cv=none; d=google.com; s=arc-20160816; b=S9FyZuuCcDkM4VpQjV8Rzz4QW+HORuvv+Jmznh7cJzESe5SYxCgWw7AKBls3Ac7Jkk oil4qIed6RaBmcW8PMunIcGN2QlE9tJehojFkhoLHkqH8Xyix3s6aniJ7n7SAQ6wZdsw +O3hk67FffWadDzIffQ05ZskySwIe4TIYRZzbAGJ3s5kG+qxi9Cq6UrMO+k7mKiLi4uF /rPMTpgX1DT7dxvYb2768bzfKI9Jhpt65HJvFz+DuC6KMSf3URYGxgAl8J+FDjRDWWhX 69dfbOa0+z6P/2R4atNB4wsHCjD9fg3EdJQ5ItzENBv40d+cohej3kVcqYzmEgKx1E4j wDiw== 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=AV0u+88wUOBDTzD3bX7AoyyrRc9blhJMrvn0iPrSTr6OkmkbFXRfdBgadExO29Oonx cc+oiw9FSkJKYwbcnMGPv81FQLxMOwn9/huxY918QJodFn4GuHuyaDwy4xBGNlQNRPaI FvbClheckFUjlj83mPgCMj9lA/aS0hHNAyvUSdvSYUa+M+KFyfHhxiTCSVptYdAodhBg G+XVC6+jyFjXffBEX6ighrenAGCiJvixuHe4S/4hXhDnkC9J4hTBzGEmroX8AGfhZ93G 5Ip3eY1reZ1ggGOMfoNAIUUiwGaqq9/Irk6AmjFxav0eehf8eGphYqH/nK3t5DoCLaUI 1A+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="j/3o/1NN"; 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 g12-20020a1709065d0c00b009453c587601si4787106ejt.782.2023.03.28.08.41.19; Tue, 28 Mar 2023 08:41:44 -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="j/3o/1NN"; 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 S234002AbjC1PS6 (ORCPT + 99 others); Tue, 28 Mar 2023 11:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234003AbjC1PRz (ORCPT ); Tue, 28 Mar 2023 11:17:55 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00BA210A9B; Tue, 28 Mar 2023 08:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680016626; x=1711552626; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=LrADJYnQd6OA8VRZxmBcmho+KZF+ugscr5DiCLcs2Nw=; b=j/3o/1NN+V5/4aSjY9tW9Av8jUEnnkOtmkESuUjsSY2kr8gKOWKRTq3a N0ekhUYftH24pCTEqEICvdyio6uDkR/cPwUqbsgL45yR3BpGDhniqGZrz 5K5aiP7ez5Ptu19uTXJfc4NeuV1054D2JKz4PJG2pEOoAgOVz+lJmYyFa eKGJmCWaIGB/TF5v21Uw82c6Z6IwBqnlvJIEvoVKOT2f/Yvw6blF3oxFn hty/u4hA/giorkxtxfu310jj2Z8ytk8LQ0iy4I1vDwJMl/vqBA+ESL/us paj9P/ke7SaMDByDXU6heFVdUqEneC+UDTKPxrN9tuDeFmqedZbSHKiue g==; X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="403208712" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="403208712" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 08:16:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10663"; a="773181768" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208";a="773181768" Received: from lab-ah.igk.intel.com ([10.102.138.202]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 08:16:00 -0700 From: Andrzej Hajda Date: Tue, 28 Mar 2023 17:15:28 +0200 Subject: [PATCH v5 5/8] drm/i915: Correct type of wakeref variable MIME-Version: 1.0 Message-Id: <20230224-track_gt-v5-5-77be86f2c872@intel.com> References: <20230224-track_gt-v5-0-77be86f2c872@intel.com> In-Reply-To: <20230224-track_gt-v5-0-77be86f2c872@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" , Andrzej Hajda , Andi Shyti X-Mailer: b4 0.11.1 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable 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?1761626663848280512?= X-GMAIL-MSGID: =?utf-8?q?1761626663848280512?= 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);