lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 3 Feb 2017 06:55:56 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org, tipbuild@...or.com
Subject: [tip:WIP.sched/core 118/122] arch/sh/kernel/process.c:24:18: error:
 implicit declaration of function 'task_pt_regs'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head:   a69a38e26e87ddbe993e33b55f693405cd62c76f
commit: 9633bad92da4f12d249b2d76618302a2af367f4a [118/122] sched/headers: Remove various unrelated headers from <linux/sched.h>
config: sh-allyesconfig (attached as .config)
compiler: sh4-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 9633bad92da4f12d249b2d76618302a2af367f4a
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

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

   arch/sh/kernel/process.c: In function 'arch_dup_task_struct':
>> arch/sh/kernel/process.c:24:18: error: implicit declaration of function 'task_pt_regs' [-Werror=implicit-function-declaration]
     unlazy_fpu(src, task_pt_regs(src));
                     ^~~~~~~~~~~~
>> arch/sh/kernel/process.c:24:18: error: passing argument 2 of 'unlazy_fpu' makes pointer from integer without a cast [-Werror=int-conversion]
   In file included from arch/sh/kernel/process.c:7:0:
   arch/sh/include/asm/fpu.h:52:20: note: expected 'struct pt_regs *' but argument is of type 'int'
    static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs)
                       ^~~~~~~~~~
   cc1: all warnings being treated as errors
--
   arch/sh/kernel/cpu/fpu.c: In function 'init_fpu':
>> arch/sh/kernel/cpu/fpu.c:11:20: error: implicit declaration of function 'task_pt_regs' [-Werror=implicit-function-declaration]
       unlazy_fpu(tsk, task_pt_regs(tsk));
                       ^~~~~~~~~~~~
>> arch/sh/kernel/cpu/fpu.c:11:20: warning: passing argument 2 of 'unlazy_fpu' makes pointer from integer without a cast [-Wint-conversion]
   In file included from arch/sh/kernel/cpu/fpu.c:4:0:
   arch/sh/include/asm/fpu.h:52:20: note: expected 'struct pt_regs *' but argument is of type 'int'
    static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs)
                       ^~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/task_pt_regs +24 arch/sh/kernel/process.c

cbf6b1ba Paul Mundt          2010-01-12   8  
0ea820cf Paul Mundt          2010-01-13   9  struct kmem_cache *task_xstate_cachep = NULL;
0ea820cf Paul Mundt          2010-01-13  10  unsigned int xstate_size;
0ea820cf Paul Mundt          2010-01-13  11  
5d920bb9 Filippo Arcidiacono 2012-04-19  12  #ifdef CONFIG_CC_STACKPROTECTOR
5d920bb9 Filippo Arcidiacono 2012-04-19  13  unsigned long __stack_chk_guard __read_mostly;
5d920bb9 Filippo Arcidiacono 2012-04-19  14  EXPORT_SYMBOL(__stack_chk_guard);
5d920bb9 Filippo Arcidiacono 2012-04-19  15  #endif
5d920bb9 Filippo Arcidiacono 2012-04-19  16  
55ccf3fe Suresh Siddha       2012-05-16  17  /*
55ccf3fe Suresh Siddha       2012-05-16  18   * this gets called so that we can store lazy state into memory and copy the
55ccf3fe Suresh Siddha       2012-05-16  19   * current task into the new thread.
55ccf3fe Suresh Siddha       2012-05-16  20   */
0ea820cf Paul Mundt          2010-01-13  21  int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
0ea820cf Paul Mundt          2010-01-13  22  {
55ccf3fe Suresh Siddha       2012-05-16  23  #ifdef CONFIG_SUPERH32
55ccf3fe Suresh Siddha       2012-05-16 @24  	unlazy_fpu(src, task_pt_regs(src));
55ccf3fe Suresh Siddha       2012-05-16  25  #endif
0ea820cf Paul Mundt          2010-01-13  26  	*dst = *src;
0ea820cf Paul Mundt          2010-01-13  27  
0ea820cf Paul Mundt          2010-01-13  28  	if (src->thread.xstate) {
0ea820cf Paul Mundt          2010-01-13  29  		dst->thread.xstate = kmem_cache_alloc(task_xstate_cachep,
0ea820cf Paul Mundt          2010-01-13  30  						      GFP_KERNEL);
0ea820cf Paul Mundt          2010-01-13  31  		if (!dst->thread.xstate)
0ea820cf Paul Mundt          2010-01-13  32  			return -ENOMEM;

:::::: The code at line 24 was first introduced by commit
:::::: 55ccf3fe3f9a3441731aa79cf42a628fc4ecace9 fork: move the real prepare_to_copy() users to arch_dup_task_struct()

:::::: TO: Suresh Siddha <suresh.b.siddha@...el.com>
:::::: CC: H. Peter Anvin <hpa@...ux.intel.com>

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

Download attachment ".config.gz" of type "application/gzip" (43354 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ