From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH v2 3/3] of/fdt: Mark initial_boot_params as __ro_after_init Date: Fri, 24 May 2019 16:39:29 -0500 Message-ID: <20190524213929.GA11780@bogus> References: <20190514204053.124122-1-swboyd@chromium.org> <20190514204053.124122-4-swboyd@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20190514204053.124122-4-swboyd@chromium.org> Sender: linux-kernel-owner@vger.kernel.org To: Stephen Boyd Cc: Frank Rowand , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Hsin-Yi Wang List-Id: devicetree@vger.kernel.org On Tue, 14 May 2019 13:40:53 -0700, Stephen Boyd wrote: > The FDT pointer, i.e. initial_boot_params, shouldn't be changed after > init. It's only set by boot code and then the only user of the FDT is > the raw sysfs reading API. Mark this pointer with __ro_after_init so > that the pointer can't be changed after init. > > Cc: Hsin-Yi Wang > Signed-off-by: Stephen Boyd > --- > drivers/of/fdt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied, thanks. Rob