Commit f6c1fe52 authored by Fabio M. Di Nitto's avatar Fabio M. Di Nitto Committed by David S. Miller

[SPARC64] Fix build if CONFIG_HUGETLB_PAGE is not set

Signed-off-by: default avatarFabio M. Di Nitto <fabbione@ubuntu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8b234274
...@@ -354,6 +354,7 @@ static inline pgprot_t pgprot_noncached(pgprot_t prot) ...@@ -354,6 +354,7 @@ static inline pgprot_t pgprot_noncached(pgprot_t prot)
*/ */
#define pgprot_noncached pgprot_noncached #define pgprot_noncached pgprot_noncached
#ifdef CONFIG_HUGETLB_PAGE
static inline pte_t pte_mkhuge(pte_t pte) static inline pte_t pte_mkhuge(pte_t pte)
{ {
unsigned long mask; unsigned long mask;
...@@ -371,6 +372,7 @@ static inline pte_t pte_mkhuge(pte_t pte) ...@@ -371,6 +372,7 @@ static inline pte_t pte_mkhuge(pte_t pte)
return __pte(pte_val(pte) | mask); return __pte(pte_val(pte) | mask);
} }
#endif
static inline pte_t pte_mkdirty(pte_t pte) static inline pte_t pte_mkdirty(pte_t pte)
{ {
......
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