Re: [PATCH] riscv: fix flush_tlb_range() end address for flush_tlb_page()

From: Christoph Hellwig
Date: Mon Aug 12 2019 - 10:43:40 EST


> #define flush_tlb_range(vma, start, end) \
> remote_sfence_vma(mm_cpumask((vma)->vm_mm), start, (end) - (start))
> -#define flush_tlb_mm(mm) \
> +
> +static inline void flush_tlb_page(struct vm_area_struct *vma,
> + unsigned long addr) {
> + flush_tlb_range(vma, addr, addr + PAGE_SIZE);
> +}

Please put the opening brace on a line of its own.

Otherwise looks fine:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>