[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <201710200544.b2SdiflF%fengguang.wu@intel.com>
Date: Fri, 20 Oct 2017 05:17:54 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Will Deacon <will.deacon@....com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Subject: [rcu:rcu/alpha 1/19] arch/sparc/include/asm/ptrace.h:102:6: error:
implicit declaration of function 'unlikely'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/alpha
head: 3b0c617a7b93610d4ab0894f3a6406e2c14a2d55
commit: c9fa4f5af10c9ae96f30764c4c9d0f9ca429a566 [1/19] linux/compiler.h: Split into compiler.h and compiler-types.h
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-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 c9fa4f5af10c9ae96f30764c4c9d0f9ca429a566
# save the attached .config to linux build tree
make.cross ARCH=sparc64
All errors (new ones prefixed by >>):
In file included from arch/sparc/include/asm/processor_64.h:18:0,
from arch/sparc/include/asm/processor.h:4,
from include/linux/prefetch.h:14,
from drivers/net/ethernet/emulex/benet/be_main.c:18:
arch/sparc/include/asm/ptrace.h: In function 'regs_get_register':
>> arch/sparc/include/asm/ptrace.h:102:6: error: implicit declaration of function 'unlikely' [-Werror=implicit-function-declaration]
if (unlikely(offset >= MAX_REG_OFFSET))
^~~~~~~~
cc1: some warnings being treated as errors
vim +/unlikely +102 arch/sparc/include/asm/ptrace.h
e8f4aa60 Allen Pais 2016-10-13 88
e8f4aa60 Allen Pais 2016-10-13 89 /**
e8f4aa60 Allen Pais 2016-10-13 90 * regs_get_register() - get register value from its offset
e8f4aa60 Allen Pais 2016-10-13 91 * @regs: pt_regs from which register value is gotten
e8f4aa60 Allen Pais 2016-10-13 92 * @offset: offset number of the register.
e8f4aa60 Allen Pais 2016-10-13 93 *
e8f4aa60 Allen Pais 2016-10-13 94 * regs_get_register returns the value of a register whose
e8f4aa60 Allen Pais 2016-10-13 95 * offset from @regs. The @offset is the offset of the register
e8f4aa60 Allen Pais 2016-10-13 96 * in struct pt_regs. If @offset is bigger than MAX_REG_OFFSET,
e8f4aa60 Allen Pais 2016-10-13 97 * this returns 0.
e8f4aa60 Allen Pais 2016-10-13 98 */
e8f4aa60 Allen Pais 2016-10-13 99 static inline unsigned long regs_get_register(struct pt_regs *regs,
e8f4aa60 Allen Pais 2016-10-13 100 unsigned long offset)
e8f4aa60 Allen Pais 2016-10-13 101 {
e8f4aa60 Allen Pais 2016-10-13 @102 if (unlikely(offset >= MAX_REG_OFFSET))
e8f4aa60 Allen Pais 2016-10-13 103 return 0;
e8f4aa60 Allen Pais 2016-10-13 104 if (offset == PT_V9_Y)
e8f4aa60 Allen Pais 2016-10-13 105 return *(unsigned int *)((unsigned long)regs + offset);
e8f4aa60 Allen Pais 2016-10-13 106 return *(unsigned long *)((unsigned long)regs + offset);
e8f4aa60 Allen Pais 2016-10-13 107 }
e8f4aa60 Allen Pais 2016-10-13 108
:::::: The code at line 102 was first introduced by commit
:::::: e8f4aa6087fa80732382881ef7c0c96733bb1984 sparc64:Support User Probes for sparc
:::::: TO: Allen Pais <allen.pais@...cle.com>
:::::: CC: David S. Miller <davem@...emloft.net>
---
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" (52085 bytes)
Powered by blists - more mailing lists