Commit d9c0cf1a authored by David S. Miller's avatar David S. Miller

[SPARC64]: Do not lvalue cast in pgd/pmd macros.

parent 4e6e2877
...@@ -48,8 +48,8 @@ typedef struct { unsigned long iopgprot; } iopgprot_t; ...@@ -48,8 +48,8 @@ typedef struct { unsigned long iopgprot; } iopgprot_t;
#define pte_val(x) ((x).pte) #define pte_val(x) ((x).pte)
#define iopte_val(x) ((x).iopte) #define iopte_val(x) ((x).iopte)
#define pmd_val(x) ((unsigned long)(x).pmd) #define pmd_val(x) ((x).pmd)
#define pgd_val(x) ((unsigned long)(x).pgd) #define pgd_val(x) ((x).pgd)
#define ctxd_val(x) ((x).ctxd) #define ctxd_val(x) ((x).ctxd)
#define pgprot_val(x) ((x).pgprot) #define pgprot_val(x) ((x).pgprot)
#define iopgprot_val(x) ((x).iopgprot) #define iopgprot_val(x) ((x).iopgprot)
...@@ -74,8 +74,8 @@ typedef unsigned long iopgprot_t; ...@@ -74,8 +74,8 @@ typedef unsigned long iopgprot_t;
#define pte_val(x) (x) #define pte_val(x) (x)
#define iopte_val(x) (x) #define iopte_val(x) (x)
#define pmd_val(x) ((unsigned long)(x)) #define pmd_val(x) (x)
#define pgd_val(x) ((unsigned long)(x)) #define pgd_val(x) (x)
#define ctxd_val(x) (x) #define ctxd_val(x) (x)
#define pgprot_val(x) (x) #define pgprot_val(x) (x)
#define iopgprot_val(x) (x) #define iopgprot_val(x) (x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment