Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2476391rwo; Thu, 3 Aug 2023 09:54:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVb0n1hTCF2Wrbh3wgcl/FDsjZE60SCSFxDh8sh8FpUTm/0gcDAtHYMPW0E9R5thE4OxL4 X-Received: by 2002:a05:6a20:6a23:b0:13b:b4bb:8b18 with SMTP id p35-20020a056a206a2300b0013bb4bb8b18mr21368967pzk.1.1691081683224; Thu, 03 Aug 2023 09:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691081683; cv=none; d=google.com; s=arc-20160816; b=0++ilJEDYTAESZtinzH34OqAqY1Vy/0qsvxfg23I4BZY2f+bTn7twxor7A7WrMTX1H hw3WW7rdR1eUtytpGqh+1pJL5uXCiLebVP/OKmc13FKB1HvCigAKuqPZJMSuZqErK/qT uBlwhqHBOmLXcmS0oO/SqADLlwdPTltvD2NHu9B77FrXYc+yn+tjJg3aqTtoA5/loh6y FMj8e2eort2FXYxAktceyoWJuUBUHRIsDLa0a8GEAIEHvALsB+woP4pa60cLe02xZNMv 166XYdpAgIV9/ON8XGaZdGuzY7+M7QWMNaT1E2Ef5bnOzOhedZlefyWJctvlM118fu79 lMLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:content-transfer-encoding:mime-version :date:message-id:subject:references:in-reply-to:dkim-signature; bh=+a2fB54AlyWkzUEDuBDciIZSmupcAmDbViWZx3iiKns=; fh=TC5sDTEzFPsBZBA7lDho99yyKkJXpXbq5sOcRNhmoWc=; b=faIbR20ZpAsn6w/UKwFLnIkZTl3W2bsQM2fcQPTfSrhSJP3G5iBIY7AUVTw7oe7Oju 2QbkUjhU4VklyTB+L6awAnmxVg92yrpYUl56mX+4tdzTc890tOzGRCatdUmIBknIQcLy QrktHyc/AKm2VB2FijsdZCLDs974IcaUXvMam4lzpQyPudXr7i3qdbuHJDLyOjH/rKzJ 7ncSX7vsOWqDLBIqzXB+aJ2Bwx9WBWh/IEKC86GbUJHH3QCUqROK3x36aPzAW7ky47gV udmE+6K4dc1ZpTKe5ga4rY+5woU81dQBNL/ot7lhB1lCw8kLDK/8zGt4VDWtpI6Itnd0 l1qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b="Ia16/oll"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a6540cb000000b00543cca81bb9si163976pgp.329.2023.08.03.09.54.30; Thu, 03 Aug 2023 09:54:43 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b="Ia16/oll"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236937AbjHCPN5 (ORCPT + 99 others); Thu, 3 Aug 2023 11:13:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236908AbjHCPNx (ORCPT ); Thu, 3 Aug 2023 11:13:53 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E879E77 for ; Thu, 3 Aug 2023 08:13:52 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6873a30d02eso727866b3a.3 for ; Thu, 03 Aug 2023 08:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1691075631; x=1691680431; h=to:from:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:from:to:cc:subject:date:message-id :reply-to; bh=+a2fB54AlyWkzUEDuBDciIZSmupcAmDbViWZx3iiKns=; b=Ia16/ollXxBwMbhUVSz6hrN1tzd3JyT9/2JfyDWqgU811+gqlY2/F4J61JC5EvCmui A5diJaWmzz0zpBQIJhvmum3sz+EmiFTCz9CI5nCYorYmWtKYoiFDs/odDi0QI3S+2/R3 1B5dMWtoqJDTScq0i6GhqmVryrks7vHhEDz17rWrQCpuIYcEYV69peyUjAKxvnrqnqra FDDSvBA1edVKuGCjMkgOmmqdi/MsJvjKYisoBApyRESUgn8Jl9eabBXcl8eDVt8qE0WT oAKuNEd6CZ1rldGMm6us9LM5dPZZm/bINtvp0r+ssEuAnQmKF4TazYbtaQDBo0Gh1sQL fy6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691075631; x=1691680431; h=to:from:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+a2fB54AlyWkzUEDuBDciIZSmupcAmDbViWZx3iiKns=; b=mDTqpa1BbW/OzQof5wLn7rA0hp+dUwRWfrj+AIDQsp5q/0yofHD04SuXcijuYdncKW er4G1GdJ7UZHytb+2t4962bea3R7HCDVA2EydquKONen2InLPMj7r7XSqIErAwoCwMoz pnBF/D9geteLLzC814UCSwXnaK4FQ2DPeLGMZfoKTJQ0IBUpjfOd3MMCK4sZ+Ozid4kc dyfYjW9k5iunRp09GJGRChvrlhMFFi4L0o4eyDWju/1Nsw/IjZxJFmcIPE07lnbCj/zD NHv14+GmufcQVS+ue/x4oTNMe4qT8oSJl2QIXYqzwoZtEfrHC16l1ofedOOTyIlpnM6c nQ8w== X-Gm-Message-State: ABy/qLbXU3j+eRFYkEqY4Uo0ukSX2GMp1c9Cnbc9JXJpsiamDHZM2FON SOkNnCauCIAqr5E/QTDB/U0POL6tvu17dtyX7fk= X-Received: by 2002:a05:6a00:b8f:b0:687:472f:514a with SMTP id g15-20020a056a000b8f00b00687472f514amr11383383pfj.2.1691075631160; Thu, 03 Aug 2023 08:13:51 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id v13-20020a62a50d000000b0066ebaeb149dsm7176947pfm.88.2023.08.03.08.13.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 08:13:50 -0700 (PDT) In-Reply-To: <20230713115829.110421-1-alexghiti@rivosinc.com> References: <20230713115829.110421-1-alexghiti@rivosinc.com> Subject: Re: [PATCH] selftests: riscv: Fix compilation error with vstate_exec_nolibc.c Message-Id: <169107392503.27633.2191837906397435034.b4-ty@rivosinc.com> Date: Thu, 03 Aug 2023 07:45:25 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.13-dev-901c5 From: Palmer Dabbelt To: Shuah Khan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Andy Chiu , linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Ghiti X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Thu, 13 Jul 2023 13:58:29 +0200, Alexandre Ghiti wrote: > The following error happens: > > In file included from vstate_exec_nolibc.c:2: > /usr/include/riscv64-linux-gnu/sys/prctl.h:42:12: error: conflicting types for ‘prctl’; h > ave ‘int(int, ...)’ > 42 | extern int prctl (int __option, ...) __THROW; > | ^~~~~ > In file included from ./../../../../include/nolibc/nolibc.h:99, > from : > ./../../../../include/nolibc/sys.h:892:5: note: previous definition of ‘prctl’ with type > ‘int(int, long unsigned int, long unsigned int, long unsigned int, long unsigned int) > ’ > 892 | int prctl(int option, unsigned long arg2, unsigned long arg3, > | ^~~~~ > > [...] Applied, thanks! [1/1] selftests: riscv: Fix compilation error with vstate_exec_nolibc.c https://git.kernel.org/palmer/c/25696067202f Best regards, -- Palmer Dabbelt