[hp-parisc:for-next 3/3] include/linux/kernel.h:836:48: error: initialization from incompatible pointer type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git for-next
head:   4dafeb82a4b7ccfa25c7517d09832be488994c28
commit: 4dafeb82a4b7ccfa25c7517d09832be488994c28 [3/3] parisc: Switch to GENERIC_SCHED_CLOCK implementation
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4dafeb82a4b7ccfa25c7517d09832be488994c28
        # save the attached .config to linux build tree
        make.cross ARCH=parisc 

All error/warnings (new ones prefixed by >>):

>> drivers/clocksource/mps2-timer.c:38: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/mps2-timer.c:14:
   drivers/clocksource/mps2-timer.c: In function 'to_mps2_clkevt':
>> include/linux/kernel.h:836:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                                                   ^
>> drivers/clocksource/mps2-timer.c:50:9: note: in expansion of macro 'container_of'
     return container_of(c, struct clockevent_mps2, clkevt);
            ^~~~~~~~~~~~
   drivers/clocksource/mps2-timer.c: In function 'mps2_clockevent_init':
>> drivers/clocksource/mps2-timer.c:154:24: error: 'CLOCK_EVT_FEAT_PERIODIC' undeclared (first use in this function)
     ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT;
                           ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/clocksource/mps2-timer.c:154:24: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/clocksource/mps2-timer.c:154:50: error: 'CLOCK_EVT_FEAT_ONESHOT' undeclared (first use in this function)
     ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT;
                                                     ^~~~~~~~~~~~~~~~~~~~~~
   drivers/clocksource/mps2-timer.c:156:53: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     ce->clkevt.set_state_shutdown = mps2_timer_shutdown,
                                                        ^
   drivers/clocksource/mps2-timer.c:157:57: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     ce->clkevt.set_state_periodic = mps2_timer_set_periodic,
                                                            ^
   drivers/clocksource/mps2-timer.c:158:52: warning: left-hand operand of comma expression has no effect [-Wunused-value]
     ce->clkevt.set_state_oneshot = mps2_timer_shutdown,
                                                       ^
>> drivers/clocksource/mps2-timer.c:170:2: error: implicit declaration of function 'clockevents_config_and_register' [-Werror=implicit-function-declaration]
     clockevents_config_and_register(&ce->clkevt, rate, 0xf, 0xffffffff);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +836 include/linux/kernel.h

^1da177e Linus Torvalds 2005-04-16  830   * @ptr:	the pointer to the member.
^1da177e Linus Torvalds 2005-04-16  831   * @type:	the type of the container struct this is embedded in.
^1da177e Linus Torvalds 2005-04-16  832   * @member:	the name of the member within the struct.
^1da177e Linus Torvalds 2005-04-16  833   *
^1da177e Linus Torvalds 2005-04-16  834   */
^1da177e Linus Torvalds 2005-04-16  835  #define container_of(ptr, type, member) ({			\
^1da177e Linus Torvalds 2005-04-16 @836  	const typeof( ((type *)0)->member ) *__mptr = (ptr);	\
^1da177e Linus Torvalds 2005-04-16  837  	(type *)( (char *)__mptr - offsetof(type,member) );})
^1da177e Linus Torvalds 2005-04-16  838  
b9d4f426 Arnaud Lacombe 2011-07-25  839  /* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */

:::::: The code at line 836 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux