Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable make linux module on linux 3.13.0-48 #188

Closed
pvc468 opened this issue Mar 29, 2015 · 2 comments
Closed

Unable make linux module on linux 3.13.0-48 #188

pvc468 opened this issue Mar 29, 2015 · 2 comments

Comments

@pvc468
Copy link

pvc468 commented Mar 29, 2015

gmake[1]: Entering directory /home/chaitu/click/linuxmodule' gmake -C /lib/modules/3.13.0-48-generic/build M=/home/chaitu/click/linuxmodule modules gmake[2]: Entering directory/usr/src/linux-headers-3.13.0-48-generic'
CC [M] /home/chaitu/click/linuxmodule/proclikefsmod.o
In file included from include/linux/cache.h:4:0,
from include/linux/time.h:4,
from include/linux/stat.h:18,
from include/linux/module.h:10,
from /home/chaitu/click/linuxmodule/proclikefs.c:33:
/home/chaitu/click/linuxmodule/proclikefs.c: In function ‘proclikefs_kill_super’:
/home/chaitu/click/linuxmodule/proclikefs.c:262:64: error: ‘union ’ has no member named ‘d_child’
struct dentry child = list_entry(next, struct dentry, d_u.d_child);
^
include/linux/kernel.h:793:29: note: in definition of macro ‘container_of’
const typeof( ((type *)0)->member ) *__mptr = (ptr);
^
/home/chaitu/click/linuxmodule/proclikefs.c:262:29: note: in expansion of macro ‘list_entry’
struct dentry *child = list_entry(next, struct dentry, d_u.d_child);
^
include/linux/kernel.h:793:48: warning: initialization from incompatible pointer type [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr);
^
include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/home/chaitu/click/linuxmodule/proclikefs.c:262:29: note: in expansion of macro ‘list_entry’
struct dentry *child = list_entry(next, struct dentry, d_u.d_child);
^
include/linux/kernel.h:793:48: warning: (near initialization for ‘child’) [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr);
^
include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/home/chaitu/click/linuxmodule/proclikefs.c:262:29: note: in expansion of macro ‘list_entry’
struct dentry *child = list_entry(next, struct dentry, d_u.d_child);
^
In file included from include/linux/compiler-gcc.h:106:0,
from include/linux/compiler.h:54,
from include/uapi/linux/stddef.h:1,
from include/linux/stddef.h:4,
from /usr/src/linux-headers-3.13.0-48-generic/include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from /home/chaitu/click/linuxmodule/proclikefs.c:33:
include/linux/compiler-gcc4.h:14:34: error: ‘union ’ has no member named ‘d_child’
#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
^
include/linux/stddef.h:17:31: note: in expansion of macro ‘__compiler_offsetof’
#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)
^
include/linux/kernel.h:794:29: note: in expansion of macro ‘offsetof’
(type *)( (char *)__mptr - offsetof(type,member) );})
^
include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/home/chaitu/click/linuxmodule/proclikefs.c:262:29: note: in expansion of macro ‘list_entry’
struct dentry *child = list_entry(next, struct dentry, d_u.d_child);
^
gmake[3]: *
* [/home/chaitu/click/linuxmodule/proclikefsmod.o] Error 1
gmake[2]: *** [module/home/chaitu/click/linuxmodule] Error 2
gmake[2]: Leaving directory /usr/src/linux-headers-3.13.0-48-generic' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory/home/chaitu/click/linuxmodule'
gmake: *** [install-linuxmodule] Error 2

@pvc468 pvc468 changed the title Unable install click on linux 3.13.0-48 Unable make click on linux 3.13.0-48 Mar 31, 2015
@pvc468 pvc468 changed the title Unable make click on linux 3.13.0-48 Unable make linux module on linux 3.13.0-48 Mar 31, 2015
@pvc468 pvc468 closed this as completed Apr 7, 2015
@talalahmad
Copy link

did you find a way to fix it?

@talalahmad
Copy link

I am getting a similar problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants