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=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1693403874; bh=cVbN3EplFTRxMSZG3fc6WmDpp7wPvxcyeQRTe1ZY1DE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=C4/5OtCGlK11vOW17d/9djJmGqftgbW7cqqBhK5B+Hp3Kupkb/Oq0Wo9YG0qDir+Z jU9kc5yu8OAXlSz0o7OpHIf6GhpL3YRkzrOznNDqWX8m8MXBv6+MVHb647Ubhdl/DP 78lQ49/teaCfi71H+Iq72NJ7ip4IruqPUIGjZgQSSDcQv9zNGRk4N8w9ExpBKjSdhH 1YY9CHrjvyYDE7k8w5HXpmIsdF9rzrDwTpkWAlS8Exukhtv6hbJrKkv6TTEMhusMwB 6vxQYQSECRQ5VkarrwFQqa++b463eDCSGsWWcypllDDSmGbz+um7IGEOeiDRaf5lOQ XQ9HhSz9MVctw== Received: from localhost.localdomain (unknown [182.253.126.208]) by gnuweeb.org (Postfix) with ESMTPSA id 5545924B331; Wed, 30 Aug 2023 20:57:51 +0700 (WIB) From: Ammar Faizi To: Willy Tarreau , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Cc: Ammar Faizi , Nicholas Rosenberg , Alviro Iskandar Setiawan , Michael William Jonathan , GNU/Weeb Mailing List , Linux Kernel Mailing List Subject: [RFC PATCH v1 4/5] tools/nolibc: string: Remove the `_nolibc_memcpy_down()` function Date: Wed, 30 Aug 2023 20:57:25 +0700 Message-Id: <20230830135726.1939997-5-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230830135726.1939997-1-ammarfaizi2@gnuweeb.org> References: <20230830135726.1939997-1-ammarfaizi2@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 --- 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 3c941289d5dd0985..b0d7d8e143f61741 100644 --- a/tools/include/nolibc/string.h +++ b/tools/include/nolibc/string.h @@ -41,16 +41,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. -- Ammar Faizi