[Root @ qljt globalmem] # Make-C/linux_kernel/linux-2.6.30/M =/linux_drivers/06/globalmem/modules
Make: Entering directory '/linux_kernel/linux-2.6.30'
CC [m]/linux_drivers/06/globalmem. o
In file encoded ded from include/Linux/green. h: 4,
From include/Linux/kmod. h: 22,
From include/Linux/module. h: 13,
From/linux_drivers/06/globalmem. C: 7:
Include/Linux/mmzone. h: 18: 26: Error: Linux/bounds. h: no such file or directory
Include/Linux/mmzone. h: 256: 5: Warning: "max_nr_zones" is not defined
In file encoded ded from include/Linux/green. h: 4,
From include/Linux/kmod. h: 22,
From include/Linux/module. h: 13,
From/linux_drivers/06/globalmem. C: 7:
Include/Linux/mmzone. h: 290: Error: 'max _ nr_zones 'undeclared here (not in a function)
In file encoded ded from/linux_drivers/06/globalmem. C: 11:
Include/Linux/mm. h: 446: 63: Warning: "nr_pageflags" is not defined
Include/Linux/mm. h: 494: 62: Warning: "nr_pageflags" is not defined
/Linux_drivers/06/globalmem. C: In function 'globalmem _ read ':
/Linux_drivers/06/globalmem. C: 89: Warning: Format '% d' expects type 'int', but argument 3 has type 'long unsigned int'
/Linux_drivers/06/globalmem. C: In function 'globalmem _ write ':
/Linux_drivers/06/globalmem. C: 118: Warning: Format '% d' expects type 'int', but argument 3 has type 'long unsigned int'
Make [1]: *** [/linux_drivers/06/globalmem. O] Error 1
Make: *** [_ module _/linux_drivers/06/globalmem] Error 2
Make: Leaving directory '/linux_kernel/linux-2.6.30
Solution:
Run the command in the root directory of your kernel.
# Make zimageOr
# Make prepare
This article is from csdn For blog reposted, indicate the source: http://blog.csdn.net/qiaoliang328/archive/2010/01/14/5191063.aspx