Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6687470rdb; Fri, 15 Dec 2023 05:57:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBtGl5wS/fZDwPycEFkiHljqyjoOWRvjtwXWhVe5eOvpqnGDRMRv8SWAMdappUxvKlqEoH X-Received: by 2002:a17:902:b683:b0:1d0:6ffd:e2b8 with SMTP id c3-20020a170902b68300b001d06ffde2b8mr10373561pls.82.1702648645086; Fri, 15 Dec 2023 05:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702648645; cv=none; d=google.com; s=arc-20160816; b=XW2rQzg+JhLld186NPqqdUO6bUZlHLZ2BF9z4td01NIb2UmSFn6N7JAsapdgOthUX3 Uigvoi+Y9lBmb3u5p1kTU667WAhmprEpspQj0d7/tDtPY230qbfTRJiV+3esLk1rSJxn VIpL0jpBEhL8QJD7/3Ci3LDNQWoC0VVdu4e3pPi22wMHffELVd0JsYJtF1rtTafhi1AX LwI4ySOcYI1jcd684CgB/zyyGTqj2O+AS5YTjy6dYieBivoCr0OONzHO5YmeHkBovChu 0tEMu87jCYTbW6N3b6+hEqOuWuZzrEqIF15pwY/6HuaLK6kkiJ4dl5PtznhXmLNReHj9 mL+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=oot/uuXIlD3Xv3TMsTVDoq60j4EieeYO8YsvbG6uh8Q=; fh=LrzVOhTAwD+cBo9TSquPJyeKSNG6LE3kkUXvC2SIuio=; b=eNFXHNzlDeaKy+BJMit/oLPaJ1yZQXWCjiO2noG4TjDEgcY7MV7AYzAYNMUKif3voK nptJDuk4nqNYSC4N2clzmFN8zz2bSia8NTMidZUd/VB0OVH0BYupEaKF/HZfLGKGYdDO nejGpacqb80rLTDJKDPlmWJDsn+ExDaDyZSzRkSV2eEwm3+/wS9TxZzQPOkolGNGSYj+ BOXFqZhRbn9x57kgRvRM5PI1vxA5O5FS2HX571ETTxHj1DzP/VRTgZYTmyyvXi300LeC AhoJurdAZ5kua/8d4/dPyeKMFw/C0H/1duBCpaPCpcGD2X5pyoYnd8Adx5hCK1YaMnRD E4hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1051-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o6-20020a170902d4c600b001d0d312bc2bsi2165951plg.377.2023.12.15.05.57.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 05:57:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1051-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1051-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0FF5FB21C9A for ; Fri, 15 Dec 2023 13:57:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA8752EAF9; Fri, 15 Dec 2023 13:57:14 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D739330642; Fri, 15 Dec 2023 13:57:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ghiti.fr Received: by mail.gandi.net (Postfix) with ESMTPSA id 57C80E000F; Fri, 15 Dec 2023 13:57:03 +0000 (UTC) Message-ID: Date: Fri, 15 Dec 2023 14:57:02 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/5] tools: selftests: riscv: Add missing include for vector test Content-Language: en-US To: Christoph Muellner , linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Albert Ou , Shuah Khan Cc: Philipp Tomsich , Andrew Jones , Evan Green , Xiao Wang , Alexandre Ghiti , Andy Chiu , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Charlie Jenkins References: <20231123185821.2272504-1-christoph.muellner@vrull.eu> <20231123185821.2272504-4-christoph.muellner@vrull.eu> From: Alexandre Ghiti In-Reply-To: <20231123185821.2272504-4-christoph.muellner@vrull.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: alex@ghiti.fr On 23/11/2023 19:58, Christoph Muellner wrote: > From: Christoph Müllner > > GCC raises the following warning: > warning: 'status' may be used uninitialized > The warning comes from the fact, that the signature of waitpid() is > unknown and therefore the initialization of GCC cannot be guessed. > Let's add the relevant header to address this warning. > > Signed-off-by: Christoph Müllner > --- > tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c b/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c > index 2c0d2b1126c1..1f9969bed235 100644 > --- a/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c > +++ b/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c > @@ -1,4 +1,7 @@ > // SPDX-License-Identifier: GPL-2.0-only > + > +#include > + > #define THIS_PROGRAM "./vstate_exec_nolibc" > > int main(int argc, char **argv) You can add: Reviewed-by: Alexandre Ghiti Thanks! Alex