From patchwork Fri Feb 18 23:00:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 1594889 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=vhBU7Nnm; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K0nH43bdvz9sFN for ; Sat, 19 Feb 2022 10:00:48 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 563BD3851C3E for ; Fri, 18 Feb 2022 23:00:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 563BD3851C3E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1645225246; bh=UwSl5F/+jGD5Lek068A+DKAcQPOymRIwNbIOEmGjLAA=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=vhBU7NnmYGd7vcmajPv2LQUrlZ1hrSlQ34canTxK77/pNtwMSpxcz4PRiLTSRaDY/ 003TnIAu5cgJbJQEfEMWDfUjaN9ic9kY28fR7tV+FNcBbEcYqpUka52ymVS9iOyKy8 PZeVi2OpWZe4EN+M5NnyUveSavR3f/cL3vl7ztVQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by sourceware.org (Postfix) with ESMTPS id 403A73858402 for ; Fri, 18 Feb 2022 23:00:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 403A73858402 Received: by mail-io1-xd29.google.com with SMTP id e79so9336267iof.13 for ; Fri, 18 Feb 2022 15:00:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UwSl5F/+jGD5Lek068A+DKAcQPOymRIwNbIOEmGjLAA=; b=x7ns86Vau2niLqy5Ay7+1TkrGbGZZCzVpcxahqSYv8NgalEAjJrxV1UPypyYW54Rdx 3Xx0/y0hb6yyRpikBdd25Ysg7i8DhhWw1qn61fl1/MS8vY9Y8AJBmGgpzgSkkn02XvT2 2cnyHbSYDH+Anl60z5DPtCsfMUhOrPPtdbbC2w/dLAyUqF7a6F9mgRAzQbZgK6TrzEs+ i3xwc5nB0cdsQzsaPKtlotjeLwffb8a9Y8CKgZ/TrPc03SM8v3cV1anzwdeIDdeDlO+/ 7xEW/bLXFLu1vRz5Yvi2Ac+5vr3nFj5Cmezu0eYAIlkahtGh7Hz6pakMUIIldt9/9r5m FrhQ== X-Gm-Message-State: AOAM532/0wPfdXYQ2vXHaPqrKgLrJ5UWM5sXT+5EovRQouK9NxyY/tmg cTgbSIlp98afyHFs0O8BkY4KVDUrHLg= X-Google-Smtp-Source: ABdhPJzP5PuYetfkRDrMM0FX/GsZJt+UPurOBc8cjL69CX4M3b/7633JgtIGglNTk/kx3gU7JVKJsQ== X-Received: by 2002:a05:6638:4110:b0:30d:1e9d:d01f with SMTP id ay16-20020a056638411000b0030d1e9dd01fmr6805560jab.166.1645225231474; Fri, 18 Feb 2022 15:00:31 -0800 (PST) Received: from localhost.localdomain (node-17-161.flex.volo.net. [76.191.17.161]) by smtp.googlemail.com with ESMTPSA id p13sm5268509iod.51.2022.02.18.15.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 15:00:31 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH v2] x86: Fix TEST_NAME to make it a string in tst-strncmp-rtm.c Date: Fri, 18 Feb 2022 17:00:25 -0600 Message-Id: <20220218230025.3505625-1-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220218225901.3485727-1-goldstein.w.n@gmail.com> References: <20220218225901.3485727-1-goldstein.w.n@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Noah Goldstein via Libc-alpha From: Noah Goldstein Reply-To: Noah Goldstein Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Previously TEST_NAME was passing a function pointer. This didn't fail because of the -Wno-error flag (to allow for overflow sizes passed to strncmp/wcsncmp) Reviewed-by: H.J. Lu --- sysdeps/x86/tst-strncmp-rtm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/tst-strncmp-rtm.c b/sysdeps/x86/tst-strncmp-rtm.c index b50c11e8d4..300bc8c281 100644 --- a/sysdeps/x86/tst-strncmp-rtm.c +++ b/sysdeps/x86/tst-strncmp-rtm.c @@ -23,12 +23,12 @@ # define CHAR wchar_t # define MEMSET wmemset # define STRNCMP wcsncmp -# define TEST_NAME wcsncmp +# define TEST_NAME "wcsncmp" #else /* !WIDE */ # define CHAR char # define MEMSET memset # define STRNCMP strncmp -# define TEST_NAME strncmp +# define TEST_NAME "strncmp" #endif /* !WIDE */