--- zzzz-none-000/linux-2.6.39.4/include/linux/highmem.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/highmem.h 2021-11-10 13:23:10.000000000 +0000 @@ -10,19 +10,19 @@ #include #ifndef ARCH_HAS_FLUSH_ANON_PAGE -static inline void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) +static inline void flush_anon_page(struct vm_area_struct *vma __attribute__((unused)), struct page *page __attribute__((unused)), unsigned long vmaddr __attribute__((unused))) { } #endif #ifndef ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE -static inline void flush_kernel_dcache_page(struct page *page) +static inline void flush_kernel_dcache_page(struct page *page __attribute__((unused))) { } -static inline void flush_kernel_vmap_range(void *vaddr, int size) +static inline void flush_kernel_vmap_range(void *vaddr __attribute__((unused)), int size __attribute__((unused))) { } -static inline void invalidate_kernel_vmap_range(void *vaddr, int size) +static inline void invalidate_kernel_vmap_range(void *vaddr __attribute__((unused)), int size __attribute__((unused))) { } #endif @@ -51,7 +51,7 @@ return page_address(page); } -static inline void kunmap(struct page *page) +static inline void kunmap(struct page *page __attribute__((unused))) { } @@ -62,7 +62,7 @@ } #define kmap_atomic_prot(page, prot) __kmap_atomic(page) -static inline void __kunmap_atomic(void *addr) +static inline void __kunmap_atomic(void *addr __attribute__((unused))) { pagefault_enable(); } @@ -150,7 +150,7 @@ */ static inline struct page * __alloc_zeroed_user_highpage(gfp_t movableflags, - struct vm_area_struct *vma, + struct vm_area_struct *vma __attribute__((unused)), unsigned long vaddr) { struct page *page = alloc_page_vma(GFP_HIGHUSER | movableflags, @@ -172,8 +172,8 @@ * be able to migrate in the future using move_pages() or reclaimed */ static inline struct page * -alloc_zeroed_user_highpage_movable(struct vm_area_struct *vma, - unsigned long vaddr) +alloc_zeroed_user_highpage_movable(struct vm_area_struct *vma __attribute__ ((unused)), + unsigned long vaddr __attribute__ ((unused))) { return __alloc_zeroed_user_highpage(__GFP_MOVABLE, vma, vaddr); } @@ -224,7 +224,7 @@ #ifndef __HAVE_ARCH_COPY_USER_HIGHPAGE static inline void copy_user_highpage(struct page *to, struct page *from, - unsigned long vaddr, struct vm_area_struct *vma) + unsigned long vaddr, struct vm_area_struct *vma __attribute__ ((unused))) { char *vfrom, *vto;