Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3868619rwb; Tue, 20 Sep 2022 06:01:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7e7qcsTkswqj2Rvk5MCfmLRvUhFehVvByvn2l575bOs4VkXqMIAUbmWbsDdkJvDDgX1EFm X-Received: by 2002:a05:6402:548a:b0:454:762b:158b with SMTP id fg10-20020a056402548a00b00454762b158bmr2235793edb.362.1663678897706; Tue, 20 Sep 2022 06:01:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663678897; cv=pass; d=google.com; s=arc-20160816; b=gxmMJeVV1vDOy/SFAr/waSkvT+nJrlCs0KjMLprT+ZMZvzMm8gR00IuL0wW0ArsJtj DrRDNGPeDKelAEL7N4Y6xybJMCV+y6uY9fptcaVpmkJO8DxL3xr50oG12zxRYYpk+9T3 TLju2Pk/Rs0Gs+vYJt2u5QTjorJdvZT4wud4PgFM3JFfL3opf8rp7Z3gch3g7x/Uh3xb WZpg9ojB5VEySSg3hrBYTVx4UhqgF4yUB1c2GWLZ7NIs+PmQd+M0ONzdThOlkgdiyu7y nkK8EaEu5V92tFL7F5pWZuHXQOEZqnP5fOkfbH4bjaVh43gOOscniiuiNfL7aQfUwgHj +C3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=A0VaBZnryXLhlz6qbb0dNj0wpmpf8cTaC0FwtIralbg=; b=tKiBNFWQvtcIUSdyADUAU9Ja1AfcUy9+vVqg1ks9nM6Mi83Y941y0PiO4Y5+rLO3gh xAzopnCCXILyt8F2TeZcNmwfZpgR+5CTyU5hO5cCUMXpA4cELQFVUeLpVi/3vJBlF23t rUQ2crel0nX7URmCWWGBGMEoS2rLC1iFOwhOwd3jqJr2PMTbJ7oeLWDavnku3JcKfkYJ mAsddxY9JpZj/Vw17LDuxnaY0RNn0OVD9umFFfMSoFY0E8tQyWnpKG2Etu4N0BEDUJDh /BpNqykOLc0xfeUyBeUDF344QkDtYcXA3pRhxmgt8SDSCge2ascEf0mDLw4xZkPXPbga s0yA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="MNuY/nyl"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a056402414d00b00451f749fbb4si1507230eda.411.2022.09.20.06.01.03; Tue, 20 Sep 2022 06:01:37 -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=@amd.com header.s=selector1 header.b="MNuY/nyl"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229814AbiITMYN (ORCPT + 99 others); Tue, 20 Sep 2022 08:24:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbiITMYL (ORCPT ); Tue, 20 Sep 2022 08:24:11 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2066.outbound.protection.outlook.com [40.107.102.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96AD473901 for ; Tue, 20 Sep 2022 05:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MpxwPcHsudAaWBK6JClfDH6QP8DxEQieBac8+jolfHVCWRQnfbd9uYKyoigO7xnbkUJ2/40nSRCaugsXwIyIPFzg+UoiClcqlLJaHgzUxtQeJSF/C3jx2hLRfif8L0kXhZ9NUTkriEM/1ESOsNh+HdG+jJQ4AFnrp5YVeGD22+M4MWJZMEJLkvFjazKONaeZQYAGNiZ4+X9yTs374tETCl9Kp+/GKyRQOpH49TeWXCTfgVB9XtfVCEjqhOYmSakUWsndrqGUCowDszwl/eGQd8trUczQDAGd15r/Pfbhc6RBIOeARU9MNujkcocBbexhTnTyutnxyvG3ai3Ms3upYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=A0VaBZnryXLhlz6qbb0dNj0wpmpf8cTaC0FwtIralbg=; b=KEPlgq7uriUYR6iS+wjeO+Gsr59zmhSlvnhBOCGs4ZJNYKB3Vb7Vpva3Vhn9dl8ev6F8BCwNB+mHhYSEmADyjC328ec9JCGF+H7rm4fyM+7hLA26AuVadg5LXAIqjiP/HUR5Z25iEh7FqM5mMYozJKyrInQxKHpbs64CGcXcT6sB5NZw2W0feHEwV9WzwBf68WyhQFwEmLZdL6E3F3VEJdPbs2D/GeaKOZIMG84JgzoIlqvyxt9TAGX7KtDCARHXu0KsxB4uGxOtwtnmY6SpQUZ5f5x76AuVm6rVH2ojpBPgUbN5ViWv+I42xfNqb1F61hyI/yLE5JwZ5/GXhg8vIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A0VaBZnryXLhlz6qbb0dNj0wpmpf8cTaC0FwtIralbg=; b=MNuY/nylgzOBJ+fds+aFaoFYq6ZrCGBJJBKhQ+rCF4oHbixama3zRYd/m5m+3/b4Q0luuFwSETWt3XcHkqXTfyxZQR3baaaIDSw61whLCpaNIxqwzIpYmJrfcQRCZ8bNAsThhofrnX97Lgr8OsfYcxtXf6sH5aF4jl8mIdz9Yj4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by SJ0PR12MB5405.namprd12.prod.outlook.com (2603:10b6:a03:3af::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.19; Tue, 20 Sep 2022 12:24:06 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::653f:e59b:3f40:8fed]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::653f:e59b:3f40:8fed%6]) with mapi id 15.20.5632.021; Tue, 20 Sep 2022 12:24:06 +0000 Message-ID: <3430255f-3675-eef2-92bd-4eb8be582c83@amd.com> Date: Tue, 20 Sep 2022 14:23:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] drm/amdgpu: initialize r variable into amdgpu_cs_submit function Content-Language: en-US To: Tommaso Merciai Cc: linuxfancy@googlegroups.com, linux-amarula@amarulasolutions.com, sudipm.mukherjee@gmail.com, Alex Deucher , "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 References: <20220920122216.346321-1-tommaso.merciai@amarulasolutions.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20220920122216.346321-1-tommaso.merciai@amarulasolutions.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0094.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a1::9) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|SJ0PR12MB5405:EE_ X-MS-Office365-Filtering-Correlation-Id: ce6a4f33-2a92-4ba2-e51e-08da9b030293 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ksCdRUd5eRq6Ix19m42QFXlP/dnyuztm5bMinoLT1OYQHQ/hF+phxHJ/qxJpYvLlzhQahiNECO47I7d6GrO7T9DDDtU8bU5meEUW9Fa7wXgXWNCbRQWJQxSEYDVv3VgP6NMERp+xj3DDlmg6l5gh0fc+kwBwc9D8T0pdZxiW4Jz+fmdxGbe3WZXJR/y062UHFvKh4OVCecmkJlUNRBQE/tSI7nDkg+GmycK6TdVelyPxgs0qV6SA6VmVLpV6ZiMnIwV+KnmvQUjI0WRh6r6T4s77u6ZAEmnimmaRusZMPi8But5fKkuaTCs07iMSMVkldN62bZvk0CvFid9gjJcs14WLr1rUigEKt75M9LdANcgMdjeIalJBV+iHrLUWURcLzhCvR+0Us5t6us6VWghHlwOHJsN16JyfqT8FrEcszFPu6oJNTTPWVCUIB7xaqx3grtBadt+kLpWatOk8U9hyFJxVmQcPEyXq9fSvAhxqC2jXf26utll/L0lfhmtX45OQLP4ZaVYMc51A9higxJBq/nxDCRdesw7W1Cj3oQsTIXyj0yMxKX24KlhISLCwhSoylWxpvSfChbfCCi3fdhIGrsug6Sz1HU52uwoOGj6WxR9d3NZu4lvCS/OTs25WkxlFCUiwr8Mb5h3TDYEQsqpnF89p0Yin5/Gkvl9DshzW8EYgIfjjj7wWPIyChANQR/s+c/wrvp+Rqu9Yz03/91CsimIOMkHc7CiHGa8Fps8NW5tmArIAQ9v+KZRnJID74GJh+dh2RJxhGzXRr6hIAEWORNqIhdr9RUAGoAU0bd1wDRU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(39860400002)(346002)(366004)(136003)(376002)(451199015)(2906002)(8676002)(83380400001)(36756003)(4326008)(41300700001)(6666004)(6506007)(478600001)(316002)(7416002)(31696002)(5660300002)(38100700002)(86362001)(54906003)(6916009)(6486002)(8936002)(31686004)(186003)(2616005)(66946007)(26005)(66556008)(6512007)(66476007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UFhVMWptL2hreXBEZW9pSGszL1VSODJDT1lKR0Y5bTdicEJxbDY5dTZsN0tq?= =?utf-8?B?YkFrVVBtZjgwc1h4eVhyYlo2cEt1RWVpQnhNMHc2cDdzaGlWY2FQczh4NFVW?= =?utf-8?B?WWhIaEhwTjZMZ3UrMDNtS2NGcXlHMzBZQW9ZVTZIbzdpU1JmSEdqZTBYNEZS?= =?utf-8?B?c3JmViswL2dOaFcrMndsQzdTV1BUTk1iQ3EyeWRsVTJBV1BjbEJScStobEI4?= =?utf-8?B?MVUyNG80V25ZYjRvZm40OTNra1lvbDVSQ3dXTXRnbHZHS0tJbk5XTWtHMXBL?= =?utf-8?B?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6c3dSU2hwS2RDbXMwUUZk?= =?utf-8?Q?rVeCWlWwTOsFzqTaX1QuVvSRS?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce6a4f33-2a92-4ba2-e51e-08da9b030293 X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2022 12:24:05.9300 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: GfcAtn4uxtFsiL2eg0i1CWBsqt8jdU8Nb0lyvQNLqYfb42RcYj8MwlA8jIgvgn0l X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5405 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Am 20.09.22 um 14:22 schrieb Tommaso Merciai: > 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 I've already send a patch to fix this to the mailing list 7 Minutes ago :) Please review or ack that one. Thanks, Christian. > > 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;