[tip:WIP.sched/core 101/114] arch/ia64/mm/init.c:90:29: error: implicit declaration of function 'rlimit_max'

From: kbuild test robot
Date: Thu Feb 02 2017 - 08:39:10 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.sched/core
head: 6ddb6fab35cf50127c3c4dc9d5e15da4258a86c5
commit: 397fbcb564288fb6d39400ae1d2f3363ba19c501 [101/114] sched/headers, signals: Separate out task_struct::signal and task_struct::sighand types and accessors into <linux/sched/signal.h>
config: ia64-allnoconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
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
git checkout 397fbcb564288fb6d39400ae1d2f3363ba19c501
# save the attached .config to linux build tree
make.cross ARCH=ia64

All errors (new ones prefixed by >>):

arch/ia64/mm/init.c: In function 'ia64_set_rbs_bot':
>> arch/ia64/mm/init.c:90:29: error: implicit declaration of function 'rlimit_max' [-Werror=implicit-function-declaration]
unsigned long stack_size = rlimit_max(RLIMIT_STACK) & -16;
^~~~~~~~~~
cc1: some warnings being treated as errors

vim +/rlimit_max +90 arch/ia64/mm/init.c

cde14bbf Jan Beulich 2007-02-05 84 }
cde14bbf Jan Beulich 2007-02-05 85 }
cde14bbf Jan Beulich 2007-02-05 86
^1da177e Linus Torvalds 2005-04-16 87 inline void
^1da177e Linus Torvalds 2005-04-16 88 ia64_set_rbs_bot (void)
^1da177e Linus Torvalds 2005-04-16 89 {
02b763b8 Jiri Slaby 2010-01-06 @90 unsigned long stack_size = rlimit_max(RLIMIT_STACK) & -16;
^1da177e Linus Torvalds 2005-04-16 91
^1da177e Linus Torvalds 2005-04-16 92 if (stack_size > MAX_USER_STACK_SIZE)
^1da177e Linus Torvalds 2005-04-16 93 stack_size = MAX_USER_STACK_SIZE;

:::::: The code at line 90 was first introduced by commit
:::::: 02b763b8ccc88d030117851f2b76a119932f109e [IA64] use helpers for rlimits

:::::: TO: Jiri Slaby <jslaby@xxxxxxx>
:::::: CC: Tony Luck <tony.luck@xxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip