Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4816487rwd; Tue, 30 May 2023 10:15:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4qopdLrhyf1UK4BXjmDszP979Ueja7/Gn7Erm/5FShsVuIQ7oJ22NSaEzs3zXeb+in7DtJ X-Received: by 2002:a17:902:ea06:b0:1ad:ddf0:1311 with SMTP id s6-20020a170902ea0600b001adddf01311mr3475695plg.50.1685466908296; Tue, 30 May 2023 10:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685466908; cv=none; d=google.com; s=arc-20160816; b=lollWCd3KoZsZrg73AiCEIjhPZRyaAQ/ts6MIe7kIuBemdRHTYiW2g1X5jIiYZKrxS Si7A7m+R0Kl4faUUMdg39rPWxoATzob1NfbcdRUqTIPou2iYH+o7umhgoyqi7o2EyaZK tyJVal2JY6jt1T2yAak/4SeHfaF38nfKm9sKZDjv7QxMiQQ3Vu5gUlouKPDjgDdfuNGW bNRqTVCsT6Z063T+mxKaqKeT1UDkmmQYMhq0zSjAuavcKukoupqLwLMFrQPGSxL52RW6 g4mwzz2GL6yA9R4+NrDdktKwwDxeVNuyVSaGOXaWr1VbN2w1lNez3hd3xLkcQcmooJoK TQxw== 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:dkim-signature :from; bh=oCBi/ScTktJkgPF+VkrDSGGfmV19maExKy+RZt0jreE=; b=Bs+QjX+yI/sTPeQfJwHW6F/rCh6iUdxVserptOYr9gVe4swztCTXKFwa9A5SCwVnC2 GgODCxoE4SyOUiWmSE3YQ8kazZP0J9jkJAKfBFK3KGFsqOv7E9i1K4zhZuGpLTzLaQ58 nMqWnmKtl4hntLYKWTtpuhpOH1trE5wxSc8lRnOQ+qWeBfz/m5RPU75fIdwmUYNwNFF9 miu9Fo2iypOmKPt+m+N0CkJWoB3o8h8FvanUOc2pX4ccbEtR6fEeVNcVJjwBVj5vS5DN 0vZ6IeIDSR+iNA+1CAk6vm/B7bS/WzRheprBz6omnKUP1Oab1EVlwfDP3RPwNlwdHjdP kfUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=oPF56zRQ; 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 b5-20020a170902e94500b001afdda2f4aesi12000001pll.239.2023.05.30.10.14.54; Tue, 30 May 2023 10:15:08 -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=oPF56zRQ; 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 S233223AbjE3RKT (ORCPT + 99 others); Tue, 30 May 2023 13:10:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232289AbjE3RKD (ORCPT ); Tue, 30 May 2023 13:10:03 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A30C9; Tue, 30 May 2023 10:10:01 -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=1685466599; bh=apIFDLHl3uyZ3nUh5SjhWlSyk5P+UTn/1j0vvZ5474M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=oPF56zRQrlugpPXKlPAegMLvT8bylBT6l6eq0rW00XU8jltV+SONKMfkNdeHt0FgC A1+k39drMfa3hR/yGkObcA8Bp3nMK5SugOSAEWJndacstmFZSRj/HkMJnIgDFQfUNr rerf/z8GpUbUmTsAddDPa3IcV6M+oa4ep+KXfDy4= Date: Tue, 30 May 2023 19:09:57 +0200 Subject: [PATCH v3 1/4] block: constify partition prober array MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230419-const-partition-v3-1-4e14e48be367@weissschuh.net> References: <20230419-const-partition-v3-0-4e14e48be367@weissschuh.net> In-Reply-To: <20230419-const-partition-v3-0-4e14e48be367@weissschuh.net> To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= , kernel test robot X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685466599; l=830; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=apIFDLHl3uyZ3nUh5SjhWlSyk5P+UTn/1j0vvZ5474M=; b=IFJ0t3Kix1Cs0Berp2pyXH7ZCfDifLrNQG5HeDr/OAwefjYUQYpW5RGF+nbqHWjQzd7iKD9eR U+Y+YkpnlSIACPpgz2RrEK20+BHx3DDi8ktcWcGrALyEfNvDHNqGilY 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,URIBL_BLOCKED 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 The array is never modified so it can be const. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202304191640.SkNk7kVN-lkp@intel.com/ Signed-off-by: Thomas Weißschuh --- block/partitions/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/partitions/core.c b/block/partitions/core.c index 49e0496ff23c..650603dbe557 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -12,7 +12,7 @@ #include #include "check.h" -static int (*check_part[])(struct parsed_partitions *) = { +static int (*const check_part[])(struct parsed_partitions *) = { /* * Probe partition formats with tables at disk address 0 * that also have an ADFS boot block at 0xdc0. -- 2.40.1