From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Authentication-Results: gnuweeb.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=CzyPPZ4E; dkim-atps=neutral Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=139.178.84.217; helo=dfw.source.kernel.org; envelope-from=srs0=mts8=f2=paulmck-thinkpad-p17-gen-1.home=paulmck@kernel.org; receiver= Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gnuweeb.org (Postfix) with ESMTPS id 1CE13249ABF for ; Fri, 13 Oct 2023 02:32:37 +0700 (WIB) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 63C7761F46; Thu, 12 Oct 2023 19:32:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A36CC433D9; Thu, 12 Oct 2023 19:32:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697139156; bh=2zdrvqX6eHp2JMB1DsMmil9YMiuDQoFujLFcSnnPv4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CzyPPZ4E06GNvCU+7Yw/RWtIhawKMkoVDmgt81iT2PJm9QPFQ8V37kceQKMrl1GRQ Q6HO6X27QUUn7MWHqyhm/JXMt2LaDOvw/G/dtO6jrcB6FvG7xg38Cskw2QPfkvtlPX kqUdA4lg3F5QNu1siONTAgulDzFUsHDlWJFqQaJxVOxM+LeyVMe8E3rPYZ/Gp2A9ra rD4Q/H+nws+TJuidWpAooFFT5BJ+xjExzlCvd1TnFR0nSPejtWH5wkVxUyyC9lws1i FscHPgY+jDwZKMVBCu/ZQIwn9w8aNcfLnrLNX90PPuGUBaaqGlV9w2VXlxelnzibIB DuZ52Ibg+82Cw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 4F6A2CE0C3A; Thu, 12 Oct 2023 12:32:35 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu, Ammar Faizi , Alviro Iskandar Setiawan , Willy Tarreau , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [PATCH nolibc 08/19] tools/nolibc: string: Remove the `_nolibc_memcpy_down()` function Date: Thu, 12 Oct 2023 12:32:22 -0700 Message-Id: <20231012193233.207857-8-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: From: Ammar Faizi This nolibc internal function is not used. Delete it. It was probably supposed to handle memmove(), but today the memmove() has its own implementation. Signed-off-by: Ammar Faizi Reviewed-by: Alviro Iskandar Setiawan Signed-off-by: Willy Tarreau Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/string.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/include/nolibc/string.h b/tools/include/nolibc/string.h index 1bad6121ef8c..22dcb3f566ba 100644 --- a/tools/include/nolibc/string.h +++ b/tools/include/nolibc/string.h @@ -39,16 +39,6 @@ void *_nolibc_memcpy_up(void *dst, const void *src, size_t len) return dst; } -static __attribute__((unused)) -void *_nolibc_memcpy_down(void *dst, const void *src, size_t len) -{ - while (len) { - len--; - ((char *)dst)[len] = ((const char *)src)[len]; - } - return dst; -} - #ifndef NOLIBC_ARCH_HAS_MEMMOVE /* might be ignored by the compiler without -ffreestanding, then found as * missing. -- 2.40.1