Skip to content

Commit 9727688

Browse files
songqiangtorvalds
authored andcommitted
mm/highmem.c: fix coding style issue
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]>
1 parent d048b9c commit 9727688

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

mm/highmem.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static inline wait_queue_head_t *get_pkmap_wait_queue_head(unsigned int color)
104104
atomic_long_t _totalhigh_pages __read_mostly;
105105
EXPORT_SYMBOL(_totalhigh_pages);
106106

107-
unsigned int __nr_free_highpages (void)
107+
unsigned int __nr_free_highpages(void)
108108
{
109109
struct zone *zone;
110110
unsigned int pages = 0;
@@ -120,7 +120,7 @@ unsigned int __nr_free_highpages (void)
120120
static int pkmap_count[LAST_PKMAP];
121121
static __cacheline_aligned_in_smp DEFINE_SPINLOCK(kmap_lock);
122122

123-
pte_t * pkmap_page_table;
123+
pte_t *pkmap_page_table;
124124

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

148148
if (addr >= PKMAP_ADDR(0) && addr < PKMAP_ADDR(LAST_PKMAP)) {
149149
int i = PKMAP_NR(addr);
150+
150151
return pte_page(pkmap_page_table[i]);
151152
}
152153

@@ -278,9 +279,8 @@ void *kmap_high(struct page *page)
278279
pkmap_count[PKMAP_NR(vaddr)]++;
279280
BUG_ON(pkmap_count[PKMAP_NR(vaddr)] < 2);
280281
unlock_kmap();
281-
return (void*) vaddr;
282+
return (void *) vaddr;
282283
}
283-
284284
EXPORT_SYMBOL(kmap_high);
285285

286286
#ifdef ARCH_NEEDS_KMAP_HIGH_GET
@@ -305,7 +305,7 @@ void *kmap_high_get(struct page *page)
305305
pkmap_count[PKMAP_NR(vaddr)]++;
306306
}
307307
unlock_kmap_any(flags);
308-
return (void*) vaddr;
308+
return (void *) vaddr;
309309
}
310310
#endif
311311

@@ -737,7 +737,6 @@ void *page_address(const struct page *page)
737737
spin_unlock_irqrestore(&pas->lock, flags);
738738
return ret;
739739
}
740-
741740
EXPORT_SYMBOL(page_address);
742741

743742
/**

0 commit comments

Comments
 (0)