Skip to content

Commit

Permalink
mark pcpu_base_addr as __ro_after_init
Browse files Browse the repository at this point in the history
This change was extracted from PaX where it's part of KERNEXEC.

Signed-off-by: Daniel Micay <[email protected]>
  • Loading branch information
thestinger committed May 7, 2017
1 parent d8dabe9 commit 806bf5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static unsigned int pcpu_low_unit_cpu __read_mostly;
static unsigned int pcpu_high_unit_cpu __read_mostly;

/* the address of the first chunk which starts with the kernel static area */
void *pcpu_base_addr __read_mostly;
void *pcpu_base_addr __ro_after_init;
EXPORT_SYMBOL_GPL(pcpu_base_addr);

static const int *pcpu_unit_map __read_mostly; /* cpu -> unit */
Expand Down

0 comments on commit 806bf5c

Please sign in to comment.