Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1736207 > unrolled thread
| Started by | Thomas Meyer <thomas@m3y3r.de> |
|---|---|
| First post | 2017-09-21 00:50 +0200 |
| Last post | 2017-09-21 00:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 3/7] metag: Cocci spatch "vma_pages" Thomas Meyer <thomas@m3y3r.de> - 2017-09-21 00:50 +0200
| From | Thomas Meyer <thomas@m3y3r.de> |
|---|---|
| Date | 2017-09-21 00:50 +0200 |
| Subject | [PATCH 3/7] metag: Cocci spatch "vma_pages" |
| Message-ID | <urVYB-MK-1@gated-at.bofh.it> |
Use vma_pages function on vma object instead of explicit computation. Found by coccinelle spatch "api/vma_pages.cocci" Signed-off-by: Thomas Meyer <thomas@m3y3r.de> --- diff -u -p a/arch/metag/kernel/dma.c b/arch/metag/kernel/dma.c --- a/arch/metag/kernel/dma.c +++ b/arch/metag/kernel/dma.c @@ -342,7 +342,7 @@ static int metag_dma_mmap(struct device else vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); - user_size = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; + user_size = vma_pages(vma); spin_lock_irqsave(&consistent_lock, flags); c = metag_vm_region_find(&consistent_head, (unsigned long)cpu_addr);
Back to top | Article view | linux.kernel
csiph-web