Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e5df7ca authored by Cong Wang's avatar Cong Wang Committed by Cong Wang
Browse files

edac: remove the second argument of k[un]map_atomic()



Signed-off-by: default avatarCong Wang <amwang@redhat.com>
parent 237f259c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -620,13 +620,13 @@ static void edac_mc_scrub_block(unsigned long page, unsigned long offset,
	if (PageHighMem(pg))
	if (PageHighMem(pg))
		local_irq_save(flags);
		local_irq_save(flags);


	virt_addr = kmap_atomic(pg, KM_BOUNCE_READ);
	virt_addr = kmap_atomic(pg);


	/* Perform architecture specific atomic scrub operation */
	/* Perform architecture specific atomic scrub operation */
	atomic_scrub(virt_addr + offset, size);
	atomic_scrub(virt_addr + offset, size);


	/* Unmap and complete */
	/* Unmap and complete */
	kunmap_atomic(virt_addr, KM_BOUNCE_READ);
	kunmap_atomic(virt_addr);


	if (PageHighMem(pg))
	if (PageHighMem(pg))
		local_irq_restore(flags);
		local_irq_restore(flags);