Skip to content

Commit

Permalink
mm/highmem.c: fix coding style issue
Browse files Browse the repository at this point in the history
Delete/add some blank lines and some blank spaces

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: songqiang <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
songqiang authored and torvalds committed May 5, 2021
1 parent d048b9c commit 9727688
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions mm/highmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static inline wait_queue_head_t *get_pkmap_wait_queue_head(unsigned int color)
atomic_long_t _totalhigh_pages __read_mostly;
EXPORT_SYMBOL(_totalhigh_pages);

unsigned int __nr_free_highpages (void)
unsigned int __nr_free_highpages(void)
{
struct zone *zone;
unsigned int pages = 0;
Expand All @@ -120,7 +120,7 @@ unsigned int __nr_free_highpages (void)
static int pkmap_count[LAST_PKMAP];
static __cacheline_aligned_in_smp DEFINE_SPINLOCK(kmap_lock);

pte_t * pkmap_page_table;
pte_t *pkmap_page_table;

/*
* Most architectures have no use for kmap_high_get(), so let's abstract
Expand All @@ -147,6 +147,7 @@ struct page *__kmap_to_page(void *vaddr)

if (addr >= PKMAP_ADDR(0) && addr < PKMAP_ADDR(LAST_PKMAP)) {
int i = PKMAP_NR(addr);

return pte_page(pkmap_page_table[i]);
}

Expand Down Expand Up @@ -278,9 +279,8 @@ void *kmap_high(struct page *page)
pkmap_count[PKMAP_NR(vaddr)]++;
BUG_ON(pkmap_count[PKMAP_NR(vaddr)] < 2);
unlock_kmap();
return (void*) vaddr;
return (void *) vaddr;
}

EXPORT_SYMBOL(kmap_high);

#ifdef ARCH_NEEDS_KMAP_HIGH_GET
Expand All @@ -305,7 +305,7 @@ void *kmap_high_get(struct page *page)
pkmap_count[PKMAP_NR(vaddr)]++;
}
unlock_kmap_any(flags);
return (void*) vaddr;
return (void *) vaddr;
}
#endif

Expand Down Expand Up @@ -737,7 +737,6 @@ void *page_address(const struct page *page)
spin_unlock_irqrestore(&pas->lock, flags);
return ret;
}

EXPORT_SYMBOL(page_address);

/**
Expand Down

0 comments on commit 9727688

Please sign in to comment.