[PATCH 10/31] powerpc/mm: Don't use pmd_val, pud_val and pgd_val as lvalue

Scott Wood scottwood at freescale.com
Tue Sep 22 12:23:41 AEST 2015


On Mon, Sep 21, 2015 at 12:10:37PM +0530, Aneesh Kumar K.V wrote:
>  /* PUD level exusts only on 4k pages */
>  #ifndef CONFIG_PPC_64K_PAGES
>  typedef struct { unsigned long pud; } pud_t;
> -#define pud_val(x)	((x).pud)
>  #define __pud(x)	((pud_t) { (x) })
> +static inline unsigned long pud_val(pud_t pud)
> +{
> +	return x.pud;
> +}
>  #endif /* !CONFIG_PPC_64K_PAGES */

Where does "x" come from in this inline function?

This breaks the build with CONFIG_MM_STRICT_TYPECHECKS.

-Scott


More information about the Linuxppc-dev mailing list