Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 018CEC6FD1D for ; Mon, 20 Mar 2023 15:51:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232213AbjCTPvL (ORCPT ); Mon, 20 Mar 2023 11:51:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233317AbjCTPtq (ORCPT ); Mon, 20 Mar 2023 11:49:46 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FDC21715A; Mon, 20 Mar 2023 08:41:22 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1679326880; bh=yB2bNNpPwty3egJ8yVVXOGLcmpOFHoeuVC5kDwG8ohI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=eFkBuK/S4F2SEkh7vacz64gEtABXZiqYJQTWItjyffou0X6moh2Edq/OQSwtgh4Ri d7v6N98AKifzaxjV9Fr10n8y8O3SkKDbLazTDZXNVdCwrj3KIqQPJOIXBxaECQYdTd IlfnIdqnMdNAXCk/czAfGHc9X2Up6qhFDIac8HSk= Date: Mon, 20 Mar 2023 15:41:03 +0000 Subject: [PATCH v2 3/8] tools/nolibc: tests: constify test_names MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230223-nolibc-stackprotector-v2-3-4c938e098d67@weissschuh.net> References: <20230223-nolibc-stackprotector-v2-0-4c938e098d67@weissschuh.net> In-Reply-To: <20230223-nolibc-stackprotector-v2-0-4c938e098d67@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1679326878; l=802; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=yB2bNNpPwty3egJ8yVVXOGLcmpOFHoeuVC5kDwG8ohI=; b=1xaQrroQTlcIJhL2JEaH2lGu9cjtjGYX88x03R//qu/u9/ZsqxCO6nP6wkI1lnlELbadj7STf ePm1XzGV+r9BZjLWRL9p+8/ttwuNEIy/bRrWfg6VxlV1GxLFo4mHd6B X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nothing ever modifies this structure. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/nolibc-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 6a7c13f0cd61..fb2d4872fac9 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -717,7 +717,7 @@ int prepare(void) } /* This is the definition of known test names, with their functions */ -static struct test test_names[] = { +static const struct test test_names[] = { /* add new tests here */ { .name = "syscall", .func = run_syscall }, { .name = "stdlib", .func = run_stdlib }, -- 2.40.0