[Xenomai-git] Philippe Gerum : wrappers: no need to reserve pages passed to vm_insert_page
Module: xenomai-head Branch: master Commit: b0ac5029b3c0180dced24cdee24e67a3ab719dd2 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=b0ac5029b3c0180dced24cdee24e67a3ab719dd2 Author: Philippe Gerum r...@xenomai.org Date: Wed Jun 9 09:35:58 2010 +0200 wrappers: no need to reserve pages passed to vm_insert_page --- include/asm-generic/wrappers.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index ecc1867..a7349db 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -343,10 +343,9 @@ unsigned long find_next_bit(const unsigned long *addr, /* VM */ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,15) defined(CONFIG_MMU) -#define wrap_remap_vm_page(vma,from,to) ({ \ -vma-vm_flags |= VM_RESERVED; \ -vm_insert_page(vma,from,vmalloc_to_page((void *)to)); \ -}) +#define wrap_remap_vm_page(vma,from,to) \ +vm_insert_page(vma,from,vmalloc_to_page((void *)to)) + #define wrap_remap_io_page_range(vma,from,to,size,prot) ({\ (vma)-vm_page_prot = pgprot_noncached((vma)-vm_page_prot); \ /* Sets VM_RESERVED | VM_IO | VM_PFNMAP on the vma. */ \ ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : wrappers: no need to reserve pages passed to vm_insert_page
Module: xenomai-2.5 Branch: master Commit: b0ac5029b3c0180dced24cdee24e67a3ab719dd2 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=b0ac5029b3c0180dced24cdee24e67a3ab719dd2 Author: Philippe Gerum r...@xenomai.org Date: Wed Jun 9 09:35:58 2010 +0200 wrappers: no need to reserve pages passed to vm_insert_page --- include/asm-generic/wrappers.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index ecc1867..a7349db 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -343,10 +343,9 @@ unsigned long find_next_bit(const unsigned long *addr, /* VM */ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,15) defined(CONFIG_MMU) -#define wrap_remap_vm_page(vma,from,to) ({ \ -vma-vm_flags |= VM_RESERVED; \ -vm_insert_page(vma,from,vmalloc_to_page((void *)to)); \ -}) +#define wrap_remap_vm_page(vma,from,to) \ +vm_insert_page(vma,from,vmalloc_to_page((void *)to)) + #define wrap_remap_io_page_range(vma,from,to,size,prot) ({\ (vma)-vm_page_prot = pgprot_noncached((vma)-vm_page_prot); \ /* Sets VM_RESERVED | VM_IO | VM_PFNMAP on the vma. */ \ ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : wrappers: no need to reserve pages passed to vm_insert_page
Module: xenomai-rpm Branch: queue/vfile Commit: 6a9e04af78dcc9022a24c3730c50f59ef35eb6d1 URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=6a9e04af78dcc9022a24c3730c50f59ef35eb6d1 Author: Philippe Gerum r...@xenomai.org Date: Wed Jun 9 09:35:58 2010 +0200 wrappers: no need to reserve pages passed to vm_insert_page --- include/asm-generic/wrappers.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index ecc1867..a7349db 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -343,10 +343,9 @@ unsigned long find_next_bit(const unsigned long *addr, /* VM */ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,15) defined(CONFIG_MMU) -#define wrap_remap_vm_page(vma,from,to) ({ \ -vma-vm_flags |= VM_RESERVED; \ -vm_insert_page(vma,from,vmalloc_to_page((void *)to)); \ -}) +#define wrap_remap_vm_page(vma,from,to) \ +vm_insert_page(vma,from,vmalloc_to_page((void *)to)) + #define wrap_remap_io_page_range(vma,from,to,size,prot) ({\ (vma)-vm_page_prot = pgprot_noncached((vma)-vm_page_prot); \ /* Sets VM_RESERVED | VM_IO | VM_PFNMAP on the vma. */ \ ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : wrappers: no need to reserve pages passed to vm_insert_page
Module: xenomai-rpm Branch: for-upstream Commit: e740665f1c0c4d8a2a9394256eb0cdcab6529102 URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=e740665f1c0c4d8a2a9394256eb0cdcab6529102 Author: Philippe Gerum r...@xenomai.org Date: Wed Jun 9 09:35:58 2010 +0200 wrappers: no need to reserve pages passed to vm_insert_page --- include/asm-generic/wrappers.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index ecc1867..a7349db 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -343,10 +343,9 @@ unsigned long find_next_bit(const unsigned long *addr, /* VM */ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,15) defined(CONFIG_MMU) -#define wrap_remap_vm_page(vma,from,to) ({ \ -vma-vm_flags |= VM_RESERVED; \ -vm_insert_page(vma,from,vmalloc_to_page((void *)to)); \ -}) +#define wrap_remap_vm_page(vma,from,to) \ +vm_insert_page(vma,from,vmalloc_to_page((void *)to)) + #define wrap_remap_io_page_range(vma,from,to,size,prot) ({\ (vma)-vm_page_prot = pgprot_noncached((vma)-vm_page_prot); \ /* Sets VM_RESERVED | VM_IO | VM_PFNMAP on the vma. */ \ ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : wrappers: no need to reserve pages passed to vm_insert_page
Module: xenomai-rpm Branch: for-upstream Commit: 6a9e04af78dcc9022a24c3730c50f59ef35eb6d1 URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=6a9e04af78dcc9022a24c3730c50f59ef35eb6d1 Author: Philippe Gerum r...@xenomai.org Date: Wed Jun 9 09:35:58 2010 +0200 wrappers: no need to reserve pages passed to vm_insert_page --- include/asm-generic/wrappers.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index ecc1867..a7349db 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -343,10 +343,9 @@ unsigned long find_next_bit(const unsigned long *addr, /* VM */ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,15) defined(CONFIG_MMU) -#define wrap_remap_vm_page(vma,from,to) ({ \ -vma-vm_flags |= VM_RESERVED; \ -vm_insert_page(vma,from,vmalloc_to_page((void *)to)); \ -}) +#define wrap_remap_vm_page(vma,from,to) \ +vm_insert_page(vma,from,vmalloc_to_page((void *)to)) + #define wrap_remap_io_page_range(vma,from,to,size,prot) ({\ (vma)-vm_page_prot = pgprot_noncached((vma)-vm_page_prot); \ /* Sets VM_RESERVED | VM_IO | VM_PFNMAP on the vma. */ \ ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : wrappers: no need to reserve pages passed to vm_insert_page
Module: xenomai-rpm Branch: for-upstream Commit: bbcc7c1d5e8101fca9bc81e59a52b372ff33fabd URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=bbcc7c1d5e8101fca9bc81e59a52b372ff33fabd Author: Philippe Gerum r...@xenomai.org Date: Wed Jun 9 09:35:58 2010 +0200 wrappers: no need to reserve pages passed to vm_insert_page --- include/asm-generic/wrappers.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index ecc1867..a7349db 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -343,10 +343,9 @@ unsigned long find_next_bit(const unsigned long *addr, /* VM */ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,15) defined(CONFIG_MMU) -#define wrap_remap_vm_page(vma,from,to) ({ \ -vma-vm_flags |= VM_RESERVED; \ -vm_insert_page(vma,from,vmalloc_to_page((void *)to)); \ -}) +#define wrap_remap_vm_page(vma,from,to) \ +vm_insert_page(vma,from,vmalloc_to_page((void *)to)) + #define wrap_remap_io_page_range(vma,from,to,size,prot) ({\ (vma)-vm_page_prot = pgprot_noncached((vma)-vm_page_prot); \ /* Sets VM_RESERVED | VM_IO | VM_PFNMAP on the vma. */ \ ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : wrappers: no need to reserve pages passed to vm_insert_page
Module: xenomai-rpm Branch: queue/mayday Commit: bbcc7c1d5e8101fca9bc81e59a52b372ff33fabd URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=bbcc7c1d5e8101fca9bc81e59a52b372ff33fabd Author: Philippe Gerum r...@xenomai.org Date: Wed Jun 9 09:35:58 2010 +0200 wrappers: no need to reserve pages passed to vm_insert_page --- include/asm-generic/wrappers.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index ecc1867..a7349db 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -343,10 +343,9 @@ unsigned long find_next_bit(const unsigned long *addr, /* VM */ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,15) defined(CONFIG_MMU) -#define wrap_remap_vm_page(vma,from,to) ({ \ -vma-vm_flags |= VM_RESERVED; \ -vm_insert_page(vma,from,vmalloc_to_page((void *)to)); \ -}) +#define wrap_remap_vm_page(vma,from,to) \ +vm_insert_page(vma,from,vmalloc_to_page((void *)to)) + #define wrap_remap_io_page_range(vma,from,to,size,prot) ({\ (vma)-vm_page_prot = pgprot_noncached((vma)-vm_page_prot); \ /* Sets VM_RESERVED | VM_IO | VM_PFNMAP on the vma. */ \ ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : wrappers: no need to reserve pages passed to vm_insert_page
Module: xenomai-rpm Branch: queue/mayday Commit: 21f59f47cd8dc507ecf9afe509443ba8ec5949ad URL: http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=21f59f47cd8dc507ecf9afe509443ba8ec5949ad Author: Philippe Gerum r...@xenomai.org Date: Wed Jun 9 09:35:58 2010 +0200 wrappers: no need to reserve pages passed to vm_insert_page --- include/asm-generic/wrappers.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h index ecc1867..a7349db 100644 --- a/include/asm-generic/wrappers.h +++ b/include/asm-generic/wrappers.h @@ -343,10 +343,9 @@ unsigned long find_next_bit(const unsigned long *addr, /* VM */ #if LINUX_VERSION_CODE = KERNEL_VERSION(2,6,15) defined(CONFIG_MMU) -#define wrap_remap_vm_page(vma,from,to) ({ \ -vma-vm_flags |= VM_RESERVED; \ -vm_insert_page(vma,from,vmalloc_to_page((void *)to)); \ -}) +#define wrap_remap_vm_page(vma,from,to) \ +vm_insert_page(vma,from,vmalloc_to_page((void *)to)) + #define wrap_remap_io_page_range(vma,from,to,size,prot) ({\ (vma)-vm_page_prot = pgprot_noncached((vma)-vm_page_prot); \ /* Sets VM_RESERVED | VM_IO | VM_PFNMAP on the vma. */ \ ___ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git