[lkml]   [2017]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectdrivers/clocksource/timer-of.h:35:28: error: field 'clkevt' has incomplete type
Hi Daniel,

FYI, the error/warning still remains.

tree: master
head: 89a55278dee487b172fb16295ccb2d0b2a1b319b
commit: dc11bae78529526605c5c45c369c9512fd012093 clocksource/drivers: Add timer-of common init routine
date: 9 weeks ago
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout dc11bae78529526605c5c45c369c9512fd012093
# save the attached .config to linux build tree
make.cross ARCH=ia64

All errors (new ones prefixed by >>):

In file included from drivers/clocksource/timer-of.c:25:0:
>> drivers/clocksource/timer-of.h:35:28: error: field 'clkevt' has incomplete type
struct clock_event_device clkevt;
In file included from include/linux/clk.h:16:0,
from drivers/clocksource/timer-of.c:18:
drivers/clocksource/timer-of.h: In function 'to_timer_of':
include/linux/kernel.h:854:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
drivers/clocksource/timer-of.h:44:9: note: in expansion of macro 'container_of'
return container_of(clkevt, struct timer_of, clkevt);
drivers/clocksource/timer-of.c: In function 'timer_irq_init':
drivers/clocksource/timer-of.c:63:8: error: dereferencing pointer to incomplete type 'struct clock_event_device'
clkevt->irq = of_irq->irq;
cc1: some warnings being treated as errors

vim +/clkevt +35 drivers/clocksource/timer-of.h

33 struct timer_of {
34 unsigned int flags;
> 35 struct clock_event_device clkevt;
36 struct of_timer_base of_base;
37 struct of_timer_irq of_irq;
38 struct of_timer_clk of_clk;
39 void *private_data;
40 };

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation
[unhandled content-type:application/gzip]
 \ /
  Last update: 2017-08-13 09:08    [W:0.028 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site