From: kbuild test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, tipbuild@zytor.com
Subject: [tip:WIP.timers/core 50/68] include/linux/posix-timers.h:98:19: error: 'RLIM_INFINITY' undeclared
Date: Tue, 20 Aug 2019 07:37:39 +0800 [thread overview]
Message-ID: <201908200736.mfjTvi9x%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2665 bytes --]
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git WIP.timers/core
head: b16101077c4444bc7e0dde91e7ffb258ce1f979b
commit: 5ccda256adfd2674f96b6f7a90b2ea8aaddc46bd [50/68] posix-cpu-timers: Move expiry cache into struct posix_cputimers
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5ccda256adfd2674f96b6f7a90b2ea8aaddc46bd
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from <command-line>:0:0:
include/linux/posix-timers.h:82:22: error: field 'cputime_expires' has incomplete type
struct task_cputime cputime_expires;
^~~~~~~~~~~~~~~
include/linux/posix-timers.h: In function 'posix_cputimers_group_init':
>> include/linux/posix-timers.h:98:19: error: 'RLIM_INFINITY' undeclared (first use in this function)
if (cpu_limit != RLIM_INFINITY)
^~~~~~~~~~~~~
include/linux/posix-timers.h:98:19: note: each undeclared identifier is reported only once for each function it appears in
vim +/RLIM_INFINITY +98 include/linux/posix-timers.h
72
73 #ifdef CONFIG_POSIX_TIMERS
74 /**
75 * posix_cputimers - Container for posix CPU timer related data
76 * @cputime_expires: Earliest-expiration cache
77 * @cpu_timers: List heads to queue posix CPU timers
78 *
79 * Used in task_struct and signal_struct
80 */
81 struct posix_cputimers {
> 82 struct task_cputime cputime_expires;
83 struct list_head cpu_timers[CPUCLOCK_MAX];
84 };
85
86 static inline void posix_cputimers_init(struct posix_cputimers *pct)
87 {
88 memset(&pct->cputime_expires, 0, sizeof(pct->cputime_expires));
89 INIT_LIST_HEAD(&pct->cpu_timers[0]);
90 INIT_LIST_HEAD(&pct->cpu_timers[1]);
91 INIT_LIST_HEAD(&pct->cpu_timers[2]);
92 }
93
94 static inline void posix_cputimers_group_init(struct posix_cputimers *pct,
95 u64 cpu_limit)
96 {
97 posix_cputimers_init(pct);
> 98 if (cpu_limit != RLIM_INFINITY)
99 pct->cputime_expires.prof_exp = cpu_limit * NSEC_PER_SEC;
100 }
101
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 58647 bytes --]
reply other threads:[~2019-08-19 23:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201908200736.mfjTvi9x%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=tipbuild@zytor.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®