Skip to content

Commit

Permalink
[SPARC64] Fix build if CONFIG_HUGETLB_PAGE is not set
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Fabio M. Di Nitto authored and David S. Miller committed Mar 20, 2006
1 parent 8b23427 commit f6c1fe5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-sparc64/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ static inline pgprot_t pgprot_noncached(pgprot_t prot)
*/
#define pgprot_noncached pgprot_noncached

#ifdef CONFIG_HUGETLB_PAGE
static inline pte_t pte_mkhuge(pte_t pte)
{
unsigned long mask;
Expand All @@ -371,6 +372,7 @@ static inline pte_t pte_mkhuge(pte_t pte)

return __pte(pte_val(pte) | mask);
}
#endif

static inline pte_t pte_mkdirty(pte_t pte)
{
Expand Down

0 comments on commit f6c1fe5

Please sign in to comment.