From: Thomas Weißschuh Date: Tue, 30 May 2023 17:09:57 +0000 (+0200) Subject: block: constify partition prober array X-Git-Tag: for-6.5/block-2023-06-23~167 X-Git-Url: https://git.kernel.dk/?p=linux-block.git;a=commitdiff_plain;h=539050f92ea7666bca17c2c380d8071d2f93dcde block: constify partition prober array 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 Link: https://lore.kernel.org/r/20230419-const-partition-v3-1-4e14e48be367@weissschuh.net Signed-off-by: Jens Axboe --- 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.