Re: [kernel]which the file define the variable of "phys_base"?

2014-02-25 Thread Sunny
It didn’t show me anything like that. It worked well. Here is what I have - note that I changed couple of things in printk statement but that shouldn’t affect your errors: __ Program - lx.c #include// for printk() #include

Re: [kernel]which the file define the variable of "phys_base"?

2014-02-24 Thread Sunny
Hi, I’m not sure about the “pays_base” warning, but your code runs fine in my machine. What happens if you ignore the warning and load the module anyway? - Sunny On Feb 24, 2014, at 9:04 AM, lx wrote: > hi all: > the codes is: > # > #include

[kernel]which the file define the variable of "phys_base"?

2014-02-24 Thread lx
hi all: the codes is: # #include// for printk() #include // for struct page #include // for struct page #include // for ZERO_PAGE static int __init init_hello( void ) { int i; st