lkml.org 
[lkml]   [2017]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[tip:core/urgent 1/1] arch/alpha/include/asm/ptrace.h:14:24: error: implicit declaration of function 'task_stack_page'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/urgent
head: 451eb3f2053ea4eeb40f94947c542cfbd7636186
commit: 451eb3f2053ea4eeb40f94947c542cfbd7636186 [1/1] fs/proc: Report eip/esp in /prod/PID/stat for coredumping
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 451eb3f2053ea4eeb40f94947c542cfbd7636186
# save the attached .config to linux build tree
make.cross ARCH=alpha

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

In file included from include/linux/irq.h:28:0,
from include/asm-generic/hardirq.h:12,
from arch/alpha/include/asm/hardirq.h:7,
from include/linux/hardirq.h:8,
from include/linux/interrupt.h:12,
from include/linux/kernel_stat.h:8,
from fs/proc/array.c:59:
fs/proc/array.c: In function 'do_task_stat':
>> arch/alpha/include/asm/ptrace.h:14:24: error: implicit declaration of function 'task_stack_page' [-Werror=implicit-function-declaration]
((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)
^
>> arch/alpha/include/asm/processor.h:55:24: note: in expansion of macro 'task_pt_regs'
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
^~~~~~~~~~~~
fs/proc/array.c:430:10: note: in expansion of macro 'KSTK_EIP'
eip = KSTK_EIP(task);
^~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/irq.h:28:0,
from include/asm-generic/hardirq.h:12,
from arch/alpha/include/asm/hardirq.h:7,
from include/linux/hardirq.h:8,
from include/linux/interrupt.h:12,
from include/linux/kernel_stat.h:8,
from fs//proc/array.c:59:
fs//proc/array.c: In function 'do_task_stat':
>> arch/alpha/include/asm/ptrace.h:14:24: error: implicit declaration of function 'task_stack_page' [-Werror=implicit-function-declaration]
((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)
^
>> arch/alpha/include/asm/processor.h:55:24: note: in expansion of macro 'task_pt_regs'
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc)
^~~~~~~~~~~~
fs//proc/array.c:430:10: note: in expansion of macro 'KSTK_EIP'
eip = KSTK_EIP(task);
^~~~~~~~
cc1: some warnings being treated as errors

vim +/task_stack_page +14 arch/alpha/include/asm/ptrace.h

^1da177e include/asm-alpha/ptrace.h Linus Torvalds 2005-04-16 12
e52f4ca2 include/asm-alpha/ptrace.h akpm@osdl.org 2006-01-12 13 #define task_pt_regs(task) \
27f45130 include/asm-alpha/ptrace.h Al Viro 2006-01-12 @14 ((struct pt_regs *) (task_stack_page(task) + 2*PAGE_SIZE) - 1)
^1da177e include/asm-alpha/ptrace.h Linus Torvalds 2005-04-16 15

:::::: The code at line 14 was first introduced by commit
:::::: 27f451304aa6f2bccf34ef3c2b049c01d05d6fff [PATCH] alpha: task_stack_page()

:::::: TO: Al Viro <viro@ftp.linux.org.uk>
:::::: 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
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-09-15 23:33    [W:0.061 / U:10.920 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site