From patchwork Thu Aug 3 07:28:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 130354 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp973731vqx; Thu, 3 Aug 2023 00:38:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlFqIXwQizuL60fdEmbDDZE5zMwdg+0ITrJzsW38eZo0KwnSiQrrFAjfAVQld3rUgmaqW4mK X-Received: by 2002:aa7:d702:0:b0:51d:9ddf:f0f6 with SMTP id t2-20020aa7d702000000b0051d9ddff0f6mr7442130edq.36.1691048310432; Thu, 03 Aug 2023 00:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691048310; cv=none; d=google.com; s=arc-20160816; b=MK1OBnSW5G/ndjxDSDegDC6KQn3fyeLzlqrKRGy7KQmWCARaXri8++FVFSB5FwCHfc bjCOKwvSUhRplG/7oKJZsPlYGwAyCGxaIO3c5ycTEUEswINGhU+3jxierpKlNdVpXywu 7i/vLloGnc4AT1JYBC6D7cmvoLjhu5MO3ZdoeGfvx72WLhKbkvsg5m3FL77wJorlCjDR XkbibX7OM+5+0CElGZGoep55msYlyC+vMBkKs6UEnhS0zDJUQZcIZ+bHXy5F+t358TGY lnt+l5C0vpHHUVNr6NDkPq7Brdjl1AdOrZAqMCsiQ3Q+5EIeVI3tCN5kX6Sc1U1GDjkj Cuhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=EdnnfZVFKQq/ovD4IVy+3yWQoRs8iDXFjU3BJ40qQPk=; fh=UZfhiU2pgwvZdBOe9fFEhnfTQX0/6KsvXKQubWsfhik=; b=YXfRmjFeq6Qqof9LLTv5JRwqiYo9S4K8/oGR9oPC+YpdR/fdENb3i4UI5HrszjeSdR 6kVFykr1NCfUGE/oTBy2nlePx82a4lZYy/o26XU2hIneztAn0Eew5XuDCQ56v5HDPcM0 2igoYCXex7Lfzj9Db7rQjUEma5C+cn8HAVCjSFsqztk/tDgAr/vAN+SVAXBXD39/gQhE JHOoRBXyhzKPngaD7mEPoH+VVTPCGDdJUAZMeDaNqSkjz+CgcORLKlDsjCVXFBKFoqLQ LBie5N30FNuR3ENfl6KQlrn9+c73dYDlHoEe2+VHYLFvdHJpJh6uOXTJZvZBUm4FsAYF SCGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=KHa0PEaH; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a056402517300b005225a609054si7907303ede.291.2023.08.03.00.38.06; Thu, 03 Aug 2023 00:38:30 -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=@weissschuh.net header.s=mail header.b=KHa0PEaH; 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 S232546AbjHCH2z (ORCPT + 99 others); Thu, 3 Aug 2023 03:28:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230523AbjHCH2w (ORCPT ); Thu, 3 Aug 2023 03:28:52 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70471187; Thu, 3 Aug 2023 00:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1691047728; bh=Dq8jbZTyhLjjfrXzMVP5XMUcw7zpYJiDlah00ed3ZfA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=KHa0PEaHkP20XujShvLhET41cKqgvBcTEeUXjNBa8W9xU864D9jwX8k8zpM4lloLJ r5/aPAG5R6IpbYdNPuTcxm26O04yEo6+fX2ELLcgqxtgCRhBb3/TUafcnJ0JKQHI0C Wlwo6qz4SyJKj5d6xwvbM6BDPSz/UivF/GShLT6U= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 03 Aug 2023 09:28:47 +0200 Subject: [PATCH v3 03/14] tools/nolibc: setvbuf: avoid unused parameter warnings MIME-Version: 1.0 Message-Id: <20230803-nolibc-warnings-v3-3-bcc1a096ae02@weissschuh.net> References: <20230803-nolibc-warnings-v3-0-bcc1a096ae02@weissschuh.net> In-Reply-To: <20230803-nolibc-warnings-v3-0-bcc1a096ae02@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuan Tan , Zhangjin Wu , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691047727; l=810; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=Dq8jbZTyhLjjfrXzMVP5XMUcw7zpYJiDlah00ed3ZfA=; b=y/x5UwahV+LCwccwghbOr9hgOU+M1lJT3l4QTOWofdAIStedWSwlXVZEe9082mVNHVjngX1QT m1550V64flcD7+j7YdZAfdVtF5nsfMp2kAWLHEJ6HoA5x+0i2Nkhfyy X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773192673427543767 X-GMAIL-MSGID: 1773192673427543767 This warning will be enabled later so avoid triggering it. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/stdio.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/include/nolibc/stdio.h b/tools/include/nolibc/stdio.h index a3778aff4fa9..cae402c11e57 100644 --- a/tools/include/nolibc/stdio.h +++ b/tools/include/nolibc/stdio.h @@ -356,7 +356,10 @@ void perror(const char *msg) } static __attribute__((unused)) -int setvbuf(FILE *stream, char *buf, int mode, size_t size) +int setvbuf(FILE *stream __attribute__((unused)), + char *buf __attribute__((unused)), + int mode, + size_t size __attribute__((unused))) { /* * nolibc does not support buffering so this is a nop. Just check mode