Lines 69-75
Link Here
|
69 |
#ifdef CONFIG_MEM_MIRROR |
69 |
#ifdef CONFIG_MEM_MIRROR |
70 |
/* Prevent linux/config.h from being included again in subsequent |
70 |
/* Prevent linux/config.h from being included again in subsequent |
71 |
* kernel headers as that would redefine CONFIG_MEM_MIRROR. */ |
71 |
* kernel headers as that would redefine CONFIG_MEM_MIRROR. */ |
|
|
72 |
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) |
72 |
#include <linux/config.h> |
73 |
#include <linux/config.h> |
|
|
74 |
#endif |
73 |
#warning "Disabling CONFIG_MEM_MIRROR because it does not work with non-GPL modules." |
75 |
#warning "Disabling CONFIG_MEM_MIRROR because it does not work with non-GPL modules." |
74 |
#warning "This will break page tracking when the fglrx kernel module is used." |
76 |
#warning "This will break page tracking when the fglrx kernel module is used." |
75 |
#undef CONFIG_MEM_MIRROR |
77 |
#undef CONFIG_MEM_MIRROR |
Lines 86-92
Link Here
|
86 |
#include <asm/unistd.h> /* for installing the patch wrapper */ |
88 |
#include <asm/unistd.h> /* for installing the patch wrapper */ |
87 |
#include <linux/module.h> |
89 |
#include <linux/module.h> |
88 |
|
90 |
|
|
|
91 |
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) |
89 |
#include <linux/config.h> |
92 |
#include <linux/config.h> |
|
|
93 |
#endif |
90 |
#include <linux/kernel.h> |
94 |
#include <linux/kernel.h> |
91 |
#include <linux/fs.h> |
95 |
#include <linux/fs.h> |
92 |
#include <linux/proc_fs.h> |
96 |
#include <linux/proc_fs.h> |