From patchwork Tue Feb 20 20:04:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 774292 Delivered-To: patch@linaro.org Received: by 2002:a5d:4943:0:b0:33b:4db1:f5b3 with SMTP id r3csp1834493wrs; Tue, 20 Feb 2024 12:05:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU+IV52DEtW9OzPA/03jd5hlU2KHTCWy1PMoofLq8G0TSCz1pEn2+/ipMBtq6smLeF9FOYwYu4GepqqlVfnE0CH X-Google-Smtp-Source: AGHT+IFSumurGGR+51ABWn62gR5rVvBEuzKwYKXZnswE/Q3rQtPtCOwNHsqae26jJKKiES084BG5 X-Received: by 2002:a0c:ca0b:0:b0:68f:5757:dd07 with SMTP id c11-20020a0cca0b000000b0068f5757dd07mr5437532qvk.22.1708459518060; Tue, 20 Feb 2024 12:05:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708459518; cv=pass; d=google.com; s=arc-20160816; b=TKxVdVbqXwW0Ohp9s7p+1/8fNLLi1hbdoKMfbImkw2ZD2X6MKlDc9toJdkkrcbQyBu 9+zFoo4EEcNFR1IwxAkS37P+PK9eTqcpxUXY/qOcOxdjVrpWC/vuBio1cZWZ7QoDZdSD nNmuGPiQ/z0xOCdH2HhcByMfh/n9Mt/8Hzo2vJ12LbaBovhiWeMlkoULYAtmPQUJDoTF lNfLp62zjwMbpmVJx0u3cftXQdLQwIjQGOprHCtpPuY2rPm7LTXS8QUg45NuGuX6j9vE 4wG24e6mwpH4wqeg2a2nV4pgndkdUu0Dohl3Hefu0egkW929qOcJMTNp/dmcHmPzcf3H rlNQ== 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:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=GqMjbh/bGB8MFqoqD/3CB95F3q6+jxXX90AhF6bbzqI=; fh=ksML8xdgE4r21+Ts30+UtVvwBUQ0tcQT3u6xvSnKsh8=; b=0JatwFetmNBaM7JXJkbGnNoMrB/Tbi5UfdRBwiVXDXdlDnrQn6+8u9wm2q7HcT8ErV DAP3tlhwQS9Djp+wIxRWChe75OSCj5792qO6wqe4mp4OqEeg5nKQAnqgba1ZP2D7FiC5 XgbDaIMn04H+fs4KUtUYux1H0OxdN4cTLsPqs3p+uhTCnQ4qbcve3mFlo1PiVuOBZ3BE IhW2052znsepgeJlLQAtBJCbkD9tvh60qENr/3Dr3lFG/vPU6zI1tzZSSKCtS4TDAWAH 031AVXGqxYAFkrzQJxXg3K4eCrKS68GLqoKIILdQAaC+QqxhFTaGjFSxvXrmGkfAZU66 jWkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A2ugduUW; 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 r14-20020a0562140c8e00b0068d14ecdfacsi9620290qvr.66.2024.02.20.12.05.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 12:05:18 -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=A2ugduUW; 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 A7C7C3858C39 for ; Tue, 20 Feb 2024 20:05:17 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id 5D8073858D28 for ; Tue, 20 Feb 2024 20:04:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5D8073858D28 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 5D8073858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::531 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708459505; cv=none; b=tlWFo9fM7F9JhOoR35n9QFv9qEhGz3mTAKj4pZW6vkvdtI2YG8wDrRX1S07mUNId21qBcBC33JssDC8MmPaesjNOWLM/4oh1ZSY+lSWbclRLxGQ+k71AKQayU9Fx11j6je8M1vNZdVRt6UEsnOp3a7z139SNNpDO46ZwSVQJFWk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708459505; c=relaxed/simple; bh=2pcO3n3QzcLTEXoLUJhoP/rzNma3qD6133uDLGYDHWs=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=sM7Wnf3AWL6DI6CUF9t76+c+vBP7HwIhSC+9nSLqRf98wLb2OYnFlUrZUe9HrrTpj/NECeNyk0NTuMitAVHu3fivldVFyqvbATfJJYCyGg3+Org1AJxe2+m9W+e5lXMwhXZJ4eFCPyfeW85hhevA+kIqFCrUt4QJHw4kEYMSGMM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5d8b519e438so5556396a12.1 for ; Tue, 20 Feb 2024 12:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708459492; x=1709064292; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GqMjbh/bGB8MFqoqD/3CB95F3q6+jxXX90AhF6bbzqI=; b=A2ugduUWYTFRjno7rhQvMvL5dmBPgvu4QCY889eBMYinXOdGytfEo2FWevjB4+/Ntc pa5+jPX8t7OleIn/NvaY8Z9+/xjWrl32Vm3YVVMmPZrhxXlN0P+DzkywDg/FRWGaTUI2 t0KEfRR1vmRGqT5V5FKpCu/K479UqyA+YMzyg6HBLf2rKpx22jU9PDor0UI0JNx12QSU FMsfHyvhq9kjbT2+F3pt0HdqyO8d/HJ+r1P7B5b3SS+HiO4hE7TLKh9C5nRbPRXtc8t8 uo3BO/KtQMJt091XnEcGkFSVcj9n1RI2phjqNRTj3GXdOcktCnMvS6F1HeC7er/Ej7Ha 2C/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708459492; x=1709064292; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GqMjbh/bGB8MFqoqD/3CB95F3q6+jxXX90AhF6bbzqI=; b=kS2ruSvsgPWVKUPhJDVPpUEU2YFJo7oX+gjusKmQWKFBlTklyzXqQIuJuQyk8U5kNy cISGKCI6f/wKqmwNhomTcynNY5uHI7yEPcMRLBIMlRgvtitaxger2FIoovf0aKMr+sFc MMrI/DsdKNqS50A83Qj2Q3AW5GUSvjAOzYgzw47z1v9gj3U2OLiVaysufyH8RtCvOAXf OytS4m0LsbIqfFmIsYAFsoukobr6oNUPfTUevzFEoKww1CoBrljL8FOFUYcHaC+3I+ZK 6wYA9Fm7GqGBc3H0mrgzIBiR/Lcq1ds1M9k7iOwEeVu1bnjOhdf5YsYxKCRFV/u7VRqk +yaA== X-Gm-Message-State: AOJu0YxTOwcfW40zKwIMXrXZ7Voc4lhNRrTfqqoXL0ReQFXLX8ZFhDgu U48REGpen+IoqlEJ4RpWBtc298dMxRoXF/T9RhosQWocNNhU/0ayMR+5E652E5moJJfAc/tP5aX F X-Received: by 2002:a17:90a:e508:b0:299:2927:4d2c with SMTP id t8-20020a17090ae50800b0029929274d2cmr10664084pjy.48.1708459491743; Tue, 20 Feb 2024 12:04:51 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c0:8177:59a3:f5e3:1b0a:262]) by smtp.gmail.com with ESMTPSA id qn3-20020a17090b3d4300b00298f88c3e48sm42324pjb.11.2024.02.20.12.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 12:04:51 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Noah Goldstein , Alexander Monakov Subject: [PATCH v2 1/3] string: Remove c_strstr from test-strstr Date: Tue, 20 Feb 2024 17:04:43 -0300 Message-Id: <20240220200445.4000158-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240220200445.4000158-1-adhemerval.zanella@linaro.org> References: <20240220200445.4000158-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)