All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-06-26  1:25 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-06-26  1:25 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Tejun Heo, Christoph Lameter

[-- Attachment #1: Type: text/plain, Size: 6047 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   da2f6aba4a21f8da3331e5251a117c52764da579
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   2 years, 10 months ago
config: mn10300-allyesconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 4.9.0
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from arch/mn10300/kernel/kprobes.c:20:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from arch/mn10300/kernel/kprobes.c:20:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
--
   In file included from kernel/kprobes.c:34:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from kernel/kprobes.c:34:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
   In file included from include/linux/cpumask.h:9:0,
                    from include/linux/smp.h:12,
                    from arch/mn10300/include/asm/irqflags.h:17,
                    from arch/mn10300/include/asm/atomic.h:14,
                    from include/linux/atomic.h:4,
                    from include/linux/mutex.h:18,
                    from include/linux/notifier.h:13,
                    from include/linux/kprobes.h:35,
                    from kernel/kprobes.c:34:
   kernel/kprobes.c: In function 'write_enabled_file_bool':
   include/linux/kernel.h:663:17: warning: comparison of distinct pointer types lacks a cast
     (void) (&_min1 == &_min2);  \
                    ^
   kernel/kprobes.c:2321:13: note: in expansion of macro 'min'
     buf_size = min(count, (sizeof(buf)-1));
                ^
   kernel/kprobes.c: At top level:
   kernel/kprobes.c:1188:23: warning: 'cleanup_rp_inst' defined but not used [-Wunused-function]
    static void __kprobes cleanup_rp_inst(struct kretprobe *rp)
                          ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27506 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
  2016-09-12 14:04 ` Christoph Lameter
@ 2016-09-12 14:11   ` Fengguang Wu
  0 siblings, 0 replies; 14+ messages in thread
From: Fengguang Wu @ 2016-09-12 14:11 UTC (permalink / raw)
  To: Christoph Lameter
  Cc: ananth, kbuild-all, linux-kernel, Tejun Heo, Ravi Bangoria,
	naohiro.aota, David Howells

CC David Howells. It looks this error is specific to mn10300 and
allmodconfig/allyesconfig.

The last solution is to quiet reports for such old errors, if
mn10300-allmodconfig/allyesconfig are not interested combinations.

Thanks,
Fengguang

On Mon, Sep 12, 2016 at 09:04:07AM -0500, Christoph Lameter wrote:
>Could someone figure this out? Its been there for years.
>
>On Sun, 11 Sep 2016, kbuild test robot wrote:
>
>> Hi Christoph,
>>
>> FYI, the error/warning still remains.
>>
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   98ac9a608dc79ba8a20cee77fe959a6dfccdaa63
>> commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
>> date:   3 years, 1 month ago
>> config: mn10300-allmodconfig (attached as .config)
>> compiler: am33_2.0-linux-gcc (GCC) 4.9.0
>> 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 abec1a806e0c3cf168999667d5fb6218398ef12a
>>         # save the attached .config to linux build tree
>>         make.cross ARCH=mn10300
>>
>> All errors (new ones prefixed by >>):
>>
>>    In file included from net/dccp/probe.c:26:0:
>>    include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> >> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
>>      return (&__get_cpu_var(kprobe_ctlblk));
>>      ^
>>    In file included from arch/mn10300/include/asm/percpu.h:1:0,
>>                     from include/linux/percpu.h:10,
>>                     from include/linux/kprobes.h:38,
>>                     from net/dccp/probe.c:26:
>>    include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
>>     #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
>>                                 ^
>>    include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
>>      return (&__get_cpu_var(kprobe_ctlblk));
>>               ^
>>
>> vim +332 include/linux/kprobes.h
>>
>> ef53d9c5e Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
>> b94cce926 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
>> ^1da177e4 Linus Torvalds             2005-04-16  318
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  321  {
>> b76834bc1 Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  323  }
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  324
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  326  {
>> b76834bc1 Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  328  }
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  329
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  331  {
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  333  }
>> e65845235 Ananth N Mavinakayanahalli 2005-11-07  334
>> ^1da177e4 Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
>> ^1da177e4 Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
>> 9861668f7 Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
>> 9861668f7 Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
>> ^1da177e4 Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
>> ^1da177e4 Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);
>>
>> :::::: The code at line 332 was first introduced by commit
>> :::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes
>>
>> :::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
>> :::::: CC: Linus Torvalds <torvalds@g5.osdl.org>
>>
>> ---
>> 0-DAY kernel test infrastructure                Open Source Technology Center
>> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
>>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
  2016-09-11  0:43 kbuild test robot
@ 2016-09-12 14:04 ` Christoph Lameter
  2016-09-12 14:11   ` Fengguang Wu
  0 siblings, 1 reply; 14+ messages in thread
From: Christoph Lameter @ 2016-09-12 14:04 UTC (permalink / raw)
  To: ananth
  Cc: kbuild test robot, kbuild-all, linux-kernel, Tejun Heo,
	Ravi Bangoria, naohiro.aota

[-- Attachment #1: Type: text/plain, Size: 4446 bytes --]

Could someone figure this out? Its been there for years.

On Sun, 11 Sep 2016, kbuild test robot wrote:

> Hi Christoph,
>
> FYI, the error/warning still remains.
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   98ac9a608dc79ba8a20cee77fe959a6dfccdaa63
> commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
> date:   3 years, 1 month ago
> config: mn10300-allmodconfig (attached as .config)
> compiler: am33_2.0-linux-gcc (GCC) 4.9.0
> 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 abec1a806e0c3cf168999667d5fb6218398ef12a
>         # save the attached .config to linux build tree
>         make.cross ARCH=mn10300
>
> All errors (new ones prefixed by >>):
>
>    In file included from net/dccp/probe.c:26:0:
>    include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
> >> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
>      return (&__get_cpu_var(kprobe_ctlblk));
>      ^
>    In file included from arch/mn10300/include/asm/percpu.h:1:0,
>                     from include/linux/percpu.h:10,
>                     from include/linux/kprobes.h:38,
>                     from net/dccp/probe.c:26:
>    include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
>     #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
>                                 ^
>    include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
>      return (&__get_cpu_var(kprobe_ctlblk));
>               ^
>
> vim +332 include/linux/kprobes.h
>
> ef53d9c5e Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
> b94cce926 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
> ^1da177e4 Linus Torvalds             2005-04-16  318
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  321  {
> b76834bc1 Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  323  }
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  324
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  326  {
> b76834bc1 Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  328  }
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  329
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  331  {
> e65845235 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  333  }
> e65845235 Ananth N Mavinakayanahalli 2005-11-07  334
> ^1da177e4 Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
> ^1da177e4 Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
> 9861668f7 Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
> 9861668f7 Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
> ^1da177e4 Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
> ^1da177e4 Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);
>
> :::::: The code at line 332 was first introduced by commit
> :::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes
>
> :::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
> :::::: CC: Linus Torvalds <torvalds@g5.osdl.org>
>
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
>

[-- Attachment #2: Type: application/octet-stream, Size: 27046 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-09-11  0:43 kbuild test robot
  2016-09-12 14:04 ` Christoph Lameter
  0 siblings, 1 reply; 14+ messages in thread
From: kbuild test robot @ 2016-09-11  0:43 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: kbuild-all, linux-kernel, Tejun Heo

[-- Attachment #1: Type: text/plain, Size: 4214 bytes --]

Hi Christoph,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   98ac9a608dc79ba8a20cee77fe959a6dfccdaa63
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   3 years, 1 month ago
config: mn10300-allmodconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 4.9.0
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from net/dccp/probe.c:26:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from net/dccp/probe.c:26:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^

vim +332 include/linux/kprobes.h

ef53d9c5e Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce926 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e4 Linus Torvalds             2005-04-16  318  
e65845235 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e65845235 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e65845235 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc1 Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e65845235 Ananth N Mavinakayanahalli 2005-11-07  323  }
e65845235 Ananth N Mavinakayanahalli 2005-11-07  324  
e65845235 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e65845235 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc1 Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e65845235 Ananth N Mavinakayanahalli 2005-11-07  328  }
e65845235 Ananth N Mavinakayanahalli 2005-11-07  329  
e65845235 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e65845235 Ananth N Mavinakayanahalli 2005-11-07  331  {
e65845235 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e65845235 Ananth N Mavinakayanahalli 2005-11-07  333  }
e65845235 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e4 Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e4 Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f7 Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f7 Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e4 Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e4 Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27046 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-09-03 23:35 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-09-03 23:35 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: kbuild-all, linux-kernel, Tejun Heo

[-- Attachment #1: Type: text/plain, Size: 4206 bytes --]

Hi Christoph,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4b30b6d126ca8b23b319f5329570f6855736a095
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   3 years ago
config: mn10300-allmodconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 4.9.0
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from arch/mn10300/kernel/kprobes.c:20:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from arch/mn10300/kernel/kprobes.c:20:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27043 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-08-22 17:59 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-08-22 17:59 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: kbuild-all, linux-kernel, Tejun Heo

[-- Attachment #1: Type: text/plain, Size: 6080 bytes --]

Hi Christoph,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fa8410b355251fd30341662a40ac6b22d3e38468
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   3 years ago
config: mn10300-allyesconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 4.9.0
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from drivers/misc/lkdtm.c:38:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/percpu-rwsem.h:6,
                    from include/linux/fs.h:28,
                    from drivers/misc/lkdtm.c:35:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
--
   In file included from kernel/kprobes.c:34:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from kernel/kprobes.c:34:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
   In file included from include/linux/cpumask.h:9:0,
                    from include/linux/smp.h:12,
                    from arch/mn10300/include/asm/irqflags.h:17,
                    from arch/mn10300/include/asm/atomic.h:14,
                    from include/linux/atomic.h:4,
                    from include/linux/mutex.h:18,
                    from include/linux/notifier.h:13,
                    from include/linux/kprobes.h:35,
                    from kernel/kprobes.c:34:
   kernel/kprobes.c: In function 'write_enabled_file_bool':
   include/linux/kernel.h:663:17: warning: comparison of distinct pointer types lacks a cast
     (void) (&_min1 == &_min2);  \
                    ^
   kernel/kprobes.c:2321:13: note: in expansion of macro 'min'
     buf_size = min(count, (sizeof(buf)-1));
                ^
   kernel/kprobes.c: At top level:
   kernel/kprobes.c:1188:23: warning: 'cleanup_rp_inst' defined but not used [-Wunused-function]
    static void __kprobes cleanup_rp_inst(struct kretprobe *rp)
                          ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27325 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-08-14 10:33 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-08-14 10:33 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: kbuild-all, linux-kernel, Tejun Heo

[-- Attachment #1: Type: text/plain, Size: 6020 bytes --]

Hi Christoph,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   118253a593bd1c57de2d1193df1ccffe1abe745b
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   3 years ago
config: mn10300-allyesconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 4.9.0
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from net/sctp/probe.c:28:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from net/sctp/probe.c:28:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
--
   In file included from kernel/kprobes.c:34:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from kernel/kprobes.c:34:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
   In file included from include/linux/cpumask.h:9:0,
                    from include/linux/smp.h:12,
                    from arch/mn10300/include/asm/irqflags.h:17,
                    from arch/mn10300/include/asm/atomic.h:14,
                    from include/linux/atomic.h:4,
                    from include/linux/mutex.h:18,
                    from include/linux/notifier.h:13,
                    from include/linux/kprobes.h:35,
                    from kernel/kprobes.c:34:
   kernel/kprobes.c: In function 'write_enabled_file_bool':
   include/linux/kernel.h:663:17: warning: comparison of distinct pointer types lacks a cast
     (void) (&_min1 == &_min2);  \
                    ^
   kernel/kprobes.c:2321:13: note: in expansion of macro 'min'
     buf_size = min(count, (sizeof(buf)-1));
                ^
   kernel/kprobes.c: At top level:
   kernel/kprobes.c:1188:23: warning: 'cleanup_rp_inst' defined but not used [-Wunused-function]
    static void __kprobes cleanup_rp_inst(struct kretprobe *rp)
                          ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27325 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-07-17  9:42 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-07-17  9:42 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Tejun Heo, Christoph Lameter

[-- Attachment #1: Type: text/plain, Size: 4207 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   47ef4ad2684d380dd6d596140fb79395115c3950
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   2 years, 11 months ago
config: mn10300-allmodconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 4.9.0
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from arch/mn10300/kernel/kprobes.c:20:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from arch/mn10300/kernel/kprobes.c:20:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27253 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-07-03  2:23 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-07-03  2:23 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Tejun Heo, Christoph Lameter

[-- Attachment #1: Type: text/plain, Size: 4181 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   99b0f54e6a3a4012aacfaada5644a8e520447d80
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   2 years, 10 months ago
config: mn10300-allyesconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 4.9.0
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from net/dccp/probe.c:26:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from net/dccp/probe.c:26:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27506 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-06-12 23:42 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-06-12 23:42 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Tejun Heo, Christoph Lameter

[-- Attachment #1: Type: text/plain, Size: 4207 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5edb56491d4812c42175980759da53388e5d86f5
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   2 years, 10 months ago
config: mn10300-allyesconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 4.9.0
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from arch/mn10300/kernel/kprobes.c:20:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from arch/mn10300/kernel/kprobes.c:20:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27506 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-06-05 13:31 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-06-05 13:31 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Tejun Heo, Christoph Lameter

[-- Attachment #1: Type: text/plain, Size: 4240 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   049ec1b5a76d34a6980cccdb7c0baeb4eed7a993
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   2 years, 9 months ago
config: mn10300-allmodconfig (attached as .config)
compiler: am33_2.0-linux-gcc (GCC) 4.9.0
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from drivers/misc/lkdtm.c:38:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/percpu-rwsem.h:6,
                    from include/linux/fs.h:28,
                    from drivers/misc/lkdtm.c:35:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27253 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-04-17  6:30 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-04-17  6:30 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: kbuild-all, linux-kernel, Tejun Heo

[-- Attachment #1: Type: text/plain, Size: 6138 bytes --]

Hi Christoph,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b9f5dba225aede4518ab0a7374c2dc38c7c049ce
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   2 years, 8 months ago
config: mn10300-allmodconfig (attached as .config)
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from kernel/sysctl.c:58:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/topology.h:34,
                    from include/linux/gfp.h:7,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from kernel/sysctl.c:21:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
--
   In file included from kernel/kprobes.c:34:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from kernel/kprobes.c:34:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
   In file included from include/linux/cpumask.h:9:0,
                    from include/linux/smp.h:12,
                    from arch/mn10300/include/asm/irqflags.h:17,
                    from arch/mn10300/include/asm/atomic.h:14,
                    from include/linux/atomic.h:4,
                    from include/linux/mutex.h:18,
                    from include/linux/notifier.h:13,
                    from include/linux/kprobes.h:35,
                    from kernel/kprobes.c:34:
   kernel/kprobes.c: In function 'write_enabled_file_bool':
   include/linux/kernel.h:663:17: warning: comparison of distinct pointer types lacks a cast
     (void) (&_min1 == &_min2);  \
                    ^
   kernel/kprobes.c:2321:13: note: in expansion of macro 'min'
     buf_size = min(count, (sizeof(buf)-1));
                ^
   kernel/kprobes.c: At top level:
   kernel/kprobes.c:1188:23: warning: 'cleanup_rp_inst' defined but not used [-Wunused-function]
    static void __kprobes cleanup_rp_inst(struct kretprobe *rp)
                          ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27253 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-03-20  2:43 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-03-20  2:43 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: kbuild-all, linux-kernel, Tejun Heo

[-- Attachment #1: Type: text/plain, Size: 4149 bytes --]

Hi Christoph,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1e75a9f34a5ed5902707fb74b468356c55142b71
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   2 years, 7 months ago
config: mn10300-allyesconfig (attached as .config)
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from net/dccp/probe.c:26:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from net/dccp/probe.c:26:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27506 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
@ 2016-02-28  2:36 kbuild test robot
  0 siblings, 0 replies; 14+ messages in thread
From: kbuild test robot @ 2016-02-28  2:36 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: kbuild-all, linux-kernel, Tejun Heo

[-- Attachment #1: Type: text/plain, Size: 6138 bytes --]

Hi Christoph,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   12b9fa6a97b3150477ab182e321be512b59fa899
commit: abec1a806e0c3cf168999667d5fb6218398ef12a percpu: Make __verify_pcu_ptr handle per cpu pointers to arrays
date:   2 years, 6 months ago
config: mn10300-allmodconfig (attached as .config)
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 abec1a806e0c3cf168999667d5fb6218398ef12a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from kernel/sysctl.c:58:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/topology.h:34,
                    from include/linux/gfp.h:7,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from kernel/sysctl.c:21:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
--
   In file included from kernel/kprobes.c:34:0:
   include/linux/kprobes.h: In function 'get_kprobe_ctlblk':
>> include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk'
     return (&__get_cpu_var(kprobe_ctlblk));
     ^
   In file included from arch/mn10300/include/asm/percpu.h:1:0,
                    from include/linux/percpu.h:10,
                    from include/linux/kprobes.h:38,
                    from kernel/kprobes.c:34:
   include/asm-generic/percpu.h:83:29: error: dereferencing pointer to incomplete type
    #define __get_cpu_var(var) (*VERIFY_PERCPU_PTR(&(var)))
                                ^
   include/linux/kprobes.h:332:11: note: in expansion of macro '__get_cpu_var'
     return (&__get_cpu_var(kprobe_ctlblk));
              ^
   In file included from include/linux/cpumask.h:9:0,
                    from include/linux/smp.h:12,
                    from arch/mn10300/include/asm/irqflags.h:17,
                    from arch/mn10300/include/asm/atomic.h:14,
                    from include/linux/atomic.h:4,
                    from include/linux/mutex.h:18,
                    from include/linux/notifier.h:13,
                    from include/linux/kprobes.h:35,
                    from kernel/kprobes.c:34:
   kernel/kprobes.c: In function 'write_enabled_file_bool':
   include/linux/kernel.h:663:17: warning: comparison of distinct pointer types lacks a cast
     (void) (&_min1 == &_min2);  \
                    ^
   kernel/kprobes.c:2321:13: note: in expansion of macro 'min'
     buf_size = min(count, (sizeof(buf)-1));
                ^
   kernel/kprobes.c: At top level:
   kernel/kprobes.c:1188:23: warning: 'cleanup_rp_inst' defined but not used [-Wunused-function]
    static void __kprobes cleanup_rp_inst(struct kretprobe *rp)
                          ^

vim +332 include/linux/kprobes.h

ef53d9c5 Srinivasa D S              2008-07-25  316  void kretprobe_hash_unlock(struct task_struct *tsk, unsigned long *flags);
b94cce92 Hien Nguyen                2005-06-23  317  struct hlist_head * kretprobe_inst_table_head(struct task_struct *tsk);
^1da177e Linus Torvalds             2005-04-16  318  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  319  /* kprobe_running() will just return the current_kprobe on this CPU */
e6584523 Ananth N Mavinakayanahalli 2005-11-07  320  static inline struct kprobe *kprobe_running(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  321  {
b76834bc Christoph Lameter          2010-12-06  322  	return (__this_cpu_read(current_kprobe));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  323  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  324  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  325  static inline void reset_current_kprobe(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  326  {
b76834bc Christoph Lameter          2010-12-06  327  	__this_cpu_write(current_kprobe, NULL);
e6584523 Ananth N Mavinakayanahalli 2005-11-07  328  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  329  
e6584523 Ananth N Mavinakayanahalli 2005-11-07  330  static inline struct kprobe_ctlblk *get_kprobe_ctlblk(void)
e6584523 Ananth N Mavinakayanahalli 2005-11-07  331  {
e6584523 Ananth N Mavinakayanahalli 2005-11-07 @332  	return (&__get_cpu_var(kprobe_ctlblk));
e6584523 Ananth N Mavinakayanahalli 2005-11-07  333  }
e6584523 Ananth N Mavinakayanahalli 2005-11-07  334  
^1da177e Linus Torvalds             2005-04-16  335  int register_kprobe(struct kprobe *p);
^1da177e Linus Torvalds             2005-04-16  336  void unregister_kprobe(struct kprobe *p);
9861668f Masami Hiramatsu           2008-04-28  337  int register_kprobes(struct kprobe **kps, int num);
9861668f Masami Hiramatsu           2008-04-28  338  void unregister_kprobes(struct kprobe **kps, int num);
^1da177e Linus Torvalds             2005-04-16  339  int setjmp_pre_handler(struct kprobe *, struct pt_regs *);
^1da177e Linus Torvalds             2005-04-16  340  int longjmp_break_handler(struct kprobe *, struct pt_regs *);

:::::: The code at line 332 was first introduced by commit
:::::: e65845235c8120be63001fc1a4ac00c819194bbe [PATCH] Kprobes: Track kprobe on a per_cpu basis - base changes

:::::: TO: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27253 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-09-12 14:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-26  1:25 include/linux/kprobes.h:332:2: error: invalid use of undefined type 'struct kprobe_ctlblk' kbuild test robot
  -- strict thread matches above, loose matches on Subject: below --
2016-09-11  0:43 kbuild test robot
2016-09-12 14:04 ` Christoph Lameter
2016-09-12 14:11   ` Fengguang Wu
2016-09-03 23:35 kbuild test robot
2016-08-22 17:59 kbuild test robot
2016-08-14 10:33 kbuild test robot
2016-07-17  9:42 kbuild test robot
2016-07-03  2:23 kbuild test robot
2016-06-12 23:42 kbuild test robot
2016-06-05 13:31 kbuild test robot
2016-04-17  6:30 kbuild test robot
2016-03-20  2:43 kbuild test robot
2016-02-28  2:36 kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.