All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android12-5.10 1/1] kernel/sched/rt.c:1385:33: error: 'struct <anonymous>' has no member named 'next'
@ 2021-02-25 20:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-25 20:34 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2509 bytes --]

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   da5f3cd37802e4d68861422ba4503a4e2d58aa23
commit: da5f3cd37802e4d68861422ba4503a4e2d58aa23 [1/1] ANDROID: sched/rt: Add support for rt sync wakeups
config: x86_64-randconfig-s021-20210225 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-229-g60c1f270-dirty
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10
        git checkout da5f3cd37802e4d68861422ba4503a4e2d58aa23
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   kernel/sched/rt.c:670:6: warning: no previous prototype for 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
     670 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/rt.c: In function 'should_honor_rt_sync':
>> kernel/sched/rt.c:1385:33: error: 'struct <anonymous>' has no member named 'next'
    1385 |   p->prio <= rq->rt.highest_prio.next &&
         |                                 ^
   kernel/sched/rt.c:1387:1: error: control reaches end of non-void function [-Werror=return-type]
    1387 | }
         | ^
   cc1: some warnings being treated as errors


vim +1385 kernel/sched/rt.c

  1374	
  1375	#if defined CONFIG_SMP || defined CONFIG_RT_GROUP_SCHED
  1376	static inline bool should_honor_rt_sync(struct rq *rq, struct task_struct *p,
  1377						bool sync)
  1378	{
  1379		/*
  1380		 * If the waker is CFS, then an RT sync wakeup would preempt the waker
  1381		 * and force it to run for a likely small time after the RT wakee is
  1382		 * done. So, only honor RT sync wakeups from RT wakers.
  1383		 */
  1384		return sync && task_has_rt_policy(rq->curr) &&
> 1385			p->prio <= rq->rt.highest_prio.next &&
  1386			rq->rt.rt_nr_running <= 2;
  1387	}
  1388	#else
  1389	static inline bool should_honor_rt_sync(struct rq *rq, struct task_struct *p,
  1390						bool sync)
  1391	{
  1392		return 0;
  1393	}
  1394	#endif
  1395	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31653 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-25 20:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-25 20:34 [android-common:android12-5.10 1/1] kernel/sched/rt.c:1385:33: error: 'struct <anonymous>' has no member named 'next' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.