Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp680948pxb; Thu, 17 Feb 2022 12:17:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJynkX+E18i+UlVDf5YtA0YwqaFKk1RPnfKQY+eJ+IEMlht8hRmVVPZ8lya5ypKaN+bnqaRA X-Received: by 2002:a05:6a00:244b:b0:4c9:319e:ecb7 with SMTP id d11-20020a056a00244b00b004c9319eecb7mr4656386pfj.58.1645129078179; Thu, 17 Feb 2022 12:17:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645129078; cv=none; d=google.com; s=arc-20160816; b=BSXRTF16V94aw3e4TjVq7cqPOHedWCnKnhe5Fm4I99JKhhWP4N068/C7uPOFYIcmlD HW3xDbWKo2X5jVlkyKVfWUdQG79VaNSezD1QEg/DONdMUO5cONW3ntHpIw/QiPMAoucc QzxSzTu2QT5XIcy8tSupdByOT3hPrU4q3p0BlhrvMvJPRPYPGJlWzcHJNkWhiKFSJUzB +46mVtmhddoTGMYj5ykUwnlrxbm4D99oz+9xeJfa6poACBHABVhG+QdoRiiGrWCajxgC tgWMigB3bkGWXBtm3Nwkiblcd92WjKThfCiXVGX+xEIRAih1Le9m7hnUnSdNH9J9YPCf yJGQ== 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=QkTxI0t0tvnwa+5nsxA+XjW/S5jC7rJ0zg4yNjQEkOo/WeV/S/OZaM1vh+LGrAwWX4 8vR/3+HCNvsoTBiWsncsWd8CUU4Z3YbLNEnX6cEjgwrAxQHEcezssjCZW5FAlaEweef1 jwVfdPuE5SbSCv5eLSiVo5Zx2jHdijpL1yGt4+/anJ2KR36L6UCoWmdNysWjknq07kEY 7oAn2sHX+ymHJNVT8QTQm2KHY/SDCSPStyRWZsnSvxR89GVFcNO5cat+Ho94EhAooL3w xucHVJkqNB7171g4wBmmknin17K1IqKlJk6e7UJ3rKBcWj2qoi49vbcS6VJuM12WwWcp 49/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=k7n1NVkg; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm12si1797108pjb.48.2022.02.17.12.17.41; Thu, 17 Feb 2022 12:17:58 -0800 (PST) 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=k7n1NVkg; 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 S241793AbiBQOFx (ORCPT + 99 others); Thu, 17 Feb 2022 09:05:53 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241685AbiBQOFh (ORCPT ); Thu, 17 Feb 2022 09:05:37 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17542177E69; Thu, 17 Feb 2022 06:05:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645106723; x=1676642723; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JVXkGTgMk0f0BZi0vzDMp/6U04Z0YVjDjG523a9A54I=; b=k7n1NVkgrT8E7qws0+BgxEVoOXRlQVwNTsiN+z6eOadcul1OTULWga6Z MN/VDEe/n20zqErMkxkJaaoI5zaP+YF0xYoBfwYuwBYPCge7UtXjfIyL3 01TL39gI0PMKeG880Fe9p9Kc3F2odT0/im8q/RkVdS4wSX41SZEDshZ20 +hSVF7Olw7dMlMX08kwmm8jYYT+qA3hWTrCrN5vkSlB6S7W8Ns86fbgt5 XKJ2wAciS9tYj0pH8cChxfxntOuVnYVzDmSt7nXcgXbx7m8ujAx9sPKBh SS37OvGEf/DYZu5ef0ZD7gWbUrk3a2QXBHv44FmFIR9uOnIcUqcN9HByr Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10260"; a="231501917" X-IronPort-AV: E=Sophos;i="5.88,376,1635231600"; d="scan'208";a="231501917" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 06:05:22 -0800 X-IronPort-AV: E=Sophos;i="5.88,376,1635231600"; d="scan'208";a="530241404" Received: from lab-ah.igk.intel.com ([10.91.215.196]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 06:05:19 -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 8/9] drm/i915: Correct type of wakeref variable Date: Thu, 17 Feb 2022 15:04:40 +0100 Message-Id: <20220217140441.1218045-9-andrzej.hajda@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220217140441.1218045-1-andrzej.hajda@intel.com> References: <20220217140441.1218045-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=-4.5 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 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 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