提交 2e8acca1 编写于 作者: Z Zhiyuan Dai 提交者: Will Deacon

arm64/mm: Fixed some coding style issues

Adjust whitespace for fixmap_pXd() functions returning pointers for
consistency with the kernel coding style.
Signed-off-by: NZhiyuan Dai <daizhiyuan@phytium.com.cn>
Link: https://lore.kernel.org/r/1613958231-5474-1-git-send-email-daizhiyuan@phytium.com.cnSigned-off-by: NWill Deacon <will@kernel.org>
上级 d47422d9
...@@ -1155,7 +1155,7 @@ void vmemmap_free(unsigned long start, unsigned long end, ...@@ -1155,7 +1155,7 @@ void vmemmap_free(unsigned long start, unsigned long end,
} }
#endif /* CONFIG_SPARSEMEM_VMEMMAP */ #endif /* CONFIG_SPARSEMEM_VMEMMAP */
static inline pud_t * fixmap_pud(unsigned long addr) static inline pud_t *fixmap_pud(unsigned long addr)
{ {
pgd_t *pgdp = pgd_offset_k(addr); pgd_t *pgdp = pgd_offset_k(addr);
p4d_t *p4dp = p4d_offset(pgdp, addr); p4d_t *p4dp = p4d_offset(pgdp, addr);
...@@ -1166,7 +1166,7 @@ static inline pud_t * fixmap_pud(unsigned long addr) ...@@ -1166,7 +1166,7 @@ static inline pud_t * fixmap_pud(unsigned long addr)
return pud_offset_kimg(p4dp, addr); return pud_offset_kimg(p4dp, addr);
} }
static inline pmd_t * fixmap_pmd(unsigned long addr) static inline pmd_t *fixmap_pmd(unsigned long addr)
{ {
pud_t *pudp = fixmap_pud(addr); pud_t *pudp = fixmap_pud(addr);
pud_t pud = READ_ONCE(*pudp); pud_t pud = READ_ONCE(*pudp);
...@@ -1176,7 +1176,7 @@ static inline pmd_t * fixmap_pmd(unsigned long addr) ...@@ -1176,7 +1176,7 @@ static inline pmd_t * fixmap_pmd(unsigned long addr)
return pmd_offset_kimg(pudp, addr); return pmd_offset_kimg(pudp, addr);
} }
static inline pte_t * fixmap_pte(unsigned long addr) static inline pte_t *fixmap_pte(unsigned long addr)
{ {
return &bm_pte[pte_index(addr)]; return &bm_pte[pte_index(addr)];
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册