From patchwork Thu Oct 27 15:32:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 1695469 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=) Authentication-Results: legolas.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=gP/Z3Ae6; dkim-atps=neutral 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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MyqTF20NQz23kj for ; Fri, 28 Oct 2022 02:33:37 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 374743884577 for ; Thu, 27 Oct 2022 15:33:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 374743884577 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666884815; bh=w50Dqj15UVfa03PjhFicJsYGJscuAaKy/VcaIren/po=; 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=gP/Z3Ae6znnerSXqWT/9I7NwoIDZVz+s3amWeJ47N9qD1On0IrHBMO+zAUvGYP5kH id+WCPxbI3T+zid7BErT8Wy+HokFSAejLn4vuo4QQY94kmBlJTZCCFBfCd3gz2daMh cHcMviT5boGGlgTXrYRz9dVueUCr1V2TYwiHlb+8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2049.outbound.protection.outlook.com [40.107.104.49]) by sourceware.org (Postfix) with ESMTPS id 86956384B12C for ; Thu, 27 Oct 2022 15:32:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 86956384B12C ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=PITnF5etB83H15m4qxt/b5RQ25n27W4/44doUQ94nUrwuPRxXRyvAIYKw74PvARdyNu3ZX10Neaqs5iIL1ob8xYsM+DQvvGVvyuz+VpmnRpqnruaIYPWnSjBfeuirhKo2mGmn5vr53owjFGqLReN+RsVxO+574Z6c77etFI/wVUVvxhrLQt818V/F+Ym91u+B3lj2m2gH0RTOYudDCjE8hLaIPnhuLUl6GpvFx1wueakQJ4utOn5Lsne7v7jVtgFWTSzo5U9mGKVy/G6WvQmeiexttyYwK17nJ3VQ8AT6nh3pL4N+5GiifKi53PBVAJ7NXtvVKRms0GbUTmFwWAoZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=w50Dqj15UVfa03PjhFicJsYGJscuAaKy/VcaIren/po=; b=BOZVHpeKCKBlwEIlwUTZXy7FVwtssotOG/sZcxS6f4WHC2hRuRnfabQvZQ/fk2Zr58NIdarSgEv99+zS1a3wAPZrk9vsXgrVbq7NfYg0APKFakVU/S/ScnXzfoC2PGYhO42xquc1xpBu2LjUudAsJ8MJ4DLtHW0T5OsK8OhtxoKy/2C4Vbtsu6l0ZF0Wh/9v/WSYkwwBLVNgG5dWpnCHpRUIj89XX1ONoT8GAQ7aZyry8rDr9WYDcJaWSQ/3HCKbF1wXu60U97QjfNnBaaLJHF5/HCdziS9xSQrtT1LvrW5QlrTLrpwrrhUMJOPIpMGMgnAPCBLNm8wWsiCKuQakzQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1, 1, smtp.mailfrom=arm.com] dmarc=[1, 1, header.from=arm.com]) Received: from AM6P192CA0015.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:83::28) by AS8PR08MB6151.eurprd08.prod.outlook.com (2603:10a6:20b:290::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14; Thu, 27 Oct 2022 15:32:24 +0000 Received: from AM7EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:83:cafe::7) by AM6P192CA0015.outlook.office365.com (2603:10a6:209:83::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28 via Frontend Transport; Thu, 27 Oct 2022 15:32:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT045.mail.protection.outlook.com (100.127.140.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 15:32:22 +0000 Received: ("Tessian outbound 6c699027a257:v130"); Thu, 27 Oct 2022 15:32:22 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 738fb4039569935d X-CR-MTA-TID: 64aa7808 Received: from 7f31df5da996.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D3847FF0-3295-4104-B074-70ED2249A74E.1; Thu, 27 Oct 2022 15:32:14 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7f31df5da996.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 27 Oct 2022 15:32:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MnRpH8oaTcovXUrivs0QzAabArj8yjLUJc6YjmDHHd/QP/0OfZwZzmLPXaxOBqgJayKs3hn2ZhtlnqgDQ9ppJRjD8e6xfH4a7t6wiGER1hdoVHQVVRdVDH6Max6h59Xp5AF9cQdUkx9wxOjq2GWA/bU04+17Crav9hMf+0z+PieuPVqxAHbtHU6zrQ4us5WS+mCR5G3+vNSE9CTha71pfIqS1FDuAO/c/FzDGCo1UBW2JAie7QTIJRQINFOBERU38F6akch0brdrc2S0AHKlEYld3tp2N3WO+3fmwKlxRn2/kkLfp7+xGlbmyYWnu3/qmlc4eoa2LZMiQz3w3Q5Z3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=w50Dqj15UVfa03PjhFicJsYGJscuAaKy/VcaIren/po=; b=fwEoPJdGIuOD5eEK3Y37kdsj+NAXaB1X+ZMwRTttMbgF6kuHvDixa3BRG8hP+a9vTNbBlX3YqbgOUxuaAOiXX1KnoxNfCji1200txr5+DVKWhedO16pclVwdsNMDhxI1GKwrr9kJCyDQ/9PSLBK6gJhhMqLWmkFsyxx2Ghv2SsEPBDAB9uN7TgFSf1eGab6EZ4rJPyIXb2V9Yk+5As08IkXPt49mqvV1q2rrf31fhA4GYNgKcLCXItwXZPm5PW9SVstgXWay4jutDIuqrTzblz7zRPaZEloYcxgi6VSABoPDm37fQT4uynbI/zTwX7b904izLe+qlDPIiGJVULG4Tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from DB7PR05CA0039.eurprd05.prod.outlook.com (2603:10a6:10:2e::16) by DB9PR08MB7469.eurprd08.prod.outlook.com (2603:10a6:10:36f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14; Thu, 27 Oct 2022 15:32:13 +0000 Received: from DBAEUR03FT007.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2e:cafe::67) by DB7PR05CA0039.outlook.office365.com (2603:10a6:10:2e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.22 via Frontend Transport; Thu, 27 Oct 2022 15:32:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT007.mail.protection.outlook.com (100.127.142.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5769.14 via Frontend Transport; Thu, 27 Oct 2022 15:32:13 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 27 Oct 2022 15:32:13 +0000 Received: from armchair.cambridge.arm.com (10.2.80.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Thu, 27 Oct 2022 15:32:12 +0000 To: Subject: [PATCH 02/20] scripts: Use bool in tunables initializer Date: Thu, 27 Oct 2022 16:32:12 +0100 Message-ID: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT007:EE_|DB9PR08MB7469:EE_|AM7EUR03FT045:EE_|AS8PR08MB6151:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a484f3a-e31e-44b7-be3c-08dab830717c x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: +iYFldEQdVXC9XqWeg+v7Vfo5+6k+p+rZkO97NkJ0XfvmjLzZI1DSE78e1/eLsCYtydncDM/mm8KfI1g2OrYNH8lUqUbD7WEVlZHo+ee5bts4RQNoDgCToE6PlWbA58hf6zDxgAnilmC4LsXi7BDdZbvTUhnM7qq4O3b2gO028rpow5dysU/MFJk+aQHiQG8/nKppUOZs47cvlVNxrcFX/+ZoBdo9qQBOp1otmN1wZVnGP3HxdPLGzaPsAgniAF9OK1ZYKqgDdCyrQXnQ7E+s8tP/SBzDl0dY79BU8Xq7B5gjkbV1RZD1Q4Aa6jf54JZMCJOC/JDVbEaz7oOx6auUbWrZSsa/pyQCDie4YKhtWf1rNZ0YU1Eya/zU5LEWsq0BVnhZ3QreNdE1ioAdM0yL1zWuEcvEbk4PCP/YB21PNoKt8Odlhut3Y6AUXnd3qFEKVXEFbs1hAk1tDZqEDaKKfzUObxkkI0QUMvXw78XCK0bA9+ibD9Ze9P3GxPmRjUpqkaNJSRW/Jh5C3SIVAXxBHN75Xa8DlGmIcD7PfU4bN53qNCfYcIv112F9eheRYl3EmaITKZs4+hN4X+6C9EcX+CrXtaikJ9Jc9K6yEZ/3zCqnL0ZTq9pk3qJNdnOfVsXrBWzqOZCkaldttUlAaIZZUS0qwpJyUQcLGoOQTOF85mnHYXRZqene4r+l0qFJjO1feLNsjbNjS3zTNbdRLqmes0b2khiizIjzJdORF+pXYfq6psBf4XIThuwPuartGnBVxj589dSUtya75YsLQP09R99ymIxpM9ss3kpfRDiry4uTcS7FbLAf1lFYDyf4apX X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(376002)(136003)(346002)(39860400002)(396003)(451199015)(46966006)(36840700001)(40470700004)(36756003)(7696005)(478600001)(5660300002)(70586007)(70206006)(8936002)(8676002)(41300700001)(6916009)(44832011)(4744005)(316002)(36860700001)(40480700001)(82740400003)(81166007)(356005)(40460700003)(2616005)(336012)(186003)(26005)(83380400001)(426003)(47076005)(86362001)(82310400005)(2906002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB7469 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT045.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9a725321-46a5-4036-49ae-08dab8306bd5 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2Ti8eJ2D3Bncij0EQwHz44BLR6KWhcDQJi92GuD9RYHj63XvCgiBAqLu808Sx1zLwiwh8qfvqxNJ9ZNJPDI0t2XnQV7cn8CMt6nn5jOSniYx/ztNAfwGiDK+COJeR8Vs2Nq65hXN/Wk4adxYj9yjIh2yiqYyKM8muHdK1R6pp9s7MZH0nYdY/Qx/kcCk1r45Q76qfMc4LZVU7RHkr/8/SVUN2oFM7CkrBMQjngbrwQHr9geR+9dTIfXnvYXQ7npE1zmlbDmiAjpCz/kpMq/WazUQ1zJqI89X392DAEjV/STZmw1x0KCp43Oc2CxFFq1r5ledHNeUWL9qlDeJIiYp5TjayDWJSqT8KeGXlRgUqXCyZLsShQFyS6cssvmeSduL9VtAHFxbf3mvw+UMTdQZ+pmHSzMSICtINgVqOIrkK69X85+trIav0ZsRm8nIdvVZnRUap1qj1207S6Eq1vFBqcdMf8V1J0HWq/8i1rvUwdI3XzoYsXw7ykCvvA6mB2zXxxRa8HlfltWKhv9MKN0LK+LZ+GB89l0H2+R1ah1v1VI+1AAsYnk937TtSvW4zBNAGxMJCEtILDq91uAcVv7Lo1YKfjt6YbUNbHLsW4qHcrRXdfC6o6dPFTE6bfrImyv0zOZIb61V47zYV9y0Ui4icgwWAwKyfEIszl/oPTbRlcJh2oXmnts5aTk02dkhRx8MUJiM+m4o8Gt3vr3XuWJQ51XpUwdm2OwJ3zAUhQWRk6bMVxPrEjstE0XyPkVnvSGhjyq1rrYpOLOjWs1gOrWN+g== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230022)(4636009)(136003)(396003)(39860400002)(346002)(376002)(451199015)(40470700004)(36840700001)(46966006)(316002)(36860700001)(6916009)(40480700001)(426003)(47076005)(40460700003)(8936002)(5660300002)(2616005)(186003)(2906002)(4744005)(44832011)(7696005)(36756003)(70206006)(70586007)(8676002)(26005)(86362001)(83380400001)(41300700001)(336012)(478600001)(82740400003)(81166007)(82310400005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 15:32:22.7819 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a484f3a-e31e-44b7-be3c-08dab830717c X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT045.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6151 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP, UNPARSEABLE_RELAY 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.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Szabolcs Nagy via Libc-alpha From: Szabolcs Nagy Reply-To: Szabolcs Nagy Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" The initializer for a tunable_t set the bool initialized flag to NULL. This causes a build failure when pointer to bool conversion warns. Reviewed-by: Florian Weimer --- scripts/gen-tunables.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen-tunables.awk b/scripts/gen-tunables.awk index fa63e86d1a..d6de100df0 100644 --- a/scripts/gen-tunables.awk +++ b/scripts/gen-tunables.awk @@ -177,7 +177,7 @@ END { n = indices[2]; m = indices[3]; printf (" {TUNABLE_NAME_S(%s, %s, %s)", t, n, m) - printf (", {TUNABLE_TYPE_%s, %s, %s}, {%s}, NULL, TUNABLE_SECLEVEL_%s, %s},\n", + printf (", {TUNABLE_TYPE_%s, %s, %s}, {%s}, false, TUNABLE_SECLEVEL_%s, %s},\n", types[t,n,m], minvals[t,n,m], maxvals[t,n,m], default_val[t,n,m], security_level[t,n,m], env_alias[t,n,m]); }