Skip to contentSkip to conversation

arch/cris/arch-v10/kernel/process.c:147:2: error: implicit declaration of fun

PATCH In review Fengguang Wu 2 participants 2 messages Oct 15, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arch/cris/arch-v10/kernel/process.c:147:2: error: implicit declaration of fun

Hi Al,

FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal.git arch-cris
head:   b390891871081c499675f874eb08485c82959f00
commit: 40be7b4e5cfa2eec0a7f44f6edfdcf6802111bb1 [1/2] cris: switch to generic kernel_thread()
config: cris-etrax-100lx_v2_defconfig # make ARCH=cris etrax-100lx_v2_defconfig

All error/warnings:

arch/cris/arch-v10/kernel/process.c: In function 'sys_fork':
arch/cris/arch-v10/kernel/process.c:147:2: error: implicit declaration of function 'current_pt_regs' [-Werror=implicit-function-declaration] arch/cris/arch-v10/kernel/process.c:147:2: warning: passing argument 3 of 'do_fork' makes pointer from integer without a cast [enabled by default] In file included from arch/cris/arch-v10/kernel/process.c:13:0:
include/linux/sched.h:2293:13: note: expected 'struct pt_regs *' but argument is of type 'int' arch/cris/arch-v10/kernel/process.c: In function 'sys_clone':
arch/cris/arch-v10/kernel/process.c:157:2: warning: passing argument 3 of 'do_fork' makes pointer from integer without a cast [enabled by default] In file included from arch/cris/arch-v10/kernel/process.c:13:0:
include/linux/sched.h:2293:13: note: expected 'struct pt_regs *' but argument is of type 'int' arch/cris/arch-v10/kernel/process.c: In function 'sys_vfork':
arch/cris/arch-v10/kernel/process.c:166:9: warning: passing argument 3 of 'do_fork' makes pointer from integer without a cast [enabled by default] In file included from arch/cris/arch-v10/kernel/process.c:13:0:
include/linux/sched.h:2293:13: note: expected 'struct pt_regs *' but argument is of type 'int'
cc1: some warnings being treated as errors

vim +147 arch/cris/arch-v10/kernel/process.c

40be7b4e Al Viro        2012-10-03  145  asmlinkage int sys_fork(void)
^1da177e Linus Torvalds 2005-04-16  146  {
40be7b4e Al Viro        2012-10-03 @147  	return do_fork(SIGCHLD, rdusp(), current_pt_regs(), 0, NULL, NULL);
^1da177e Linus Torvalds 2005-04-16  148  }

---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation

#1 lore raw

Re: [signal:arch-cris 1/2] arch/cris/arch-v10/kernel/process.c:147:2: error: implicit declaration of

Quoted 8 lines · Fengguang Wu

Hi Al,

FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal.git arch-cris
head:   b390891871081c499675f874eb08485c82959f00
commit: 40be7b4e5cfa2eec0a7f44f6edfdcf6802111bb1 [1/2] cris: switch to generic kernel_thread()
config: cris-etrax-100lx_v2_defconfig # make ARCH=cris etrax-100lx_v2_defconfig

Missing include. Fixed and pushed.