Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp272709rwr; Wed, 19 Apr 2023 06:26:07 -0700 (PDT) X-Google-Smtp-Source: AKy350bxaZVs1+CU2x/jOuYOXVyz6q0p/WAjYhfekRtcbJgfEHImtBACuavHMgCydPHugfsqeI5o X-Received: by 2002:a17:90b:1bc2:b0:233:76bd:9faa with SMTP id oa2-20020a17090b1bc200b0023376bd9faamr2723115pjb.47.1681910767066; Wed, 19 Apr 2023 06:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681910767; cv=none; d=google.com; s=arc-20160816; b=ritNFnEsy6QUrXogETOGJvFMzj1OOFT202ZIY2Xr/5Jiekxnko5Xj3ebD8cW+hsRjN UjRN4TA5CkJg+nCYnjAmpqEdKnvwIOliuodu8OJl60IrWnPxde/o8aGb1ABXkZ2v6qDU SV8ljmMv3BkwwFnTrHjOsGQ1oDoh0aMMqO2LDfYFMdJMkhi3qjTNC+kOQxp9VXJ11372 197JOW5wiohSDn7+hOSGpyVmiF8QuCQuTz7LC3TGI8FW3B685WxJMWzQFCJpXenaspSm XJmIoxEZ4r47O2HZLbi2yYpPYpHCD4p97JIel7wSI/rz+iATXz+E9kn5va0KdDqhVU+D XhTw== 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=cyI+Q3//zSRQ61DAFuELNmZGgdsc23py6b6qerBg5LI=; b=SULg/inE/wCT7vw9s1kkzJTZaQXo1m+cLyG5/qsm/qmqC67DvaJL8UUyBcDM7+FZKl PrUdTEQFsDJfmt8baHtL3iU45YQOojfOrZz0kMZKAq15wFjMeqThJ/wXQhb0whbAeIkC ORH0eltxoAtZ6jZg/4MCuRSuVzLzze0GENKppS6mRiQ2uzESpChUMOc+tLL9wIDVGrS3 ual0eXf1L7UF4lIsJ6D3eohC4pT2dtSmZUpjj4e/pzNK71JjLt1OnFogIMNH960U+M1m iPd9uJ9SdxUFtLPXppysVoELWm4K/H7qS5rCqHXkl/2fl3/zF3P4Aaaq5ZD2r72Ij4/9 XKSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=YFcCgHB8; 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 p12-20020a17090a428c00b002299b06dca9si1745557pjg.83.2023.04.19.06.25.51; Wed, 19 Apr 2023 06:26:07 -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=YFcCgHB8; 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 S233406AbjDSNXW (ORCPT + 99 others); Wed, 19 Apr 2023 09:23:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbjDSNXV (ORCPT ); Wed, 19 Apr 2023 09:23:21 -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 AA7F2146E4; 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=kF2K3Rlh4UxwVdG+nyD6f0YN/COQ4qVDn3yxp2SKVxc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YFcCgHB8hGVlTs6lQ4T9459c4/d4RD3GEKKZ6KWt41n4/reI6B9YihsWBxTuhXcGe ZJ2q4Lm8Q1519saGzleo4rXllH3ATrhOp+8odSpXU2VUCGYNS47aTycBDc5SLXGlPk txYPxfm5rUXQ8DsBx0VWYqP4eurgBl6AngEUgVnE= Date: Wed, 19 Apr 2023 15:22:55 +0200 Subject: [PATCH v2 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-v2-3-817b58f85cd1@weissschuh.net> References: <20230419-const-partition-v2-0-817b58f85cd1@weissschuh.net> In-Reply-To: <20230419-const-partition-v2-0-817b58f85cd1@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=1681910574; l=600; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=kF2K3Rlh4UxwVdG+nyD6f0YN/COQ4qVDn3yxp2SKVxc=; b=hGep4w3kBAcn2BOjS1uLDC86/cXeBxeh1sDHAoHUGWD8Pzz7IlRumdd7npMtycAN4auCvh7xQ P701kG2CAYvBm+/VUjf4ZtHX2qeArE5wFJh037KFpKqwZ10UILi7IMP 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 43bde8118a78..cb37ac71868e 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -236,7 +236,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.0