Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp375119pxm; Fri, 25 Feb 2022 09:37:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4B0NL1CrAfYFIB3/C9vnxxUi28phA92yhE9rorGdaZ2qZ0sGGoVebxZwI8oEjcn3SE08Q X-Received: by 2002:a17:90b:4ac7:b0:1bc:fd05:6ea0 with SMTP id mh7-20020a17090b4ac700b001bcfd056ea0mr2402636pjb.75.1645810673582; Fri, 25 Feb 2022 09:37:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645810673; cv=none; d=google.com; s=arc-20160816; b=VYYV9Vc+3DexHlF5d8xAKmmz7qrsi0p1UK/JWaefpVm9oDoCKnokBy2oFNWykX80OC jVWZ4MQatB8dTL+WqM0bIUHpEWcAQ1piOoRreSXUr+K1i7ghqDaC8astju8cXWd3blUt niJoWgROAe0CuQn5VLfJEYMsG/7fctGHRZUa8wmRJ/xKaM0X9/O1iGd7xpXHRlMjsM04 M0XRDSfn/G9pVbTqC+UI/KM5fdIosJDk3UFKWbnPqlrb4ioIM9jIMD8VFylolU0ZfWpe GJLNjfhZhabMYWpuDV7usMdyT73JpXJdH2Qh+rJrLyO6a94aYMlxcCuSmwJVu6WXEpIy r0wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wR/eoNNXBj1/My2CpHa5GPCtjCjqHRpXOZvwkOgYW9w=; b=C6nM6ckHr+Cf/fxP/YdZAF5fMvQMt0WNTgdTrR/mOTQbcz+XEBPBZGK0cGdYhyyjtk dgcnG6+dePvaY72vAeQNkyy1AAbUgXkWsLDg8INsGDP7gAVhmcMRy04baDleqw1Fx0o9 trAUwAXDlUPJQ8Wf4YC2xLwv4/OvVDMNRgxBXnkRNgBvYDUkKgp5u0Uf2OPLUVBCxAan l++tkxSoxOwl6OJUWR0/JCejNXG+2+yYtAOZJQdoRBuZcAcdNBPnlLcKHMcpVmCjumt/ xmdlZ3N1ql07LC4aNs3/1QO/y5iD5RiisquktpbfZQ9/bB87d6o5H1mXOFcWH4S077mn olMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EcyjzPZs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020a056a00174b00b004df7b9e0ebcsi2356179pfc.368.2022.02.25.09.37.35; Fri, 25 Feb 2022 09:37:53 -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=@gmail.com header.s=20210112 header.b=EcyjzPZs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242832AbiBYQYQ (ORCPT + 99 others); Fri, 25 Feb 2022 11:24:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242946AbiBYQYN (ORCPT ); Fri, 25 Feb 2022 11:24:13 -0500 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB2F8CA0C9; Fri, 25 Feb 2022 08:23:40 -0800 (PST) Received: by mail-ot1-x332.google.com with SMTP id j9-20020a9d7d89000000b005ad5525ba09so3922794otn.10; Fri, 25 Feb 2022 08:23:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wR/eoNNXBj1/My2CpHa5GPCtjCjqHRpXOZvwkOgYW9w=; b=EcyjzPZs9kbSzl+d2LBUySEw7Ulmassdt6Hh8IuhHTLAjFK8LAnbRNuhMjYtBURuh7 U7PUdfm+Nkp0qFhqzg1Ssk5rv1jeROeHDT3B/Is+J9tVvn/HlyFYUEwmU1gySUuSDRnW KhjooY1BXTbxKsc2U7OKjXGvpb3oTkPdCkJ8JwhN1CJCTCn3eDDP6P7tBmPpKPaUKdxz LWkFNyBxpuCT6w5i7QQxQBxuD74obmTKjekinxfe5gHfP5xsvdu3ncX302OFGRB7X9xe IhOwETkKItOo8RFeRy77h4kQjtFMCklL7r7EtlhMWxZuhDmlN65X33dxeZ6vmdNc6rPT xK5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wR/eoNNXBj1/My2CpHa5GPCtjCjqHRpXOZvwkOgYW9w=; b=JFKdroa08qDMwRTcWgsKM35KIXrG0ZscDVyZ8g+/yply1JG5zob5R7t3nONbgSIhHU N9PGZyswTMoJDtaqpluDExkovxwHWGUkZ5IsoNBBscF75uO/pFaN5+A1CaFYnQvsIaMG 8vLuPSKN0QXHfWs8Ya9QEEF+/4ILWZIgcVKz90FmdpFnI592mRokvIYAVEfbc+HCwQWX PCp/PQa6xQSlwNUTWin7laSf9i75bvnh4kOCEPIg57mc+bzponlopc4RL9smeV0nftGG w69Qu5vXa9i5X7cowH+80fWbtOl2dnIVxPnME0BHC2yzFU6fKAeN9Tlqb+VY0PMK6l+J XCgA== X-Gm-Message-State: AOAM533RasaSYzkPqdTxdNBmfba7iAiUI3ywvecLG4gBQwIs4x/uPE40 IqjAyZYUIja9p1TqzKD+06IW8G1mZpN10wxhv+fl139p X-Received: by 2002:a9d:5a06:0:b0:5af:b5fd:5b72 with SMTP id v6-20020a9d5a06000000b005afb5fd5b72mr2906065oth.200.1645806220062; Fri, 25 Feb 2022 08:23:40 -0800 (PST) MIME-Version: 1.0 References: <20220224224316.149704-1-colin.i.king@gmail.com> In-Reply-To: <20220224224316.149704-1-colin.i.king@gmail.com> From: Alex Deucher Date: Fri, 25 Feb 2022 11:23:28 -0500 Message-ID: Subject: Re: [PATCH][next] drm/amdgpu: Fix missing assignment to variable r To: Colin Ian King Cc: Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , xinhui pan , David Airlie , Daniel Vetter , amd-gfx list , Maling list - DRI developers , llvm@lists.linux.dev, kernel-janitors@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Already fixed. Thanks for the patch. Alex On Thu, Feb 24, 2022 at 5:43 PM Colin Ian King wrote: > > Currently the call to function amdgpu_benchmark_move should be > assigning the return value to variable r as this is checked in > the next statement, however, this assignment is missing. Fix > this by adding in the missing assignment. > > Addresses clang scan warning: > drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c:168:7: warning: > variable 'r' is uninitialized when used here [-Wuninitialized] > > Fixes: 9645c9c9fb15 ("drm/amdgpu: plumb error handling though amdgpu_benchmark()") > Signed-off-by: Colin Ian King > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c > index 3136a9ad2d54..bb293a5c6fd5 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c > @@ -163,7 +163,7 @@ int amdgpu_benchmark(struct amdgpu_device *adev, int test_number) > "benchmark test: %d (simple test, VRAM to VRAM)\n", > test_number); > /* simple test, VRAM to VRAM */ > - amdgpu_benchmark_move(adev, 1024*1024, AMDGPU_GEM_DOMAIN_VRAM, > + r = amdgpu_benchmark_move(adev, 1024*1024, AMDGPU_GEM_DOMAIN_VRAM, > AMDGPU_GEM_DOMAIN_VRAM); > if (r) > goto done; > -- > 2.34.1 >