mirror of
https://github.com/szehl/ath9k-hmac.git
synced 2025-03-14 16:27:04 +00:00
29 lines
841 B
C
Executable File
29 lines
841 B
C
Executable File
#ifndef __BACKPORT_MM_H
|
|
#define __BACKPORT_MM_H
|
|
#include_next <linux/mm.h>
|
|
|
|
#ifndef VM_NODUMP
|
|
/*
|
|
* defined here to allow things to compile but technically
|
|
* using this for memory regions will yield in a no-op on newer
|
|
* kernels but on older kernels (v3.3 and older) this bit was used
|
|
* for VM_ALWAYSDUMP. The goal was to remove this bit moving forward
|
|
* and since we can't skip the core dump on old kernels we just make
|
|
* this bit name now a no-op.
|
|
*
|
|
* For details see commits: 909af7 accb61fe cdaaa7003
|
|
*/
|
|
#define VM_NODUMP 0x0
|
|
#endif
|
|
|
|
#ifndef VM_DONTDUMP
|
|
#define VM_DONTDUMP VM_NODUMP
|
|
#endif
|
|
|
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0))
|
|
#define vm_iomap_memory LINUX_BACKPORT(vm_iomap_memory)
|
|
int vm_iomap_memory(struct vm_area_struct *vma, phys_addr_t start, unsigned long len);
|
|
#endif
|
|
|
|
#endif /* __BACKPORT_MM_H */
|