Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34537402rwd; Sun, 9 Jul 2023 14:32:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlG+k/Er+WomdSc97ols2Wh8q0u68u0X6K3tDDEWmfmemGz3lCcV8RIouaescEnjAhrB2IsC X-Received: by 2002:a17:907:91c3:b0:992:a85d:278b with SMTP id h3-20020a17090791c300b00992a85d278bmr8932348ejz.59.1688938335945; Sun, 09 Jul 2023 14:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688938335; cv=none; d=google.com; s=arc-20160816; b=qPEKI4nMGJWe/kH8VO7tSj9zTVql/sWJzWvw9v6/ahUiz0/WVlQTLXvuFopj1Ts7yp I9oCbxZD5Sa/GqLGk/FWjmqazIHY/a+bwbRcUWzcEb3km526rp/r1rNThVAnG5V+ddTX v9yvmG6RwPdv4e0DZGBNUI6DiFiOnpTMGv/n+0KqIibPn1dxEmx4F0FUVo/oQzrRVtMc gLumEK4BzLyYx31f7KD77Vm3MPJg2RfjGrzhvdReoc836IvYjqDxwcxRkulAxkq1XQCJ y6Z1htxOHUekWoj/HWA/rMVvHsoq66nLIi28yZkdVVKnCzrhiymWMbjdF1wHZGgNraF0 KGDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=n2ZV+arsl4Sq2NldK+fsExbAPWhb56kbg7d4yrXlxV8=; fh=wXcZQlffSzV2rFzu9yvBJZxeeF3pBCyVS0GsP2GQFT0=; b=scCy71F7/Vv4AqqFSFIP5sNZ8uKzYwl5W5HImpdpSGSTmgu2QTN6RohlfpfF0PcRMA MSDXnEv90qw0lGTjG428v/h0Uk8EuNjgVpXUaAA3D+1QUtwRBzH3OCIWyAujmdDPR0ph U9mI6cC9EoD0CVs/QQiFRuk369Mag4Ac93i37lwk+L2yQe74lp9N8EIkWWRL8y+5qdIC OYowihbbSfYPLKwfXt/wkh6RNhVEwEfIW8h4JQBDhEML62HSiOw8LgY3iZ0X8r4lF92n 6kslPqy8CC9Jjg2CKkxgRiB+STPbim7MsSljlPO/5cIWfK+q0jj3U72u60RG49aRdLy8 HAqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="FLoAhU8/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020a1709065e1500b009931f44c716si7381494eju.219.2023.07.09.14.31.51; Sun, 09 Jul 2023 14:32:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="FLoAhU8/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229918AbjGIVSH (ORCPT + 99 others); Sun, 9 Jul 2023 17:18:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjGIVSG (ORCPT ); Sun, 9 Jul 2023 17:18:06 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7BD118; Sun, 9 Jul 2023 14:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1688937483; bh=WXEkw13RV61a6X752/mXvKkvA9bWqyILNC1f+dwJRBk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=FLoAhU8/CEkJZE6yW4YBbhWeRgct9Nw4/c6y7zJvf5G6iTIwA1ee92P0qarFx7pAE 5uwXFvaf6Lm71n+QosRp/H2XYWEBrOZVUKFdDbDTcdzC5eftfU1PJ/lcUok4MNvTTN BQeMEXZ/Pjgrzgj2zqXkeTqGpzQqym9vnRO8SEk4= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Sun, 09 Jul 2023 23:17:58 +0200 Subject: [PATCH v2 1/3] dyndbg: constify opt_array MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230709-dyndbg-filename-v2-1-fd83beef0925@weissschuh.net> References: <20230709-dyndbg-filename-v2-0-fd83beef0925@weissschuh.net> In-Reply-To: <20230709-dyndbg-filename-v2-0-fd83beef0925@weissschuh.net> To: Jason Baron , Jim Cromie , Jonathan Corbet , Luis Chamberlain , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688937480; l=714; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=WXEkw13RV61a6X752/mXvKkvA9bWqyILNC1f+dwJRBk=; b=1EveoNxSWocT/JvcCYMCkWLZELFPlTyvQJh/Gptn44acX2ghh09fk62hWml+DdBPa89Nq+4tM +Wqmripd92OADMsO+8xdaW2M7B2OG2A/4SbBWZi5b11pYoZ9zidgdbY X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is never modified, so mark it const. Signed-off-by: Thomas Weißschuh --- lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index fdd6d9800a70..71b22d206a1b 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -88,7 +88,7 @@ static inline const char *trim_prefix(const char *path) return path + skip; } -static struct { unsigned flag:8; char opt_char; } opt_array[] = { +static const struct { unsigned flag:8; char opt_char; } opt_array[] = { { _DPRINTK_FLAGS_PRINT, 'p' }, { _DPRINTK_FLAGS_INCL_MODNAME, 'm' }, { _DPRINTK_FLAGS_INCL_FUNCNAME, 'f' }, -- 2.41.0