[PATCH] powerpc: Call restore_sprs() on initial context switch

kbuild test robot lkp at intel.com
Wed Dec 9 16:08:55 AEDT 2015


Hi Anton,

[auto build test ERROR on powerpc/next]
[also build test ERROR on next-20151208]
[cannot apply to v4.4-rc4]

url:    https://github.com/0day-ci/linux/commits/Anton-Blanchard/powerpc-Call-restore_sprs-on-initial-context-switch/20151209-123550
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allnoconfig (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
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   arch/powerpc/kernel/process.c: In function 'restore_sprs':
>> arch/powerpc/kernel/process.c:861:24: error: unused variable 'new_thread' [-Werror=unused-variable]
     struct thread_struct *new_thread = &new->thread;
                           ^
>> arch/powerpc/kernel/process.c:860:24: error: unused variable 'old_thread' [-Werror=unused-variable]
     struct thread_struct *old_thread = &old->thread;
                           ^
   cc1: all warnings being treated as errors

vim +/new_thread +861 arch/powerpc/kernel/process.c

   854	#endif
   855	}
   856	
   857	struct task_struct *restore_sprs(struct task_struct *old,
   858					 struct task_struct *new)
   859	{
 > 860		struct thread_struct *old_thread = &old->thread;
 > 861		struct thread_struct *new_thread = &new->thread;
   862	
   863	#ifdef CONFIG_ALTIVEC
   864		if (cpu_has_feature(CPU_FTR_ALTIVEC) &&

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 5647 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20151209/35ab671a/attachment.obj>


More information about the Linuxppc-dev mailing list