All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.4/muqss-nohrtimeout 1/21] kernel/sched/MuQSS.c:138:36: error: 'CONFIG_SHARERQ' undeclared here (not in a function); did you mean 'CONFIG_SPARSE_IRQ'?
@ 2020-01-18 10:44 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-18 10:44 UTC (permalink / raw)
  To: kbuild-all

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

Hi Con,

FYI, the error/warning still remains.

tree:   https://github.com/zen-kernel/zen-kernel 5.4/muqss-nohrtimeout
head:   33d548a7570d9daaf8c4dc3623736dd2923649c5
commit: 7acac2e4000e75f3349106a8847cf1021651446b [1/21] MultiQueue Skiplist Scheduler v0.196.
config: s390-allmodconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 7.5.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 7acac2e4000e75f3349106a8847cf1021651446b
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=s390 

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

All error/warnings (new ones prefixed by >>):

>> kernel/sched/MuQSS.c:138:36: error: 'CONFIG_SHARERQ' undeclared here (not in a function); did you mean 'CONFIG_SPARSE_IRQ'?
    static int rqshare __read_mostly = CONFIG_SHARERQ; /* Default RQSHARE_MC */
                                       ^~~~~~~~~~~~~~
                                       CONFIG_SPARSE_IRQ
   In file included from include/asm-generic/percpu.h:7:0,
                    from arch/s390/include/asm/percpu.h:184,
                    from include/linux/percpu.h:13,
                    from include/linux/arch_topology.h:9,
                    from include/linux/topology.h:30,
                    from include/linux/gfp.h:9,
                    from include/linux/xarray.h:14,
                    from include/linux/radix-tree.h:18,
                    from include/linux/idr.h:15,
                    from include/linux/kernfs.h:13,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/of.h:17,
                    from include/linux/clocksource.h:19,
                    from include/linux/clockchips.h:14,
                    from include/linux/tick.h:8,
                    from include/linux/sched/isolation.h:6,
                    from kernel/sched/MuQSS.c:35:
   kernel/sched/MuQSS.c: In function 'llc_core_cpumask':
>> kernel/sched/MuQSS.c:6758:17: error: 'cpu_llc_shared_map' undeclared (first use in this function); did you mean 'sd_llc_shared'?
     return per_cpu(cpu_llc_shared_map, cpu);
                    ^
   include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
     const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
                                                  ^~~
   include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
    #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
                                ^~~~~~~~~~~
>> kernel/sched/MuQSS.c:6758:9: note: in expansion of macro 'per_cpu'
     return per_cpu(cpu_llc_shared_map, cpu);
            ^~~~~~~
   kernel/sched/MuQSS.c:6758:17: note: each undeclared identifier is reported only once for each function it appears in
     return per_cpu(cpu_llc_shared_map, cpu);
                    ^
   include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
     const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
                                                  ^~~
   include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
    #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
                                ^~~~~~~~~~~
>> kernel/sched/MuQSS.c:6758:9: note: in expansion of macro 'per_cpu'
     return per_cpu(cpu_llc_shared_map, cpu);
            ^~~~~~~
   kernel/sched/MuQSS.c: In function 'sched_init_smp':
>> kernel/sched/MuQSS.c:7071:85: error: 'cpu_llc_id' undeclared (first use in this function); did you mean 'sd_llc_id'?
       printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
                                                                                        ^
   include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
     const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
                                                  ^~~
   include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
    #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
                                ^~~~~~~~~~~
   kernel/sched/MuQSS.c:7071:77: note: in expansion of macro 'per_cpu'
       printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
                                                                                ^~~~~~~
   kernel/sched/MuQSS.c: In function 'llc_core_cpumask':
>> kernel/sched/MuQSS.c:6759:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +138 kernel/sched/MuQSS.c

  > 35	#include <linux/sched/isolation.h>
    36	#include <linux/sched/loadavg.h>
    37	
    38	#include <linux/binfmts.h>
    39	#include <linux/blkdev.h>
    40	#include <linux/compat.h>
    41	#include <linux/context_tracking.h>
    42	#include <linux/cpuset.h>
    43	#include <linux/delayacct.h>
    44	#include <linux/init_task.h>
    45	#include <linux/kcov.h>
    46	#include <linux/kprobes.h>
    47	#include <linux/mmu_context.h>
    48	#include <linux/module.h>
    49	#include <linux/nmi.h>
    50	#include <linux/prefetch.h>
    51	#include <linux/profile.h>
    52	#include <linux/rcupdate_wait.h>
    53	#include <linux/sched.h>
    54	#include <linux/security.h>
    55	#include <linux/skip_list.h>
    56	#include <linux/syscalls.h>
    57	#include <linux/tick.h>
    58	#include <linux/wait_bit.h>
    59	
    60	#include <asm/irq_regs.h>
    61	#include <asm/switch_to.h>
    62	#include <asm/tlb.h>
    63	
    64	#include "../workqueue_internal.h"
    65	#include "../smpboot.h"
    66	
    67	#define CREATE_TRACE_POINTS
    68	#include <trace/events/sched.h>
    69	
    70	#include "MuQSS.h"
    71	
    72	#define rt_prio(prio)		unlikely((prio) < MAX_RT_PRIO)
    73	#define rt_task(p)		rt_prio((p)->prio)
    74	#define batch_task(p)		(unlikely((p)->policy == SCHED_BATCH))
    75	#define is_rt_policy(policy)	((policy) == SCHED_FIFO || \
    76						(policy) == SCHED_RR)
    77	#define has_rt_policy(p)	unlikely(is_rt_policy((p)->policy))
    78	
    79	#define is_idle_policy(policy)	((policy) == SCHED_IDLEPRIO)
    80	#define idleprio_task(p)	unlikely(is_idle_policy((p)->policy))
    81	#define task_running_idle(p)	unlikely((p)->prio == IDLE_PRIO)
    82	
    83	#define is_iso_policy(policy)	((policy) == SCHED_ISO)
    84	#define iso_task(p)		unlikely(is_iso_policy((p)->policy))
    85	#define task_running_iso(p)	unlikely((p)->prio == ISO_PRIO)
    86	
    87	#define rq_idle(rq)		((rq)->rq_prio == PRIO_LIMIT)
    88	
    89	#define ISO_PERIOD		(5 * HZ)
    90	
    91	#define STOP_PRIO		(MAX_RT_PRIO - 1)
    92	
    93	/*
    94	 * Some helpers for converting to/from various scales. Use shifts to get
    95	 * approximate multiples of ten for less overhead.
    96	 */
    97	#define APPROX_NS_PS		(1073741824) /* Approximate ns per second */
    98	#define JIFFIES_TO_NS(TIME)	((TIME) * (APPROX_NS_PS / HZ))
    99	#define JIFFY_NS		(APPROX_NS_PS / HZ)
   100	#define JIFFY_US		(1048576 / HZ)
   101	#define NS_TO_JIFFIES(TIME)	((TIME) / JIFFY_NS)
   102	#define HALF_JIFFY_NS		(APPROX_NS_PS / HZ / 2)
   103	#define HALF_JIFFY_US		(1048576 / HZ / 2)
   104	#define MS_TO_NS(TIME)		((TIME) << 20)
   105	#define MS_TO_US(TIME)		((TIME) << 10)
   106	#define NS_TO_MS(TIME)		((TIME) >> 20)
   107	#define NS_TO_US(TIME)		((TIME) >> 10)
   108	#define US_TO_NS(TIME)		((TIME) << 10)
   109	#define TICK_APPROX_NS		((APPROX_NS_PS+HZ/2)/HZ)
   110	
   111	#define RESCHED_US	(100) /* Reschedule if less than this many μs left */
   112	
   113	void print_scheduler_version(void)
   114	{
   115		printk(KERN_INFO "MuQSS CPU scheduler v0.196 by Con Kolivas.\n");
   116	}
   117	
   118	/* Define RQ share levels */
   119	#define RQSHARE_NONE 0
   120	#define RQSHARE_SMT 1
   121	#define RQSHARE_MC 2
   122	#define RQSHARE_MC_LLC 3
   123	#define RQSHARE_SMP 4
   124	#define RQSHARE_ALL 5
   125	
   126	/* Define locality levels */
   127	#define LOCALITY_SAME 0
   128	#define LOCALITY_SMT 1
   129	#define LOCALITY_MC_LLC 2
   130	#define LOCALITY_MC 3
   131	#define LOCALITY_SMP 4
   132	#define LOCALITY_DISTANT 5
   133	
   134	/*
   135	 * This determines what level of runqueue sharing will be done and is
   136	 * configurable@boot time with the bootparam rqshare =
   137	 */
 > 138	static int rqshare __read_mostly = CONFIG_SHARERQ; /* Default RQSHARE_MC */
   139	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

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

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

only message in thread, other threads:[~2020-01-18 10:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-18 10:44 [zen-kernel-zen-kernel:5.4/muqss-nohrtimeout 1/21] kernel/sched/MuQSS.c:138:36: error: 'CONFIG_SHARERQ' undeclared here (not in a function); did you mean 'CONFIG_SPARSE_IRQ'? kbuild 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.