From patchwork Tue Aug 1 05:30:08 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: 129021 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2482053vqg; Mon, 31 Jul 2023 23:42:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlG3fSL+G2UIVVAaDmYptoSU+aQZXM4lGmMtlPgy0eiD4gEj7ZgB5B1qLoUZ7Pgu1Ji6nWW0 X-Received: by 2002:a05:6358:989a:b0:134:c4dc:9e28 with SMTP id q26-20020a056358989a00b00134c4dc9e28mr2569405rwa.17.1690872162404; Mon, 31 Jul 2023 23:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690872162; cv=none; d=google.com; s=arc-20160816; b=fQ1QVsr8GLDQZ5AWS7p/JlGuXkniDtosHpfXCg6TBO0dU/ibG7cuVd4xjp1QyNSDl1 V8Emx1sO5FVCWByPTEz9ZMj6w7lxoElOQRuiov480zetxdbe2ZyykOAuWdrFG98L9OJY I/EGd/X5hHTGLImjNInhXanTTQoMRm2C9MvK2BG9z7JuMRru7RLmseG1PIpOkTc81D9J soL7JvaZGwfGlLaMH3PG4w4K1cudHZiJ5S68jqXeakb2a2ojWWs00UWD3iLP8/lhz3wm hp7JAvHEtDWAQnvbFjRkQEOX7LYh66nqz++/CPZInPhxP8jIIa5Vy7/nzYvCxFa3sLiL XPBQ== 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=2pN0hU1hCqucuyS62P/IMJb2sy4J0ikzNhe7ao/GFyI=; fh=UZfhiU2pgwvZdBOe9fFEhnfTQX0/6KsvXKQubWsfhik=; b=WyBd2vnzdNyU4jMIWD+C/wryeLRQWhvgcMw7AfVYfdXCC1aFW1rT91L1C2yJeG2qxf 86jAQnJhAmVD5tuiHRwFYYgEO6Ssib5SPfxcbas37Rw26ZfKMroGzroypB1z6WUjDmWX KtQCFfU2cjfziQmOVdbE2UldCdHeEp2uyTenSDckMpF1GAliq7AnJsao0MUF+P/pKO3F TNvuL2xX7KGlgUZVyxcLefHelxW3j9F/3QO4K/hIIY5PGgA84wMUVOHp1ycTjuRJylhH +ZP5CkRudDQzXvlrcGo1aRvtTYZE81wjK/bMEwAHvvaHQSWJXBqz0bu6mqkV9hakAtXh n3gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=YsSJpqZ2; 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 l131-20020a633e89000000b00563fac747f8si8309653pga.770.2023.07.31.23.42.28; Mon, 31 Jul 2023 23:42:42 -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=YsSJpqZ2; 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 S230119AbjHAFaU (ORCPT + 99 others); Tue, 1 Aug 2023 01:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbjHAFaS (ORCPT ); Tue, 1 Aug 2023 01:30:18 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656171FC9; Mon, 31 Jul 2023 22:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1690867812; bh=LvmZQIdIvROwNs8BBjCvj4x9lJTSLnFE4blB41Pgq2w=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YsSJpqZ2f/fuBOe5XDdxzjkeIbjaFCdpFWaAu5aP0JM1Si7mfcjWZfrWbsLy/RwkE IqQbfH5hv6EuqnFt1Vjn/qfWgkIZ3BKmJjTb1aRzu6vZmecUEiYGoSdhmWleRCM0hP dcemk/ArZ0C72K/RL43mX2eoBpZZr2Ktas9VEDeg= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 01 Aug 2023 07:30:08 +0200 Subject: [PATCH v2 01/10] tools/nolibc: drop unused variables MIME-Version: 1.0 Message-Id: <20230801-nolibc-warnings-v2-1-1ba5ca57bd9b@weissschuh.net> References: <20230801-nolibc-warnings-v2-0-1ba5ca57bd9b@weissschuh.net> In-Reply-To: <20230801-nolibc-warnings-v2-0-1ba5ca57bd9b@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=1690867811; l=540; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=LvmZQIdIvROwNs8BBjCvj4x9lJTSLnFE4blB41Pgq2w=; b=ptgAfvbtUCQspRY5LLdaICU9RvnVqt3pjEXxvYG8xyULrsdoSM0Affxkp6csANNKE7RmW659D skYac7bVfXmBbbdEyqrDJoUF6P0IRr+6/wl87piN8r0AphhAFb5BvnD 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,SPF_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR,URIBL_BLOCKED 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: 1773007968641608520 X-GMAIL-MSGID: 1773007968641608520 Nobody needs it, get rid of it. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/sys.h | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index 8bfe7db20b80..889ccf5f0d56 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -738,7 +738,6 @@ static __attribute__((unused)) int open(const char *path, int flags, ...) { mode_t mode = 0; - int ret; if (flags & O_CREAT) { va_list args;