]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/of/fdt.c
of/fdt: Mark initial_boot_params as __ro_after_init
authorStephen Boyd <swboyd@chromium.org>
Tue, 14 May 2019 20:40:53 +0000 (13:40 -0700)
committerRob Herring <robh@kernel.org>
Fri, 24 May 2019 21:39:27 +0000 (16:39 -0500)
commit7c71650f9a3640464dd907bd7a6510cc7ea02ba6
treec1535955444800778e8910844471594bcf088aa0
parent9b4d2b635bd0cf8dfc45223f66fd85792fd2dc7b
of/fdt: Mark initial_boot_params as __ro_after_init

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 <hsinyi@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c