Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3835640rwb; Tue, 20 Sep 2022 05:33:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yF5lIL6tw0om8mz/uRq0mfwKtLgSsTAnz2DRjUhk9MijsqMjS9rZU07DCy1BPRrshpsf6 X-Received: by 2002:a17:902:7887:b0:178:5e8a:e84e with SMTP id q7-20020a170902788700b001785e8ae84emr4679532pll.64.1663677209426; Tue, 20 Sep 2022 05:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663677209; cv=none; d=google.com; s=arc-20160816; b=j5n10YUoiQOj0aXiU7AIzv4FxPCgPBwSIdElkwcULnpQbIkbFJ7HLpsVmOg8NDD6Oe dHpNWAl5Mnbqd7y5OW2iabqxVDdVr9T/xHjd67HeoQTvKArDlocI3PAZF+D3Tn4dRdtk pUIVauaN+fRYU6GwcGnsJRIuVFxSteJEZ57qm6PydLMj+3x83mwOsouz3QCAwWkp8avS +BaJA299OR9VTRO4pVfk46Du6h1BmzzYGxcBQFjTfq9gR8FYIEMguYUDajmFqf4jsy6O yDsmRYM7q0dL0jqYiIv7CCRjPaTBx2Ga4AN0MCc5NFjwdPlEc0G6OC/xATeD9BzkJSu+ oX9A== 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:dkim-signature; bh=4SwIaD3vwte9/wOVUhii8jjHUDs7etXJMigmdSdQFz4=; b=xvcOkLrX32JbMQ/c4JhJYAT2jSA8KEcOaECo1AJiUK0Q0LtgogBBcV2hkkNpjdUram tv5aqaGbqtIqUf+Su1dXooi795XVSX6wns6s9R1HQ0cWC05dlGAcSNJQTBTENkbfU4q2 Hkkh3ErUpXU8NznLW+ShOvZJOEHw+8+duyap5/WzL5OH6upwKnVzPtksOeXkwqWNFgUQ 9jAgcxxV84SfaAm0ZhxfCYTfAotIOsXL6LryVqieCo5Xqg02MHGHf6siyd+4qIxDJrNN LzBwB4Xu0FJKMsx77bNccs6m5ASUnUKMcZaLm7d0pyaPtSP0d70MmMsXzGkUZaB3q+Kd d+wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SLFoLkpR; 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=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020a632c0f000000b00434c18fdd78si1432737pgs.765.2022.09.20.05.33.18; Tue, 20 Sep 2022 05:33:29 -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=@amarulasolutions.com header.s=google header.b=SLFoLkpR; 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=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230122AbiITMW3 (ORCPT + 99 others); Tue, 20 Sep 2022 08:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbiITMWY (ORCPT ); Tue, 20 Sep 2022 08:22:24 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BECC973901 for ; Tue, 20 Sep 2022 05:22:22 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id n35-20020a05600c502300b003b4924c6868so784172wmr.1 for ; Tue, 20 Sep 2022 05:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=4SwIaD3vwte9/wOVUhii8jjHUDs7etXJMigmdSdQFz4=; b=SLFoLkpR340kKkW0YrWlEfAhG5dD3fKjX3yfiQcJ1RBvRf3qDsOJQmWuFi8It2zGOO 4xWD+xaLSG2zcyyiiRX1wHCG/QPvLR6pyaxkUQuhrKBIwqqWleODmA3zmBCy2s7jSOpd vvFkpw0tqn83ArzebL3ogqtG6JaH24hPhvgb0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=4SwIaD3vwte9/wOVUhii8jjHUDs7etXJMigmdSdQFz4=; b=reYktBKJA1N3KIpOQTEZEuQE9phJ2j8YCugDbG3RNCzdHK9KukeLJmwBcKopx5pJuU 9ukwuvO8ZcxxBy2KJ7Bs5qzr8LtUxgka0LNYAi3bTCxSasW5itg0wbGkp9BJRr5KsBJR 01mjI7Yr5IwVqEUSisXypJQQ92b6+xi8jB3WK1p/O9OkiUnygBGKVbDetQN+vki9NLpw Bxrn1kGPuWRLQFNwtQv60q4Nwizv98vfZO/XTz48TpiUtxsWCx9DTCAuUDUZh5xTPfiT s6TXppygY7lXTKTHJkW/EmgMu29hMI9L1X5gdhuhy8ncxiwcOFwISsG3A5GZcgldE4Tf ctew== X-Gm-Message-State: ACrzQf0Kb6mzoEDA9NHYPQfw3Ia1YrT3gdtTv4fiNteTQTWVb3ImKzJ9 fftOX/g3ByOP0rFBd+rmq69Arg== X-Received: by 2002:a05:600c:1c19:b0:3b4:c1cb:d46d with SMTP id j25-20020a05600c1c1900b003b4c1cbd46dmr2203248wms.172.1663676541365; Tue, 20 Sep 2022 05:22:21 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-56-12.cust.vodafonedsl.it. [188.217.56.12]) by smtp.gmail.com with ESMTPSA id i7-20020a05600c354700b003b4cba4ef71sm13124268wmq.41.2022.09.20.05.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 05:22:20 -0700 (PDT) From: Tommaso Merciai To: tommaso.merciai@amarulasolutions.com Cc: linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, sudipm.mukherjee@gmail.com, Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Nathan Chancellor , Nick Desaulniers , Tom Rix , Andrey Grodzovsky , Luben Tuikov , Philip Yang , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] drm/amdgpu: initialize r variable into amdgpu_cs_submit function Date: Tue, 20 Sep 2022 14:22:14 +0200 Message-Id: <20220920122216.346321-1-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 The builds of arm64 allmodconfig with clang failed to build next-20220920 with the following result: 1190:3: error: variable 'r' is uninitialized when used here [-Werror,-Wuninitialized] note: initialize the variable 'r' to silence this warning This fix compilation error Signed-off-by: Tommaso Merciai --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 58088c663125..efa3dc9b69fd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -1168,7 +1168,7 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p, struct amdgpu_bo_list_entry *e; struct amdgpu_job *job; uint64_t seq; - int r; + int r = 0; job = p->job; p->job = NULL; -- 2.25.1