Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1918978rwb; Fri, 11 Nov 2022 02:18:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4dS+8JXMAop8nn/VY6zSfT5kIrc6c+IxqQRbNpjh/2bQEYDErX5U+Bh/HF8eDCej6FYB5p X-Received: by 2002:aa7:cf08:0:b0:461:a09b:aaf2 with SMTP id a8-20020aa7cf08000000b00461a09baaf2mr827080edy.328.1668161924708; Fri, 11 Nov 2022 02:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668161924; cv=none; d=google.com; s=arc-20160816; b=w7QnaGp1HEl9+PLCxUzGSHeWZGOWoPrmf6ruVSqohgh3r8kFVLwbWoRK34i522lU0z IREu21Dm2WwddzHoWGmk8Owm2mKVRFrwLy2XbObEfGy2BwkmhDImiDmZmNJhb6TtVIHV G9ml/bUIr0gPtT0zTmJp2AjHKPHDh6N+n0GxR2NwWSdkN2H5K0Rc7kQbvBnbQr+XZoQj tsmCfqQcyHqoVakrW9iVs2F5Qc0W0vdVhP0Vrj4YHPTvB/3B5SGK3ewrAgCUJDHpaPrY jNXKahJuIWYksllhydUE0Tupu4qiuqhkd0Tw7Zi7gzeq3t5nYLZUOqBjIypJsQxQIWRa 0/zw== 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=8S7EkBMZF9LBjYex1AP5PShQ/PPkvnqHk4FxVvqRGjQ=; b=U4nIZYWtWlj2dVHk14STAAo623mgbiSnJP+/Jeu5QLi/VJYKoJF72j4gFRtqW7cPbQ YbX3NmQrPD58kdp7FD1Ly2D3PjOYnBT6dlRuRQlx/FbVVCkKHiKMEwRMrNK5EWFGLMin 6vvJkzCaz6RWtXE30KTNe4VA6B9XZf4EWP1krO4U3dJ5FrZC2/UXgxPy7mIOUygGaSws iG8YxIC0UI4lle0JBhxTh89Sbwop+trFgQvsRNEY2bdZ0Sxo70PrTOh0KAbTg8fmZTwH eMaQ2FPOvRLAgqcPpLQw2zOIJT1wJ4HZ74zar5GM50lksomNKjTsqs9CmN6v9OZhdvpU mqKw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a50eac9000000b00458b42ff246si1895900edp.236.2022.11.11.02.18.22; Fri, 11 Nov 2022 02:18:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233764AbiKKJsk (ORCPT + 93 others); Fri, 11 Nov 2022 04:48:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233656AbiKKJsR (ORCPT ); Fri, 11 Nov 2022 04:48:17 -0500 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0891E006 for ; Fri, 11 Nov 2022 01:48:16 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R691e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VUX1Y0n_1668160086; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VUX1Y0n_1668160086) by smtp.aliyun-inc.com; Fri, 11 Nov 2022 17:48:13 +0800 From: Jiapeng Chong To: bskeggs@redhat.com Cc: kherbst@redhat.com, lyude@redhat.com, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] drm/nouveau/svm: Remove set but unused variable 'priority' Date: Fri, 11 Nov 2022 17:48:04 +0800 Message-Id: <20221111094804.103459-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=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Variable priority is not effectively used in the function, so delete it. drivers/gpu/drm/nouveau/nouveau_svm.c:115:24: warning: variable 'priority' set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3028 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/nouveau/nouveau_svm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_svm.c b/drivers/gpu/drm/nouveau/nouveau_svm.c index a74ba8d84ba7..2b1f600ed723 100644 --- a/drivers/gpu/drm/nouveau/nouveau_svm.c +++ b/drivers/gpu/drm/nouveau/nouveau_svm.c @@ -112,7 +112,7 @@ nouveau_svmm_bind(struct drm_device *dev, void *data, { struct nouveau_cli *cli = nouveau_cli(file_priv); struct drm_nouveau_svm_bind *args = data; - unsigned target, cmd, priority; + unsigned int target, cmd; unsigned long addr, end; struct mm_struct *mm; @@ -136,9 +136,6 @@ nouveau_svmm_bind(struct drm_device *dev, void *data, return -EINVAL; } - priority = args->header >> NOUVEAU_SVM_BIND_PRIORITY_SHIFT; - priority &= NOUVEAU_SVM_BIND_PRIORITY_MASK; - /* FIXME support CPU target ie all target value < GPU_VRAM */ target = args->header >> NOUVEAU_SVM_BIND_TARGET_SHIFT; target &= NOUVEAU_SVM_BIND_TARGET_MASK; -- 2.20.1.7.g153144c