Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6172923rwd; Wed, 24 May 2023 11:47:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ70+9qd69yDK0dG8B/38RqTGcUsSib1z2mB6JSx9w3dxruOia3GTLHCQemLlbyY+JfCPWLr X-Received: by 2002:a05:6a00:851:b0:63b:859f:f094 with SMTP id q17-20020a056a00085100b0063b859ff094mr5188874pfk.20.1684954029440; Wed, 24 May 2023 11:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684954029; cv=none; d=google.com; s=arc-20160816; b=pCqFCuDY0r+02FMTU1AFV09m1rUBv9AJLy29HVOC13UFIINO7WCRzMictLFC0C+4lF pT3vYWGkVdd7U0M7ry8+nyOyPFhvwpHrHwnPGEa7IyIh7SW88EnRqIkj1udfOPeQPuyX I9tBWrTSSG2Mb7W64v0cTpITXtoDLCSi65BJcB3XWrTdjmIBwZUhVSGz7oC+8g/ss5j/ a+Q37o3r+TIRiGY0s7p92RKpFyav+/IF7NljDMupjsYW2cPxQ6Cq959eMcilzalMZjcU KVPD8ZI+KCwJkPjPO7YK8ClrlrSOiXI2KR+yXhe0HPbkdDHZoKpVshNjPL5nhjp3fYp+ 42fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=ZwV+7z4DQVzjYmegjFOkfhhbo3bFpJgdA1zLzSBdK4g=; b=SgC90cEyxnosaKL22TeRRsY9Lvzj6Vs7yMSQWdh144y8SUskRDge0zcljZIEfZKgls aUEM/HkyaRUJJg65QfxIyM7MfVT2H4GAGfy/AcTUwmG3+k68C8CDjzTy/QxC8ICo0AYZ MADUannxo+OtzdnoHM8eLCHpr+IAg3Q3L/4HT0r79WS5In8az/Uad4/5FOSDWGmOgqE7 S9tzFotKaVMYjafWRwpNwsbPCM2ZrS43N8ajOrNQSIe9jMqIWKfehgJx/rQdISB1J1UZ eMYzNsmxprBExC9cFGqE1DV3JjzuQBc4E2QryxDHCjPjCJx6/NLNv/AWGfJUQB68GxGg qwwg== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a056a00000400b0063b86ce6813si990807pfk.41.2023.05.24.11.46.56; Wed, 24 May 2023 11:47:09 -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; 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 S231658AbjEXR6z (ORCPT + 99 others); Wed, 24 May 2023 13:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjEXR6y (ORCPT ); Wed, 24 May 2023 13:58:54 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A613098; Wed, 24 May 2023 10:58:52 -0700 (PDT) X-QQ-mid: bizesmtp74t1684951127tibius57 Received: from linux-lab-host.localdomain ( [116.30.125.36]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 25 May 2023 01:58:46 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: 3M0okmaRx3j5XLeAsUaE/DkfZWFl5CmfKZrVp7OoqgrEw0wk0brdmyrXBI5zN NpWpiQQzR4ct/fvme1WqRNqVlEyVp0V3y4gZ4FVeqTORPQSaNUNIVU8zXT0xSs7UvR82pAU piv68CfZe0vXIJ/2ZF6hgetaWwXz2z51mbzLshvXJcW7SEUTAlpAm6OUnZxrq622N8BIfRE rDg0PT1ere6yY0p/7uVW7DoOggF8vXvKxIkzNa5uthRTIAHlaGXdikv0yyDo/nKhqjaY8wB xM8nuDYA1NVSgtnqjG5mLKnJKA5+CugBcPb4GxOb/Cf9R0iXc0GBZQyP2drBsZnEkynxhd2 FNSa53ww7eKmKY/+W9ATQKkdLd8ZWHT7fLYAKgSZ0Xfzj1+35PgLCcy6Q4s3Q== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 4532114979322601860 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, thomas@t-8ch.de Subject: [PATCH 10/13] tools/nolibc: ppoll/ppoll_time64: add a missing argument Date: Thu, 25 May 2023 01:58:39 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The ppoll and ppoll_time64 syscalls have 5 arguments, but we only provide 4, align with kernel and add the missing sigsetsize argument. Because the sigmask is NULL, the last sigsetsize argument is ignored, keep it as 0 here is safe enough. Signed-off-by: Zhangjin Wu --- tools/include/nolibc/sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index 08d38175bd7b..c0335a84f880 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -935,7 +935,7 @@ int sys_poll(struct pollfd *fds, int nfds, int timeout) t.tv_sec = timeout / 1000; t.tv_nsec = (timeout % 1000) * 1000000; } - return my_syscall4(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL); + return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); #elif defined(__NR_poll) return my_syscall3(__NR_poll, fds, nfds, timeout); #else -- 2.25.1