Update of /cvsroot/mkdump/mkexec/3.0/2.6/include/linux
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28946/include/linux
Modified Files:
mkexec_ex.h
Log Message:
fix for support newer linux kernel version (2.6.17)
Index: mkexec_ex.h
===================================================================
RCS file: /cvsroot/mkdump/mkexec/3.0/2.6/include/linux/mkexec_ex.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** mkexec_ex.h 14 Feb 2006 05:30:26 -0000 1.1
--- mkexec_ex.h 22 Nov 2006 00:29:08 -0000 1.2
***************
*** 60,63 ****
--- 60,64 ----
/* for pgdat_list member imcompatibility: 2.4 version */
+ #define first_pgdat() (pgdat_list)
#define next_pgdat(p) (p->node_next)
#define size_pgdat(p) (p->node_size)
***************
*** 67,74 ****
/* for pgdat_list member imcompatibility: 2.6 version */
- #define next_pgdat(p) (p->pgdat_next)
#define size_pgdat(p) (p->node_spanned_pages)
#define pfn_pgdat(p) (p->node_start_pfn)
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) */
--- 68,83 ----
/* for pgdat_list member imcompatibility: 2.6 version */
#define size_pgdat(p) (p->node_spanned_pages)
#define pfn_pgdat(p) (p->node_start_pfn)
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 17)
+ #define first_pgdat() (pgdat_list)
+ #define next_pgdat(p) (p->pgdat_next)
+ #else
+ /* >= 2.6.17 */
+ #define first_pgdat() first_online_pgdat()
+ #define next_pgdat(p) next_online_pgdat(p)
+ #endif
+
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) */
|