* [uml-devel] [PATCH 07/62] um: remove the second argument of k[un]map_atomic()
[not found] <1322371662-26166-1-git-send-email-amwang@redhat.com>
@ 2011-11-27 5:26 ` Cong Wang
0 siblings, 0 replies; only message in thread
From: Cong Wang @ 2011-11-27 5:26 UTC (permalink / raw)
To: linux-kernel
Cc: Cong Wang, user-mode-linux-devel, Richard Weinberger, Jeff Dike,
Al Viro, user-mode-linux-user, akpm
Signed-off-by: Cong Wang <amwang@redhat.com>
---
arch/um/kernel/skas/uaccess.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/um/kernel/skas/uaccess.c b/arch/um/kernel/skas/uaccess.c
index 9fefd92..cd7df79 100644
--- a/arch/um/kernel/skas/uaccess.c
+++ b/arch/um/kernel/skas/uaccess.c
@@ -69,7 +69,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,
return -1;
page = pte_page(*pte);
- addr = (unsigned long) kmap_atomic(page, KM_UML_USERCOPY) +
+ addr = (unsigned long) kmap_atomic(page) +
(addr & ~PAGE_MASK);
current->thread.fault_catcher = &buf;
@@ -82,7 +82,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,
current->thread.fault_catcher = NULL;
- kunmap_atomic((void *)addr, KM_UML_USERCOPY);
+ kunmap_atomic((void *)addr);
return n;
}
--
1.7.4.4
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-27 5:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1322371662-26166-1-git-send-email-amwang@redhat.com>
2011-11-27 5:26 ` [uml-devel] [PATCH 07/62] um: remove the second argument of k[un]map_atomic() Cong Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox