From patchwork Tue Sep 20 12:22:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 2374 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1020B3F017 for ; Tue, 20 Sep 2022 14:22:23 +0200 (CEST) Received: by mail-wm1-f72.google.com with SMTP id c3-20020a7bc843000000b003b486fc6a40sf591158wml.7 for ; Tue, 20 Sep 2022 05:22:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663676542; cv=pass; d=google.com; s=arc-20160816; b=VSYbCc+DjTpH9nXLix6ZGe92ZHEwSTjJ8rQUPe0eO+kCjOEo/4A4c0OCdCgbJ8rCic Ng2VnUnAqFZBvBEKq+pLkWIeQWlMNJ1Rw0/i+s4MqaHIE7zqRgs3Iql+hSa6p+o4OtSA ov3lcSmPfm3Zmvpwi1ntfhU7/c9jYkS3g2QBbcJUlGu97mof3pp+HLfOAsEEKiS9Mm5c hWwTxyU21XxOM8iH8EBrDurz2Lspuxp9pRHFffr4PaDa01bSctUG4qxFW7TdVdwGuR6f UzI2/knWZoOgpo0UHuZP5yhyXSkdbEo7SSeJsYCKR8bWRyrtDE2Bd0M+YVH/Go4Fe2F6 IGWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=lnR/S7qrdIwIzTzpeRYaur6IMPdu2hObWyEkv/YROSI=; b=qhpe/2jBlY6jXMiKsbTEl+WClYPeYTW4qcfWDQWiPSCsTUOeLK5RveKpk70MVN0GKt iDapIrz7CLnjk5XmgAn2hE2fwszdmoaPAVeRQuSRoYvgqvazTl+UHJKgV/E038vCAU+E a9oUWbqE68HG2OhHmKijxvR+Dba21FglcgrlOe4kLVDBpmbPCMeiRdoOwPwhbH31huhV Nk/9oRWRlL0xowVpAP1atFWfzingfY4RZEwb+3+Ap3DXv+KpIHhJJu3OgHc4O5yH0o7n 2ytHnsCBZS3KAMdV9PigaIawdSM4uez/muu8PWwyrwfS4w29eYmCyJODAD77UUETiIuF DSog== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SLFoLkpR; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date; bh=lnR/S7qrdIwIzTzpeRYaur6IMPdu2hObWyEkv/YROSI=; b=L/1fxuv0Zpp74JU/sFXu2d+EA45kVTsjtFQMUKcBOtiN9SNg9dYBlkUILfkTLq7cAT lbYRTw9DuBh0f7UBEFlDM4F0LvTZzBc2GrQ3V876rlInrL2DTdu005zpn4ejkceYn0T8 W9ZPmnXtJlk5AzclSvXqNjVKPUYtque37Ow+A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=lnR/S7qrdIwIzTzpeRYaur6IMPdu2hObWyEkv/YROSI=; b=3FcvXpNUCEloXmscLjlXyk3yWJSOYGYrkanBT8t7379UotwkujrslPz5V/F6Za0wyc Bm0xxnQQKWTipjsfIn2Et10yeloiI/EDwZiLgmZtoN4jVYQMS2qAr1naNn26dcZRQLhS M0bJ+Q60348bOuROIgsSN0iejV6jcRSbQTlpTgBu6Wx6T4gm9slgs4vl1FW1HmUg+7wW IHzi/v7v/6X43gGSwvoAu6ssvGA6FX+jQueSbO6pXYiqBSH7+ENtrjJAGuHmMMSiWt2R KrgDpR9SkEanFm5r/kBkPr3MtHaumjKzTPGW2pDTgDhCITC/SmVJ2FVERk6O5uMfJKps n44A== X-Gm-Message-State: ACrzQf09psGrTnRIk+c8GLnzD1tm0oBkpYqNi8D0dZgyWL7yM2mttMab nxtUdFuxj0WHevViRNuYGW7YvlY8 X-Google-Smtp-Source: AMsMyM5Q60P8cT7gbuXflv982+FZYQt4uBocWAgx//PJFuLgDwGlb2mTO/swsriOPzsFUpc0XLr57Q== X-Received: by 2002:a05:6000:1546:b0:22a:b31f:6c8d with SMTP id 6-20020a056000154600b0022ab31f6c8dmr15009587wry.275.1663676542772; Tue, 20 Sep 2022 05:22:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3504:b0:3a5:a469:ba0a with SMTP id h4-20020a05600c350400b003a5a469ba0als3747129wmq.2.-pod-canary-gmail; Tue, 20 Sep 2022 05:22:21 -0700 (PDT) X-Received: by 2002:a05:600c:1caa:b0:3a8:4066:981d with SMTP id k42-20020a05600c1caa00b003a84066981dmr2248979wms.54.1663676541610; Tue, 20 Sep 2022 05:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663676541; cv=none; d=google.com; s=arc-20160816; b=qJtHjMnzsldqsHlBhwnWO6aXzsnk8LXO0Vsa7EE9z+t0nZRqghaZ/yX/bnTpFhsYZ0 C9TAACzq6tx5cL30vl3X8pQJNxtRaWsjk9WaJsb9EbZPEfiKPfI6CjrsZTIFZV8hapwM +VeB77MgBPdm7IAHXOmB80/YAMkHXcXd31FI8j9DX6W3zKBDc+BjlwjH8P2Ab8nMPAnz R0KcI0k1l3PbVlWLeBpymIq7CzwKEcRsSHZI1k+SLajQviB6nB2L8/lLC4NSmMWTUcEU jM7LEMQcZtwnVoBue5pAyAEgnALJrgYJaYxBqsx7QqgchiJ3MLQPLUmpXnDvQnuDZD4a GPSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=4SwIaD3vwte9/wOVUhii8jjHUDs7etXJMigmdSdQFz4=; b=SPht2VtPa8RAyPuNkdTqfzLWvAblmOF0G85giKT2LKgEiKMxfRSBxnZKyjgBxwQFMO PWlf0dJbjFO4vjCxHdDRyQ65XlwIyKcTXjw/PNfAVDsjers2+/qAT/0pnLnuiML7W/Bu aP4y/4MEN3By75+zulIGpVPmEcs/p0nUlyG8pmJ/f6CriiA5IAJHjaMNoNEHX3Kw95HI CzCgdf2W1QpJx22jNNJwJ+ZY1CzXE2iQC/pN+C/nx7yZpg8Kc3V6sWGLWDGbPQfmXSMo 3sOQRb4FotpKWcvPxcBlOOXDi+pNq3X5WeH6Nq03mp1+dBh4K9a6VKGdXifHQ2FuAIUx bfDw== 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 tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id v12-20020a1cf70c000000b003a53aef367dsor3168010wmh.26.2022.09.20.05.22.21 for (Google Transport Security); Tue, 20 Sep 2022 05:22:21 -0700 (PDT) Received-SPF: pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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_K=C3=B6?= =?utf-8?q?nig?= , "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 X-Original-Sender: tommaso.merciai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SLFoLkpR; spf=pass (google.com: domain of tommaso.merciai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tommaso.merciai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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;