[PATCH]: Staging: hv: Cleanup vmalloc calls

Subsystems: staging subsystem, the rest

STALE5686d

2 messages, 2 authors, 2011-02-11 · open the first message on its own page

[PATCH]: Staging: hv: Cleanup vmalloc calls

From: "K. Y. Srinivasan" <kys@microsoft.com>
Date: 2011-02-11 22:40:55

The subject says it all. There is no need to
specify different page protection bits based
on the architecture.


Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Hank Janssen <redacted>
---
 drivers/staging/hv/hv.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/hv/hv.c b/drivers/staging/hv/hv.c
index 31b9073..2d492ad 100644
--- a/drivers/staging/hv/hv.c
+++ b/drivers/staging/hv/hv.c
@@ -230,12 +230,7 @@ int hv_init(void)
 	* Allocate the hypercall page memory
 	* virtaddr = osd_page_alloc(1);
 	*/
-#ifdef __x86_64__
 	virtaddr = __vmalloc(PAGE_SIZE, GFP_KERNEL, PAGE_KERNEL_EXEC);
-#else
-	virtaddr =  __vmalloc(PAGE_SIZE, GFP_KERNEL,
-			__pgprot(__PAGE_KERNEL & (~_PAGE_NX)));
-#endif
 
 	if (!virtaddr) {
 		DPRINT_ERR(VMBUS,
-- 
1.5.5.6

Re: [PATCH]: Staging: hv: Cleanup vmalloc calls

From: Greg KH <gregkh@suse.de>
Date: 2011-02-11 22:53:45

On Fri, Feb 11, 2011 at 02:48:45PM -0800, K. Y. Srinivasan wrote:
The subject says it all. There is no need to
specify different page protection bits based
on the architecture.
Wonderful, thanks for doing this.  I'll queue it up after your previous
patches sometime next week.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help