Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1029853rwp; Thu, 13 Jul 2023 05:14:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlHyQQBoPaMyV7E3dyCSN5brqwu7sOrX+qaa6L1LbMy6GmPKS0tUPo3os5sjJF7UC+uP1a46 X-Received: by 2002:a17:906:5197:b0:993:da0b:8780 with SMTP id y23-20020a170906519700b00993da0b8780mr1413555ejk.1.1689250477382; Thu, 13 Jul 2023 05:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689250477; cv=none; d=google.com; s=arc-20160816; b=O/e/TYTvFAhAVOYonG/ZF4RoXEHPnueX09YCi155mfjzJbH0DnRY9C0g2ZqqY8Uyin /Qm00P5wX7p4v7dPUU3Erj1cUiGGoIjX7av/l01b6Er6TiYuuRYkOaFo5Mq91uwW4lmL i76D+EcR2/lTqTlaZB+NFkXn1sex2Yv8WDYBJia47wXwPO/mvIBJbhOyg7KOMsPhvxCm VxTn9J43fMgDvKn/WC9Jo8JbvIh/P043kkCLTXRsSRM3SisIRk1iY87LkqYshodIfRON 4PFZ6zEWqRZDM17/BnMdiw8HxCXnZqnszSZKhUcR8hPxTVXdUn/qyIHgUWrdGd5sCqr8 /VRg== 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=nBLkkw1G6WSJr1HvvBebHePyOgAnthAqxl0kKfFGkRY=; fh=4QJyPU5ON8IaTVZvt3rLOGOmIMOx932f97AR5UwyFgw=; b=YOur8gCCE5YMKXpgvoVlsG61voR842nYwqLJoj8wM35IqiWGVjm/8ka2FpNt7oPIbv HvVe0F8S3RClnVw9TK92jutp8G9955HFNO6Gni/5+P5OmP0Ja4xQ/waTZAOIfib/b7qc E8IS3joPZghhm0daX3gvT1C/QG1VAer1DJBh7D/GjqX7AIfXeQxO4OOre6aSZtc8Jbjb R19l1v1ohC2/BjyLkHTqlX18R3NzVuy8GeTyJHhiH8vqP1fDnY+GcZ12vXTOlwA0C/y+ C3G0HWWm7zytFB7BdfEVOaGH2JZPAQ8sjJNmbq0R1QNY7J1do8y8N2/Jdx4EwmZeusS8 ADog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=YprnJVut; 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 w10-20020a1709060a0a00b0098e38b3b7e3si7270008ejf.793.2023.07.13.05.14.13; Thu, 13 Jul 2023 05:14: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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=YprnJVut; 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 S233957AbjGML6s (ORCPT + 99 others); Thu, 13 Jul 2023 07:58:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233695AbjGML6o (ORCPT ); Thu, 13 Jul 2023 07:58:44 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E3741FF0 for ; Thu, 13 Jul 2023 04:58:33 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3141fa31c2bso726488f8f.2 for ; Thu, 13 Jul 2023 04:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1689249511; x=1691841511; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nBLkkw1G6WSJr1HvvBebHePyOgAnthAqxl0kKfFGkRY=; b=YprnJVutMhoiweGKBDkkZSmbZayXXBuZ0/GI8RFNmiLty3opDI4z1QzMtCVecjtgw/ TVZ9QWZaDwUoB/JKREJ7H/HZ7fMsu9HxP96g/gXK8bcS6kUj/+hn0BBvtiq3HanIRfRP g/1v98zt5DDuKQpr7Rsqsx7XrqWF6/9V5h4EQ/BNCN7CbBYYUuqwkq+Pjo6KkHGCpFly 5RCssvuBkdbwHDkq562tto5dnLMnnTpSFhMca9Xxtwjd3okewrzOUejXH2jjfTTdAYHQ R7M4GP/m/IxWTsHAJ5tpSdZ0yYXTDMsYBIHA87/mLAWszrG3xVVzWbULrJhVjGgwca22 fmGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689249511; x=1691841511; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nBLkkw1G6WSJr1HvvBebHePyOgAnthAqxl0kKfFGkRY=; b=EQcMZ+231AMOIqG80/blvOyRmGB5wDhz6bgwAYSs2ZGcJ+SjkaiDr7qeIbcd7Dc7VX +CjOQRmzj9By+t7+0/jWLrceJVraT43lJrSp3pqhp3BiDQJZqZsVLSTps4eCUUB+xp+b 6Ia4YZuxrRaGamkABgyQTMdfDT/MH9LoENtkTGmohIh6mMi8ANEHXt1c0nCDrx85wGKK zvRDpfZVSXUkEXCsy6vEJ2YvWvF7uKU1mapR6CJNlSe+q9hN2aW1B+n8VjpHl2uNBUGA H4b07xZD2qH3Db1DwkzbX+qfPJUuWFv4EpVk9IlLOwesH5W2ZWpr0PqN5i7GGQqVEUhJ N/bw== X-Gm-Message-State: ABy/qLaE2DHdJSioyKSOF5ZDHdDuALdmfwwpS1T1fBoKxHiDJeHQnqAC zg6n5xEbZ3Sizdlk1078bWK8mw== X-Received: by 2002:adf:e98f:0:b0:314:220d:7 with SMTP id h15-20020adfe98f000000b00314220d0007mr1219828wrm.45.1689249511576; Thu, 13 Jul 2023 04:58:31 -0700 (PDT) Received: from alex-rivos.ba.rivosinc.com (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id r8-20020a056000014800b0030fa3567541sm7767115wrx.48.2023.07.13.04.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 04:58:31 -0700 (PDT) From: Alexandre Ghiti 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 Cc: Alexandre Ghiti Subject: [PATCH] selftests: riscv: Fix compilation error with vstate_exec_nolibc.c Date: Thu, 13 Jul 2023 13:58:29 +0200 Message-Id: <20230713115829.110421-1-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 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, | ^~~~~ Fix this by not including , which is not needed here since prctl syscall is directly called using its number. Fixes: 7cf6198ce22d ("selftests: Test RISC-V Vector prctl interface") Signed-off-by: Alexandre Ghiti --- tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c b/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c index 5cbc392944a6..2c0d2b1126c1 100644 --- a/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c +++ b/tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: GPL-2.0-only -#include - #define THIS_PROGRAM "./vstate_exec_nolibc" int main(int argc, char **argv) -- 2.39.2