From patchwork Mon Feb 19 20:45:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 774109 Delivered-To: patch@linaro.org Received: by 2002:a5d:4943:0:b0:33b:4db1:f5b3 with SMTP id r3csp1345642wrs; Mon, 19 Feb 2024 12:45:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUdAOSQInUa6Fcpt5LoCAL92rHYB2a9P51dNnqPQulFmJU9RQICvn1wj5Rr/9UaCMDGiZbAsMT+m/VIkQOrkDvr X-Google-Smtp-Source: AGHT+IFfS095zktuQYv8RGCVNRemoLp0nYbsp76crLSkwhEcBCvIXlDeipQtNs/imHw72i0PPdb0 X-Received: by 2002:a25:b313:0:b0:dc6:d22e:ef4c with SMTP id l19-20020a25b313000000b00dc6d22eef4cmr11551358ybj.17.1708375526112; Mon, 19 Feb 2024 12:45:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708375526; cv=pass; d=google.com; s=arc-20160816; b=bp2gVDZz4jgCsvurfp7G7Akk2V/KE/VWJvUSN4etSlgM5b4tjF5AUbZb+PWUhprBWF bhYUNVNylgB1DCYDfeblbl8Agjaoc9gDZ3aTaLWbeJlSnwXY81Eg916/qX2BQU8EyF/C Ews2FGzx8jo3/c5qVUFv4NqTd8g7WaVoVx3CXRAf/Ul4UAaFykYCgG19x3BYFbhwyF/I 2hNt+NlGDffQYb1tBjUIDha1Km8oM7vHTJ0vNO1Ktv1ngDFcwMBhQ7q6x4G/ZMVIEU5f T52m/SBb+W/n0eTAdGcvb+rpVLOqP5FjL7zchBwRz5Tpz/jqkCTkjOe+ZdVE72iTrAuS lRFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=GqMjbh/bGB8MFqoqD/3CB95F3q6+jxXX90AhF6bbzqI=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=rfSLW6E0x1Brzn3TSjxTmzA7BX+iYmK9u0yXZPWqDP62OpSjK2ZZl6VaFROvH1sHbb faLy1Mz8IhM6L14ad3+Oy6DK4dkD3v+zJ710nGXSkn8cbhWdFfcv5A+PlILqu/olA/Z7 EubK5spRIgI398H9NqNoXDN1IZhqa5PXrGu6r9H+gRXb2kdFfQpci7K8DbmlckEyuUy1 HwZ94W1L/8aoDmOXwbC4iKzO5Cjw7wDK8OtIJQ+DpBlXrozwnG1HE66+9cYDanhawCXi GgbywEjCVVEBi/b5zwiGqnI6y2E4dnnHUQnK5OOkF0UjHYhOuvYBzw9CvOQ6RCJ7cQxD kf6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vqHMS+Am; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u3-20020a05620a084300b007872b2bd9bdsi6948738qku.325.2024.02.19.12.45.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:45:26 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vqHMS+Am; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9C4C33858C74 for ; Mon, 19 Feb 2024 20:45:25 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by sourceware.org (Postfix) with ESMTPS id C51733858D35 for ; Mon, 19 Feb 2024 20:45:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C51733858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C51733858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::52e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708375511; cv=none; b=XTTelJ9BWTVdtJlXA7dOuee1X8cfIm2VZ7WvP02vjsZq6/F8QWXoWWMuAonUyBBl0K3XDLMNzV+f74hJi8GqT7FXdW28v7m9YbRqpJkq660Nk/OI21x5Wo3wMMwePABh1I0fE/IpRkJfQZ9lx5hNWRIEppbc0ljeo/zzGwpA41g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708375511; c=relaxed/simple; bh=2pcO3n3QzcLTEXoLUJhoP/rzNma3qD6133uDLGYDHWs=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=my7DOBZ7rR+HpeoiEc/G4RZ3XkIHXhCpY9tb29/wsQq2VPilW4YJO/O5ZshOYeGW6pUzGhsECniELIiQ6R1QzDZVRjSno1OoAr6Yr2Q3X++h1dYUBbZ1LLf6TFQCV8R2Os5KtSCu7eWVBZR8mN2LVmSUDOH/QR1Pa/Py4XKFGrQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-5d8b70b39efso3363307a12.0 for ; Mon, 19 Feb 2024 12:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708375508; x=1708980308; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=GqMjbh/bGB8MFqoqD/3CB95F3q6+jxXX90AhF6bbzqI=; b=vqHMS+AmGqAZqJZOAovPVyNvcxtSkBi1w2b0fpAveGmEx+9QeO3JXavnVdpsed7UgT nSelfqfE6wrEvOaYV52WhTi8r0FI2NxsMxR2P/LI+LsUMmE4MSNqyfFlRpd3CMUWi8yH MVyChSxMJ7TPVywFq0jmyceLj1PrkRxPJs0FFBDehe9p0inmJd/eh8k8niMQuIRwrWKe peKdwjmH8IOa4HPG+CKVdA5cnyfLZ2XsWGZ2yUtrhX3hLdiXkVFP83ioMAmZVA5TURbK 1AWs60AD/JckzymAd4PcyBwn0bW2CIJtUKAN3Moq7g2Nmyql+d+LMul/bnluKY7wIBl1 YnzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708375508; x=1708980308; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GqMjbh/bGB8MFqoqD/3CB95F3q6+jxXX90AhF6bbzqI=; b=CNX6sNc6pHrUMG8WSz+DCN3Bhjm23MTFC1MYGMDqhbU960r57cnND6ge6Ktn9UlwEL a52uJ38fuzBNwLzx2KjnuGNj3/CUxXQC3iu80E1NrbyZx8RaVqTpJYWDGA1OqCZ3bdaH 3kz7bZI3eHZuB0mSK46XfQ5eXfNdbdnLD1pnPh2DevFfh2iixBm5s/hx8hWsYAD1WfpV HrCXhpGZDsvKwXEBQLe6QNqpVgNrpjA0xRnyjNVc2lWW+aVUCYl3PRmXAs+Pmb4z9LEl vLt0qmyEcDC//u0/CUKDTr2sLqL5l6q7oliqOG5uDDhmEJkOLa4lLtVSB+gVN3pTWE9F HqVw== X-Gm-Message-State: AOJu0YwG3uyMYbAu6C9mT8xLlPbw53GH2QqcGgvIx0BKkJRNsRM8bD2+ z7OnVn3slKjER+PEV34fyDiMOUrjOcI8zO7m4WnnpBfqIWytAgv731BuyagexJdrp9wsTc7RxuS z X-Received: by 2002:a05:6a20:9f45:b0:19e:488f:692d with SMTP id ml5-20020a056a209f4500b0019e488f692dmr11987437pzb.7.1708375508200; Mon, 19 Feb 2024 12:45:08 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c0:8177:87f4:ac6d:3153:10b3]) by smtp.gmail.com with ESMTPSA id i28-20020a056a00005c00b006e37bedbcbdsm4369802pfk.115.2024.02.19.12.45.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:45:07 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 1/3] string: Remove c_strstr from test-strstr Date: Mon, 19 Feb 2024 17:45:00 -0300 Message-Id: <20240219204502.3095343-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240219204502.3095343-1-adhemerval.zanella@linaro.org> References: <20240219204502.3095343-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, 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 server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org There is no much point is checking the generic code if this is not really used by libc. --- string/test-strstr.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/string/test-strstr.c b/string/test-strstr.c index 4115f7d2fd..05d0b7c98c 100644 --- a/string/test-strstr.c +++ b/string/test-strstr.c @@ -21,11 +21,6 @@ #include "test-string.h" -#define STRSTR c_strstr -#define libc_hidden_builtin_def(arg) /* nothing */ -#define __strnlen strnlen -#include "strstr.c" - /* Naive implementation to verify results. */ static char * simple_strstr (const char *s1, const char *s2) @@ -52,7 +47,6 @@ simple_strstr (const char *s1, const char *s2) typedef char *(*proto_t) (const char *, const char *); -IMPL (c_strstr, 0) IMPL (strstr, 1)