Skip to contentSkip to conversation

arch/blackfin/kernel/process.c:170:7: error: request for member 'pc' in s

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/blackfin/kernel/process.c:170:7: error: request for member 'pc' in s

Hi Al,

FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal.git arch-blackfin
head:   9b34bed403644c57e9beefc36a0b353255c696f1
commit: 1ac0bc7b1705368131dc176f4a094994ea45e478 [1/2] blackfin: convert kernel_thread() and kernel_execve() to generic ones
config: blackfin-BF533-EZKIT_defconfig # make ARCH=blackfin BF533-EZKIT_defconfig

All error/warnings:

arch/blackfin/kernel/process.c: In function 'copy_thread':
arch/blackfin/kernel/process.c:170:7: error: request for member 'pc' in something not a structure or union arch/blackfin/kernel/process.c:170:28: error: 'kernel_thread_helper' undeclared (first use in this function) arch/blackfin/kernel/process.c:170:28: note: each undeclared identifier is reported only once for each function it appears in

vim +170 arch/blackfin/kernel/process.c

1394f032 Bryan Wu 2007-05-06  164  	childregs = (struct pt_regs *) (task_stack_page(p) + THREAD_SIZE) - 1;
1ac0bc7b Al Viro  2012-10-13  165  	v = ((unsigned long *)childregs) - 2;
1ac0bc7b Al Viro  2012-10-13  166  	if (unlikely(!regs)) {
1ac0bc7b Al Viro  2012-10-13  167  		memset(childregs, 0, sizeof(struct pt_regs));
1ac0bc7b Al Viro  2012-10-13  168  		v[0] = usp;
1ac0bc7b Al Viro  2012-10-13  169  		v[1] = topstk;
1ac0bc7b Al Viro  2012-10-13 @170  		regs.pc = (unsigned long)kernel_thread_helper;
1ac0bc7b Al Viro  2012-10-13  171  		childregs->orig_p0 = -1;
1ac0bc7b Al Viro  2012-10-13  172  		childregs->ipend = 0x8000;
1ac0bc7b Al Viro  2012-10-13  173  		__asm__ __volatile__("%0 = syscfg;":"Ú"(childregs->syscfg):);

---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw

Re: [signal:arch-blackfin 1/2] arch/blackfin/kernel/process.c:170:7: error: request for member 'pc'

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-blackfin
head:   9b34bed403644c57e9beefc36a0b353255c696f1
commit: 1ac0bc7b1705368131dc176f4a094994ea45e478 [1/2] blackfin: convert kernel_thread() and kernel_execve() to generic ones
config: blackfin-BF533-EZKIT_defconfig # make ARCH=blackfin BF533-EZKIT_defconfig

Stray debris, left over from moving kernel_thread() pt_regs initialization into copy_thread(). That one should've been simply removed. Done and pushed...