18 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
|
*/ |
20 |
|
|
21 |
– |
#ifndef __KERNEL__ |
22 |
– |
#define __KERNEL__ |
23 |
– |
#endif |
24 |
– |
|
25 |
– |
#ifndef MODULE |
26 |
– |
#define MODULE |
27 |
– |
#endif |
28 |
– |
|
21 |
|
/* determine whether to use checksummed versions of kernel symbols */ |
22 |
|
#include <linux/config.h> |
23 |
< |
#ifdef CONFIG_MODVERSIONS |
23 |
> |
|
24 |
> |
#if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS) |
25 |
|
#define MODVERSIONS |
26 |
+ |
#endif |
27 |
+ |
|
28 |
+ |
#if defined(MODVERSIONS) |
29 |
|
#include <linux/modversions.h> |
30 |
|
#endif |
31 |
|
|
32 |
|
/* modversions.h redefines kernel symbols. Now include other headers */ |
33 |
|
#include <linux/kernel.h> |
34 |
|
#include <linux/module.h> |
39 |
– |
#include <linux/init.h> |
40 |
– |
|
41 |
– |
#include <linux/kernel.h> |
42 |
– |
#include <linux/module.h> |
35 |
|
#include <linux/version.h> |
36 |
+ |
|
37 |
+ |
#include <linux/types.h> |
38 |
|
#include <linux/miscdevice.h> |
39 |
|
#include <linux/netdevice.h> |
40 |
|
#include <linux/etherdevice.h> |