Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp448974rwe; Wed, 19 Apr 2023 00:55:40 -0700 (PDT) X-Google-Smtp-Source: AKy350bXXzQMWt7VcnZZKIXe69z6BclHXHpypcTDYuOiBJ0l/jma3uC8Nc125bex0vCZf4dVr4i3 X-Received: by 2002:a9d:7849:0:b0:6a5:f4e1:2947 with SMTP id c9-20020a9d7849000000b006a5f4e12947mr2315267otm.10.1681890940606; Wed, 19 Apr 2023 00:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681890940; cv=none; d=google.com; s=arc-20160816; b=IXrBc/y7d1Vm1IHWJYRvuPLIjOKtst7W9lYrq53ZVvhgm9MV0LRqXPbpgCImYlFoIE 3fUMKyYR04WeToma+H48O58pJ2+rsWwsgBujqJlXztSvBO6AHMjn9BIb8HVAit9Bibzl LwrBr0oY6n2mbFdXSoaFzf7NJyZGSrHuZ37YRXaZ+Yyd+7cEfJ25FGd7gHM4tKJDlDX7 deDoc3nPefTKTtdcAXDfP81sAAOArdw84LwLHmxWJ9dnCpRrhGqswRLoyfXGew2026z6 l7+2zgRHD4IBnKyuUiw8e1svKnO8mzey4Z3DP5rQZYl9BxezcplD427F6DDlXPxIZjWG AMCw== 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=K3bLWLHpXeukXMNRXtAKXY5yBgKoATcnBkyGQskz/YI=; b=VY+ct9+UuBN6dUOIYMmNuymlVr0nQe/Xo6bpIrN0k7dsKIqNA4WzlZlwpIciSOBlQ7 +cmdhankZ9RiP1b0liZyCbBsntocaj2HR3EtvRTgrMHFAJmBhuNcsRk5ZlC74TPzkUoi kqNuuOBScwT8OHcndMpgmg8zf9vVswAEGUwxZ5cPKMmzkFc+W/O9Oj9UnLt9mVpU+ERf PziUK6KZ8+DHwQS/nrPUf4gGpXFfy7jrdWpmqEgVKPDovwSJDo7M1Pw4GO2gCUdz4pIu 7cFHw+5ErZczsJU7NgKcGI1N3Uk3VEsvy84H1d3AokK7OP7Jn3KEDLsopQ897fXSy745 X/9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b="UI/45fzn"; 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 f88-20020a9d2c61000000b006a5eb51e802si5451847otb.348.2023.04.19.00.55.28; Wed, 19 Apr 2023 00:55:40 -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="UI/45fzn"; 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 S232667AbjDSHvH (ORCPT + 99 others); Wed, 19 Apr 2023 03:51:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232226AbjDSHun (ORCPT ); Wed, 19 Apr 2023 03:50:43 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 288C4C667; Wed, 19 Apr 2023 00:50:09 -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=1681890606; bh=/y/LjHs7yJYnTHvYV6YwR0IapRAaxIiFC3wYOEdmUYA=; h=From:Subject:Date:To:Cc:From; b=UI/45fznHtjkmIIGwPGvntYD16dwY2IwhdTX3gfQd4nsCv/EaDaqIY3KHPqN9bqud 2Gzoy6iq+Kai4hHrAGPftDFhClw8UM9OSC8Qb+DCbpuYrjotQ80KCzBuP0Iz4x/ONy wyGH9xPos7hE13QhwIRSmS9N18T1vzAA/jGrPIIA= Subject: [PATCH 0/4] block: constify some structures of partitions/core.c Date: Wed, 19 Apr 2023 09:50:00 +0200 Message-Id: <20230419-const-partition-v1-0-2d66f2d83873@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIACidP2QC/x2N0QqDMAxFf0XyvECtw+F+Zeyh7dIZkChJHQPx3 xf2eA73cA8wUiaDe3eA0oeNV3HoLx2UOcmbkF/OEEMcwrWfsKxiDbekjZtvMYUxT/U25lgH8Co nI8yapMzeyb4sLjelyt//zeN5nj96zDqDdgAAAA== To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1681890605; l=685; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=/y/LjHs7yJYnTHvYV6YwR0IapRAaxIiFC3wYOEdmUYA=; b=nDK5iA952VuF7/ZmqgYxuikOGxAqTHCJ7Ue1XPrHuI6l5AbUTNUytu5TLG8BunVWY4KZz/nIr 2EMs+QsUWdXBiwnjZy7qNVJ6sBXFJOa10U/Ac9esJh6mVC2i5tBcA53 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 --- 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