[wsa:renesas/topic/i2c-core-dma 11/13] include/linux/sched/task_stack.h:80:19: error: static declaration of 'object_is_on_stack' follows non-static declaration

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/topic/i2c-core-dma
head:   12ce22166e7da632e9467c22be6014c36afa9a9c
commit: d624178d6427170c2c8cbbf92178332594580ffd [11/13] i2c: add helper to determine if DMA is favoured
config: i386-randconfig-x078-06041529 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout d624178d6427170c2c8cbbf92178332594580ffd
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/i2c/i2c-core-base.c:28:0:
   include/linux/i2c.h: In function 'i2c_check_msg_for_dma':
   include/linux/i2c.h:777:36: error: implicit declaration of function 'object_is_on_stack' [-Werror=implicit-function-declaration]
     if (!virt_addr_valid(msg->buf) || object_is_on_stack(msg->buf)) {
                                       ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/perf_regs.h:4:0,
                    from include/linux/perf_event.h:54,
                    from include/linux/trace_events.h:9,
                    from include/trace/trace_events.h:19,
                    from include/trace/define_trace.h:95,
                    from include/trace/events/i2c.h:150,
                    from drivers/i2c/i2c-core-base.c:49:
   include/linux/sched/task_stack.h: At top level:
>> include/linux/sched/task_stack.h:80:19: error: static declaration of 'object_is_on_stack' follows non-static declaration
    static inline int object_is_on_stack(void *obj)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers/i2c/i2c-core-base.c:28:0:
   include/linux/i2c.h:777:36: note: previous implicit declaration of 'object_is_on_stack' was here
     if (!virt_addr_valid(msg->buf) || object_is_on_stack(msg->buf)) {
                                       ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers//gpu/drm/i915/i915_drv.h:37:0,
                    from drivers//gpu/drm/i915/i915_trace_points.c:8:
   include/linux/i2c.h: In function 'i2c_check_msg_for_dma':
   include/linux/i2c.h:777:36: error: implicit declaration of function 'object_is_on_stack' [-Werror=implicit-function-declaration]
     if (!virt_addr_valid(msg->buf) || object_is_on_stack(msg->buf)) {
                                       ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/perf_regs.h:4:0,
                    from include/linux/perf_event.h:54,
                    from include/linux/trace_events.h:9,
                    from include/trace/trace_events.h:19,
                    from include/trace/define_trace.h:95,
                    from drivers//gpu/drm/i915/i915_trace.h:986,
                    from drivers//gpu/drm/i915/i915_trace_points.c:12:
   include/linux/sched/task_stack.h: At top level:
>> include/linux/sched/task_stack.h:80:19: error: static declaration of 'object_is_on_stack' follows non-static declaration
    static inline int object_is_on_stack(void *obj)
                      ^~~~~~~~~~~~~~~~~~
   In file included from drivers//gpu/drm/i915/i915_drv.h:37:0,
                    from drivers//gpu/drm/i915/i915_trace_points.c:8:
   include/linux/i2c.h:777:36: note: previous implicit declaration of 'object_is_on_stack' was here
     if (!virt_addr_valid(msg->buf) || object_is_on_stack(msg->buf)) {
                                       ^~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/object_is_on_stack +80 include/linux/sched/task_stack.h

f3ac6067 Ingo Molnar 2017-02-03  74  static inline void put_task_stack(struct task_struct *tsk) {}
f3ac6067 Ingo Molnar 2017-02-03  75  #endif
f3ac6067 Ingo Molnar 2017-02-03  76  
f3ac6067 Ingo Molnar 2017-02-03  77  #define task_stack_end_corrupted(task) \
f3ac6067 Ingo Molnar 2017-02-03  78  		(*(end_of_stack(task)) != STACK_END_MAGIC)
f3ac6067 Ingo Molnar 2017-02-03  79  
f3ac6067 Ingo Molnar 2017-02-03 @80  static inline int object_is_on_stack(void *obj)
f3ac6067 Ingo Molnar 2017-02-03  81  {
f3ac6067 Ingo Molnar 2017-02-03  82  	void *stack = task_stack_page(current);
f3ac6067 Ingo Molnar 2017-02-03  83  

:::::: The code at line 80 was first introduced by commit
:::::: f3ac60671954c8d413532627b1be13a76f394c49 sched/headers: Move task-stack related APIs from <linux/sched.h> to <linux/sched/task_stack.h>

:::::: TO: Ingo Molnar <mingo@xxxxxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxxxxx>

---
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 GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux