Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp272502rwr; Wed, 19 Apr 2023 06:25:56 -0700 (PDT) X-Google-Smtp-Source: AKy350aGeemEaD0vIabhPsIihO4o8SG0EXzDZbScAVSKFE1Q1pQwDgmAwSb/+dcP3j1GMBBrhZwE X-Received: by 2002:a17:902:e748:b0:1a6:ff6a:83ed with SMTP id p8-20020a170902e74800b001a6ff6a83edmr6527977plf.65.1681910756582; Wed, 19 Apr 2023 06:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681910756; cv=none; d=google.com; s=arc-20160816; b=KwPn9nBfptC520flx28XlR9s+qSuCVjPqnZ+Tqf21dsRF3MyXGrn3sP1JBJ9ua7Rlj 5rbVvbm+SzG+D882FOSWwzcx4S7iz6FDsfivYIQ3DCmAIYgICAFWERedWIpG65yacxWj NxwjOLyxlKEfbWCcyippMt/QUkpi6OXX5qCvl+mOgdBinNehZj2LjwxXLo23Lw4I08Vy FX2u7rgVcGktFjFf9csBOC4gpB7iUehew8OwNnMwQc+wQJ/WVnBbOMl5YomtqHxuDqRH Jnfqm0+WsrbYljTKYEfeBy406UmFmN2vpVj1jQmL3d8DkTJqnOgtiTjS3Fa2z++rp2Kz cbGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:dkim-signature:from; bh=l7baiPSyp1lYJ/kgJPWMYz2X0VHGK0Hv1VShI9bzv3E=; b=XWrEBe2hak3MVJLJTQalDoha+npk6KU0VGFn4N8wmF2XvvhXHkq92GaZvhMIhXuoMV IVTyjkoqH44jgjWrqOXqzi/dtL2oZXNoC+e9rL8IlAM5xu9S0UhXIw6s0rCNL4tNwNEi ynBqV3Mn9/XVWIxQijobwoARH5NJG8WuX25zJkCDcudbfgES334msc4KOaqllX60Fj4w vj0ibrnxth9ftYWtkfCnBiXV/PzSZk13sgZSLHvBuUVg/qWOuaCotKtAKrZYmJ6GhM+C pTxwRaJh4pdC1pZ8nVzs5Tfawm5zey7teD5XAN/7OteA/aZZRHNvQutAxzqjXgUG108u foPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=HgDJgJi8; 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-20020a170902d50500b001a6387faaa6si17451723plg.422.2023.04.19.06.25.42; Wed, 19 Apr 2023 06:25:56 -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=HgDJgJi8; 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 S233464AbjDSNX2 (ORCPT + 99 others); Wed, 19 Apr 2023 09:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233080AbjDSNXV (ORCPT ); Wed, 19 Apr 2023 09:23:21 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABCF414F68; Wed, 19 Apr 2023 06:22:57 -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=1681910575; bh=klYiuuUb5oXZM4ugTkwBgAm1OjuezMQ2gNNkcO7W7p0=; h=From:Subject:Date:To:Cc:From; b=HgDJgJi8fgD+JlFI75gNSXnKehGZWZ2VNoNAxFx3g4Wx4ZhsmbhVxiFM8kPc0fRz3 wwhtzRlWKaFVT0OGBaZEu5EAcA3qU6NHjZL/pNrRzqTER5xIqca+Yk28eOrFenkXkj r64sixvyeUFHrIRMaOTk2nBCIZv024wcen/c11nk= Subject: [PATCH v2 0/4] block: constify some structures of partitions/core.c Date: Wed, 19 Apr 2023 15:22:52 +0200 Message-Id: <20230419-const-partition-v2-0-817b58f85cd1@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIACzrP2QC/3WNwQ6DIBAFf8VwLg1Cg9qT/9F4AFzKJgYNi7aN8 d9Lvfc4L28yOyNICMTu1c4SbEg4xwLyUjEXTHwCx7Ewk0Iqcas77uZImS8mZczly43QtvONttI rVixrCLhNJrpQvLhOUxmXBB7fZ+YxFA5IeU6fs7rVv/V/YKu54HLU2suxVW2j+hcgEbmwhmuEz IbjOL7eWLqvyAAAAA== 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=1681910574; l=891; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=klYiuuUb5oXZM4ugTkwBgAm1OjuezMQ2gNNkcO7W7p0=; b=4CvKkSO7rwHmSdAiZF8HubO43zK2IGjrUaNIE6Pi98mLkufA3sa+1ac0WCgkpLcRRqesfEq1L viZ9p6KVFv1BtFyIpdQggysUAV0yFwB5MfCis7yeYXJ53lVAHEzkH9l 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 A few structures containing function pointers that could and should be const are not. Change that. Signed-off-by: Thomas Weißschuh --- Changes in v2: - Use correct syntax for const array of function pointers. Reported by LKP bot. - Link to v1: https://lore.kernel.org/r/20230419-const-partition-v1-0-2d66f2d83873@weissschuh.net --- Thomas Weißschuh (4): block: constify partition prober array block: constify struct part_type part_type block: constify struct part_attr_group block: constify the whole_disk device_attribute block/partitions/core.c | 8 ++++---- include/linux/blkdev.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) --- base-commit: af67688dca57999fd848f051eeea1d375ba546b2 change-id: 20230419-const-partition-a06b9f76b2f3 Best regards, -- Thomas Weißschuh