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 <[email protected]>

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: .config.gz
Description: application/gzip

Reply via email to