Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3129569pxj; Mon, 31 May 2021 21:27:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxltCLoppTVAQg1rBkG7j6EwdWfan5yLqG+ySMjQC0xUecleDp3WDMOGOjPgryUmjf5K86g X-Received: by 2002:a6b:cd08:: with SMTP id d8mr19906414iog.86.1622521644062; Mon, 31 May 2021 21:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622521644; cv=none; d=google.com; s=arc-20160816; b=sPwebGkNE9l/Mn+Dw3jJdlZ4LxHOXzcBAygqIrVKZ5suuFaWW0n3wyUwexpSfJ6iMd 964viCgqNmKXfmv0L8+EbibfPgfqapIelKSnbfvRuO8irK6pZR08jjUVYAxdNgMR1mYw y7EY8XB1wm4eRM7P6AeILcZ3iReH+MrYjIa26NqpItvZ3DX96dJO0NeSvdTc9Gy22jj8 oLxnmtm3u4bzSy971nOTxUWpg26JdkhM42c+k1l9GWkUNj5MLGqh4mG2NwB2S6jTtHI/ 2TnCspDXd6Pif0YAEzUM+RyYq2a2u+cRrpE9aQ+/sxop37qF6vnHsgyDI9GZQGDaIIQW yk7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kTDEMAz8rWtpn+7lWF3Whs8md2THwo5SZdP7apN9baI=; b=G5EEIZyQxq033G6WFNJORv4JsSt8kY+OI5XeZODAz0pT5ksw8W0BDeJVTLnmFFIjGu 95qb+KxElKWXOO5KlZm+Pms8UU/FnBbeJzISsaW/ys515AlJ6O00vVpNMWFWkVprOMLE qLt8tg8ob/v6QpkZI8wHlOXD+zGPR6xZJQHR/F9sGBlD+ewI+ChIKqoaJ3BkV21gPgZ6 +FCA0UDwxFBr9c4bNPELx5r/Nb++kqeRajoW7F2GxMIfhkAdwCTRb37idKAi7xGFZQDL i6Y+5PJvDQmvFqJGOl/fdqd1QmZQPb1YyowC0fhgpVTt1CTIeT4sbjm0bJNk5+V8ryBv X6oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ntbxp9sv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si15796639ilu.13.2021.05.31.21.27.10; Mon, 31 May 2021 21:27:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ntbxp9sv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230009AbhFAE14 (ORCPT + 99 others); Tue, 1 Jun 2021 00:27:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:47600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbhFAE1z (ORCPT ); Tue, 1 Jun 2021 00:27:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EB77761364; Tue, 1 Jun 2021 04:26:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622521575; bh=kTDEMAz8rWtpn+7lWF3Whs8md2THwo5SZdP7apN9baI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Ntbxp9svHdTM/+vkRMNO1Ifufw+nC6KT2vbejPmaYv4sK0gHPCAIPrfh+xmgZZVhW rSJ504qOwnSAauX21Uk5ockuwsy7BtvdMoLqhlG3tdrv7xCJ8IPYNnP+UIeZDfgiFv pP9M4YoVWBKd9ASmW2cReOVybcVc8lktAaI0eVmkxZ4/Dip8ClFSn2HykUp/uVQwWn f3WQ+0DL4geSZNy1BbkfqTOo/uSJALz1kkLTEi6CjMO4KL3VfB8E6sCta33eJFC6JG 2X8JHv4XyWixuTI7HuYTqL4RwFPRZz3WL+0OGvCehg6DTyZoTBiwS5t5P6yRiD1zy+ EapetQDN1R7jQ== Received: by mail-lf1-f44.google.com with SMTP id j10so19628170lfb.12; Mon, 31 May 2021 21:26:14 -0700 (PDT) X-Gm-Message-State: AOAM533aiJXUtwBMPxSV8s+Ma3GEN0S56q1NB4ZU+flctVXotvIcUwpD Z7WTlcyxLbo0GZaUjUoo/CkUco1Bi+AucQ1Atws= X-Received: by 2002:a19:5208:: with SMTP id m8mr17363336lfb.372.1622521573292; Mon, 31 May 2021 21:26:13 -0700 (PDT) MIME-Version: 1.0 References: <20210529103049.5022-1-rikard.falkeborn@gmail.com> In-Reply-To: <20210529103049.5022-1-rikard.falkeborn@gmail.com> From: Song Liu Date: Mon, 31 May 2021 21:26:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] md: Constify attribute_group structs To: Rikard Falkeborn Cc: linux-raid , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 29, 2021 at 3:30 AM Rikard Falkeborn wrote: > > The attribute_group structs are never modified, they're only passed to > sysfs_create_group() and sysfs_remove_group(). Make them const to allow > the compiler to put them in read-only memory. > > Signed-off-by: Rikard Falkeborn Applied to md-next. Thanks! Song