[PATCH] powerpc/hugetlbfs: Export HPAGE_SHIFT

Anshuman Khandual khandual at linux.vnet.ibm.com
Fri Jun 30 19:28:51 AEST 2017


On 06/30/2017 12:22 PM, Oliver O'Halloran wrote:
> Export it so it can be referenced inside a module.
> 
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> ---
>  arch/powerpc/mm/hugetlbpage.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c
> index ceeab69cf7fc..96293560f294 100644
> --- a/arch/powerpc/mm/hugetlbpage.c
> +++ b/arch/powerpc/mm/hugetlbpage.c
> @@ -34,6 +34,7 @@
>  #define PAGE_SHIFT_16G	34
> 
>  unsigned int HPAGE_SHIFT;
> +EXPORT_SYMBOL(HPAGE_SHIFT);

Why would you need this in a driver ? This represents the
default HugeTLB page size.



More information about the Linuxppc-dev mailing list