9

linux/htimer: compiler error due to unknown struct size

view full story
linux-howto

http://stackoverflow.com – One of the (kernel)headers I'm using, will not compile due to an error from the following line of code(I'd rather not post the whole header since you can look it up @lxr.free-electrons.com and it's only 1 line that has a bug in it). This is the problem(it uses a preprocessor macro): DECLARE_PER_CPU(struct tick_device, tick_cpu_device); The gcc compiler error is as follows: error: storage size of ‘per_cpu__tick_cpu_device’ isn’t known So the tick_device struct is defined but what seems to be the trouble here? (HowTos)