Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp527041rdg; Thu, 12 Oct 2023 12:33:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFaL29oPIQ++2WFOzHz3aU37wbzm2MLbDnMsOiXCjtXev9AS8kiWl9gjf4v1FJ/iOk0n8F3 X-Received: by 2002:a17:90b:fc6:b0:27c:edd5:6137 with SMTP id gd6-20020a17090b0fc600b0027cedd56137mr8351872pjb.25.1697139179858; Thu, 12 Oct 2023 12:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697139179; cv=none; d=google.com; s=arc-20160816; b=kCWKk4xV/Bw0BYNNpPK14kbm43sGOCDztw+o06dp3VyMxrSe73+PjmdGUsjtZBpk2Q 7dc7Vx1ICUDe7k8Mm4/8RGxut3IH4FJP0j2NCo12HAV9J8FJK6+wu+X8gmz3UN52y/oY uOwi/VhIdHmnwreE563ojEDAENPnCF7YdJuK7wmM5D8hQlLVDp88C4/1fYy6TIgZDDnU 1r1Qgu5fneTVUmQZVvR4PfoJkP4YZqBzyC3RhufLGyCC1wUboPCZPtHu55Ku9DQSnvdB 1Dv6jPl4dV9v1zRiwf0+Uwlup6gIK9SJ8mZUQ3h0cJyCuMtusHp2/SsL3By/bdyUhnW5 lGPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gulQrEnFkQ9V3fcNzcV3QkFM4mS4BpMDgoDNaxCoprM=; fh=k8Nnb7T1YpGZyibtethuHU9YEVyK2n9TvS08DyuCN+Q=; b=GpNuKoJUqzegB5xONyRubqnrfMxBcUUd7PSlz8OPIYBPFvSpaPuPPsIogHxWF3jTv7 4qkxpuOM9aiu6U9DnouutaEbKi5OofrwOKmeJRbEJe2TbNsQrVQ9OtOd4kCP728cpyfw YaBsNDS5y7nwEWzwFxUD5n5NiNVYo4IdjrV7CkPY/oh2lt6WAC8nft1wOaAqAXyGpXQ8 h8SKitEYJCmh3bccY/X3FWhdjk12yxzkZGwO5OIIwJNkkWB4gb/OR1eVHCGW4qhVzAD9 U3TM620s/yx1uzXQw8m6t9k3XdpjOJ5QMJaVFeTzojoXc4ej/GlWGtsQ0zWeDT6icTiV xYhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CzyPPZ4E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s24-20020a17090ad49800b002776d9770d6si1504635pju.69.2023.10.12.12.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:32:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CzyPPZ4E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1C8F3827007E; Thu, 12 Oct 2023 12:32:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442237AbjJLTcx (ORCPT + 99 others); Thu, 12 Oct 2023 15:32:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442249AbjJLTck (ORCPT ); Thu, 12 Oct 2023 15:32:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E058DD for ; Thu, 12 Oct 2023 12:32:38 -0700 (PDT) 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 12:32:59 -0700 (PDT) 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