Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4817132rwd; Tue, 30 May 2023 10:15:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Sxf00N9gW0oYF4ODWco25eiJ1SoKHe0jbAOv5IRkQnS9rGTQmS1MzZJ4F80wHR21O4s8Y X-Received: by 2002:a05:6a00:24c9:b0:643:ba77:f265 with SMTP id d9-20020a056a0024c900b00643ba77f265mr4026038pfv.25.1685466939970; Tue, 30 May 2023 10:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685466939; cv=none; d=google.com; s=arc-20160816; b=A73AQMFVNZ3IkSxWDfEXLKiRX2KpNJmUf25sg+temdstcCZC2pmQzT5/GbONIiFVVa voc+QSDhtUZE338kO2bRmaDjkppj+wLsbOzXH2NHk1j3DgHS4E5OXlavN8mngBv85ht8 UZ939kiB5FQtwTUn5P/ZbLFzCVCkdjbNHs28MXmEVd2cwmGpILnQfOSJ4trnNkQ7EPVp DWTfbhBdztBpEcCqn0t7/aWFq/nus7KmNLAG9aABvZ+VgOzcE/EurbDJjdzXPG92kt+0 yQ1XWvdAdTPZ17ix5XLfjLLqZH4z8ynLe180mntTVMFmHqInTA+RUfedBpCGp/0xLYWl /lxQ== 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=VSweBMk2P3N/Q4K0nGcqtDZpt9GtL6NJ5UeoQbykiYo=; b=OIpgO7BXXUhDkNkFgQvyfKRxUZxZOxemLdV7GkJB6re3N58l68nqMF5iiSgkdYIBdR mcyOatvzKem3YBdTqttsgd2pGAhSbFklueyTzsE+qfZ7/rfgH5w1bw1um8JA9ZC0lXCI tcY/o9qibX1rq+cTfzlGubfbmwyVdo+PBsKR2bLTOUUdSPjwr9ZVVlBWTJSxL8HgWlrW 7Csw9KRnUDTqLGy0vsiSne/p/k2i3B34eN8A7H/BAo/joHw7Izpha97fvAkCFT6fJWXx zPCGTN3nxUtwa0MlQ6ryn89xw3OWlTdpgc25CPJUyEUJ27z4TVnyrE19qHs+FZylx7JR GHrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=MmjqZ4Bw; 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 f30-20020a63381e000000b005347efdfecbsi10886180pga.111.2023.05.30.10.15.27; Tue, 30 May 2023 10:15:39 -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=MmjqZ4Bw; 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 S232523AbjE3RKI (ORCPT + 99 others); Tue, 30 May 2023 13:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233326AbjE3RKD (ORCPT ); Tue, 30 May 2023 13:10:03 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8797AB0; 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=peTYqiDIJwMTxZXYjxcESzL+meJW7xb6TLmkgWy1rDc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=MmjqZ4Bwp3Be9YZkCiQrCu81B7RID2MZyRYNDKbotmDWxShteyHcm1yIXpHbWaMMz ixOQuE0fZAoVnWX0HxLiz+EoZ2ijRs8ub7JyJRcOojiVC5rIp49fVbWYZswP3IwpnH WijGAA3AtwxEYEWjAsuf2R+b8xhgzBN1F2G5BHkY= Date: Tue, 30 May 2023 19:09:59 +0200 Subject: [PATCH v3 3/4] block: constify struct part_attr_group MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230419-const-partition-v3-3-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?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685466599; l=600; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=peTYqiDIJwMTxZXYjxcESzL+meJW7xb6TLmkgWy1rDc=; b=+Z0u8TxxAEUMeMtX7vnTcg9bBfSWnxQKVHdDaMkRx8ThH4UBGbG+XxJDmSna8Y+jVPy8qvJa3 vMWFel4P/ptBSHvxB1hRLoMenbH1i+utkQEHWKC7N7gBxWKydnFQlN0 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 struct is never modified so it can be const. 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 2bc21063edef..d5f5633bf725 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -228,7 +228,7 @@ static struct attribute *part_attrs[] = { NULL }; -static struct attribute_group part_attr_group = { +static const struct attribute_group part_attr_group = { .attrs = part_attrs, }; -- 2.40.1