Re: [PATCH] powerpc/mm: Move the linear_mapping_mutex to the ifdef where it is used

2021-03-30 Thread Michael Ellerman
On Fri, 19 Feb 2021 17:56:48 +0100, Sebastian Andrzej Siewior wrote: > The mutex linear_mapping_mutex is defined at the of the file while its > only two user are within the CONFIG_MEMORY_HOTPLUG block. > A compile without CONFIG_MEMORY_HOTPLUG set fails on PREEMPT_RT because > its mutex implementat

[PATCH] powerpc/mm: Move the linear_mapping_mutex to the ifdef where it is used

2021-02-19 Thread Sebastian Andrzej Siewior
The mutex linear_mapping_mutex is defined at the of the file while its only two user are within the CONFIG_MEMORY_HOTPLUG block. A compile without CONFIG_MEMORY_HOTPLUG set fails on PREEMPT_RT because its mutex implementation is smart enough to realize that it is unused. Move the definition of lin