Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp639149pxb; Wed, 16 Feb 2022 00:39:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/sPFNaZ0TOzb0b3rilb9GJYmqT0YfyMX0T99yUUAkvf22wWXtfADfEatxRH+95zL127Ev X-Received: by 2002:a17:902:7d89:b0:14f:2fed:2461 with SMTP id a9-20020a1709027d8900b0014f2fed2461mr1552267plm.4.1645000747994; Wed, 16 Feb 2022 00:39:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645000747; cv=none; d=google.com; s=arc-20160816; b=aLXFzDRaDTladnJPEV7nV1c9RYO5oAg848iGUH4uhZMcR+S4YHJVElFnRt1BitNuMY 77YbLaVfQon5VONMyAKVUaJqLTiPWyEtTONc5E17NWqRp7sII/OZNc4JF1VhpnCimuOx 5IuwQZraT11JIL0/8Sf6NdGywoK81YoNwyOMz4bq0heT7FwUKfs7h5bI5cJYvZVGs1gh Ca6JXFAT9jNDp02XeJ0X0xmaKi1hyNVK4UGxg4whvNlqxAjkIVHpUeE6ULQwtqqk7jnG CfOk/XcaJt5dn3vhMNSfOWMKwhnB5Ey1QOjuMLenHJFcLDuK3tISG8nuAVXt+UKrdoN6 mr3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=W5uUtWsR27JUl2x2rL6r/5f5XK4WQV+fF6zBqzig0Y0=; b=FMDFdmbIn6Ig5G7NRwB0eMQOlKV13N8XRMs3LRJ2Gfw4PIvbmP/AgW/jj5YbFsIgBw FA867AXOR9Y0/stUDWVFPpeobF+rAyUtH2LLvd7IC5sZ5/9OLxGCcFBWPfL+S2tZ0fOq RqzwqJaAzkdMG4f8gylTZOMv8PDhP/O9aSv3HyI0Ug4D/uh04zhVmvJetiDoM+GLlj1j aYVfNSppLLEZdN4zQSFvWR/U1c5s5j4nT/kOlO4M/cR6RwQEaELkhYPxUG2W0Q5fPb7j 9frBcK3IsnBXmrYTcXwdV2MbF9T4BTQSB5geq6zLBo4c7X9S013kudNR/IE+G9+1MsXY sbDg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 184si33934711pff.344.2022.02.16.00.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 00:39:07 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B00E510AEEE; Wed, 16 Feb 2022 00:39:06 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231402AbiBPIjL (ORCPT + 99 others); Wed, 16 Feb 2022 03:39:11 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:36110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiBPIjK (ORCPT ); Wed, 16 Feb 2022 03:39:10 -0500 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C70FF107081; Wed, 16 Feb 2022 00:38:58 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0V4cKwYt_1645000730; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0V4cKwYt_1645000730) by smtp.aliyun-inc.com(127.0.0.1); Wed, 16 Feb 2022 16:38:55 +0800 From: Jiapeng Chong To: jani.nikula@linux.intel.com Cc: joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, tvrtko.ursulin@linux.intel.com, airlied@linux.ie, daniel@ffwll.ch, sumit.semwal@linaro.org, christian.koenig@amd.com, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/i915/gt: fix unsigned integer to signed assignment Date: Wed, 16 Feb 2022 16:38:49 +0800 Message-Id: <20220216083849.91239-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Eliminate the follow smatch warning: drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:4640 guc_create_virtual() warn: assigning (-2) to unsigned variable 've->base.instance'. drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:4641 guc_create_virtual() warn: assigning (-2) to unsigned variable 've->base.uabi_instance'. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/i915/gt/intel_engine_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_engine_types.h b/drivers/gpu/drm/i915/gt/intel_engine_types.h index 36365bdbe1ee..dc7cc06c68e7 100644 --- a/drivers/gpu/drm/i915/gt/intel_engine_types.h +++ b/drivers/gpu/drm/i915/gt/intel_engine_types.h @@ -328,10 +328,10 @@ struct intel_engine_cs { intel_engine_mask_t logical_mask; u8 class; - u8 instance; + s8 instance; u16 uabi_class; - u16 uabi_instance; + s16 uabi_instance; u32 uabi_capabilities; u32 context_size; -- 2.20.1.7.g153144c