All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.13/muqss 30/32] kernel/sched/MuQSS.c:7105:6: warning: no previous prototype for 'register_sched_domain_sysctl'
@ 2021-08-07 20:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-07 20:23 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/zen-kernel/zen-kernel 5.13/muqss
head:   d99f60c26a53d618a47fc43380392152434a880f
commit: a545ec822c718d108c08e29a79c32f03221f743b [30/32] muqss: Backport "sched,debug: Convert sysctl sched_domains to debugfs"
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/zen-kernel/zen-kernel/commit/a545ec822c718d108c08e29a79c32f03221f743b
        git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen-kernel-zen-kernel 5.13/muqss
        git checkout a545ec822c718d108c08e29a79c32f03221f743b
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

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

All warnings (new ones prefixed by >>):

   kernel/sched/MuQSS.c:263:12: warning: no previous prototype for 'arch_sd_sibling_asym_packing' [-Wmissing-prototypes]
     263 | int __weak arch_sd_sibling_asym_packing(void)
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:661:6: warning: no previous prototype for 'resched_task' [-Wmissing-prototypes]
     661 | void resched_task(struct task_struct *p)
         |      ^~~~~~~~~~~~
   kernel/sched/MuQSS.c:2433:5: warning: no previous prototype for 'sysctl_schedstats' [-Wmissing-prototypes]
    2433 | int sysctl_schedstats(struct ctl_table *table, int write, void *buffer,
         |     ^~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:3149:15: warning: no previous prototype for 'nr_active' [-Wmissing-prototypes]
    3149 | unsigned long nr_active(void)
         |               ^~~~~~~~~
   kernel/sched/MuQSS.c:6488:1: warning: no previous prototype for '__do_set_cpus_allowed' [-Wmissing-prototypes]
    6488 | __do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
         | ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:6632:6: warning: no previous prototype for 'resched_cpu' [-Wmissing-prototypes]
    6632 | void resched_cpu(int cpu)
         |      ^~~~~~~~~~~
   kernel/sched/MuQSS.c:6645:6: warning: no previous prototype for 'select_nohz_load_balancer' [-Wmissing-prototypes]
    6645 | void select_nohz_load_balancer(int stop_tick)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:6649:6: warning: no previous prototype for 'set_cpu_sd_state_idle' [-Wmissing-prototypes]
    6649 | void set_cpu_sd_state_idle(void) {}
         |      ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:6703:6: warning: no previous prototype for 'wake_up_idle_cpu' [-Wmissing-prototypes]
    6703 | void wake_up_idle_cpu(int cpu)
         |      ^~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:6967:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
    6967 | void sched_set_stop_task(int cpu, struct task_struct *stop)
         |      ^~~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:7105:6: warning: no previous prototype for 'register_sched_domain_sysctl' [-Wmissing-prototypes]
    7105 | void register_sched_domain_sysctl(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/MuQSS.c:7170:6: warning: no previous prototype for 'unregister_sched_domain_sysctl' [-Wmissing-prototypes]
    7170 | void unregister_sched_domain_sysctl(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8110:6: warning: no previous prototype for 'init_idle_bootup_task' [-Wmissing-prototypes]
    8110 | void init_idle_bootup_task(struct task_struct *idle)
         |      ^~~~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8134:20: warning: no previous prototype for 'sched_create_group' [-Wmissing-prototypes]
    8134 | struct task_group *sched_create_group(struct task_group *parent)
         |                    ^~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8145:6: warning: no previous prototype for 'sched_online_group' [-Wmissing-prototypes]
    8145 | void sched_online_group(struct task_group *tg, struct task_group *parent)
         |      ^~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8156:6: warning: no previous prototype for 'sched_destroy_group' [-Wmissing-prototypes]
    8156 | void sched_destroy_group(struct task_group *tg)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8162:6: warning: no previous prototype for 'sched_offline_group' [-Wmissing-prototypes]
    8162 | void sched_offline_group(struct task_group *tg)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8253:20: warning: initialized field overwritten [-Woverride-init]
    8253 |  .legacy_cftypes = cpu_legacy_files,
         |                    ^~~~~~~~~~~~~~~~
   kernel/sched/MuQSS.c:8253:20: note: (near initialization for 'cpu_cgrp_subsys.legacy_cftypes')


vim +/register_sched_domain_sysctl +7105 kernel/sched/MuQSS.c

512f9bcc181e53 Con Kolivas 2019-10-25  7104  
512f9bcc181e53 Con Kolivas 2019-10-25 @7105  void register_sched_domain_sysctl(void)
512f9bcc181e53 Con Kolivas 2019-10-25  7106  {
512f9bcc181e53 Con Kolivas 2019-10-25  7107  	static struct ctl_table *cpu_entries;
512f9bcc181e53 Con Kolivas 2019-10-25  7108  	static struct ctl_table **cpu_idx;
512f9bcc181e53 Con Kolivas 2019-10-25  7109  	char buf[32];
512f9bcc181e53 Con Kolivas 2019-10-25  7110  	int i;
512f9bcc181e53 Con Kolivas 2019-10-25  7111  
512f9bcc181e53 Con Kolivas 2019-10-25  7112  	if (!cpu_entries) {
512f9bcc181e53 Con Kolivas 2019-10-25  7113  		cpu_entries = sd_alloc_ctl_entry(num_possible_cpus() + 1);
512f9bcc181e53 Con Kolivas 2019-10-25  7114  		if (!cpu_entries)
512f9bcc181e53 Con Kolivas 2019-10-25  7115  			return;
512f9bcc181e53 Con Kolivas 2019-10-25  7116  
512f9bcc181e53 Con Kolivas 2019-10-25  7117  		WARN_ON(sd_ctl_dir[0].child);
512f9bcc181e53 Con Kolivas 2019-10-25  7118  		sd_ctl_dir[0].child = cpu_entries;
512f9bcc181e53 Con Kolivas 2019-10-25  7119  	}
512f9bcc181e53 Con Kolivas 2019-10-25  7120  
512f9bcc181e53 Con Kolivas 2019-10-25  7121  	if (!cpu_idx) {
512f9bcc181e53 Con Kolivas 2019-10-25  7122  		struct ctl_table *e = cpu_entries;
512f9bcc181e53 Con Kolivas 2019-10-25  7123  
512f9bcc181e53 Con Kolivas 2019-10-25  7124  		cpu_idx = kcalloc(nr_cpu_ids, sizeof(struct ctl_table*), GFP_KERNEL);
512f9bcc181e53 Con Kolivas 2019-10-25  7125  		if (!cpu_idx)
512f9bcc181e53 Con Kolivas 2019-10-25  7126  			return;
512f9bcc181e53 Con Kolivas 2019-10-25  7127  
512f9bcc181e53 Con Kolivas 2019-10-25  7128  		/* deal with sparse possible map */
512f9bcc181e53 Con Kolivas 2019-10-25  7129  		for_each_possible_cpu(i) {
512f9bcc181e53 Con Kolivas 2019-10-25  7130  			cpu_idx[i] = e;
512f9bcc181e53 Con Kolivas 2019-10-25  7131  			e++;
512f9bcc181e53 Con Kolivas 2019-10-25  7132  		}
512f9bcc181e53 Con Kolivas 2019-10-25  7133  	}
512f9bcc181e53 Con Kolivas 2019-10-25  7134  
512f9bcc181e53 Con Kolivas 2019-10-25  7135  	if (!cpumask_available(sd_sysctl_cpus)) {
512f9bcc181e53 Con Kolivas 2019-10-25  7136  		if (!alloc_cpumask_var(&sd_sysctl_cpus, GFP_KERNEL))
512f9bcc181e53 Con Kolivas 2019-10-25  7137  			return;
512f9bcc181e53 Con Kolivas 2019-10-25  7138  
512f9bcc181e53 Con Kolivas 2019-10-25  7139  		/* init to possible to not have holes in @cpu_entries */
512f9bcc181e53 Con Kolivas 2019-10-25  7140  		cpumask_copy(sd_sysctl_cpus, cpu_possible_mask);
512f9bcc181e53 Con Kolivas 2019-10-25  7141  	}
512f9bcc181e53 Con Kolivas 2019-10-25  7142  
512f9bcc181e53 Con Kolivas 2019-10-25  7143  	for_each_cpu(i, sd_sysctl_cpus) {
512f9bcc181e53 Con Kolivas 2019-10-25  7144  		struct ctl_table *e = cpu_idx[i];
512f9bcc181e53 Con Kolivas 2019-10-25  7145  
512f9bcc181e53 Con Kolivas 2019-10-25  7146  		if (e->child)
512f9bcc181e53 Con Kolivas 2019-10-25  7147  			sd_free_ctl_entry(&e->child);
512f9bcc181e53 Con Kolivas 2019-10-25  7148  
512f9bcc181e53 Con Kolivas 2019-10-25  7149  		if (!e->procname) {
512f9bcc181e53 Con Kolivas 2019-10-25  7150  			snprintf(buf, 32, "cpu%d", i);
512f9bcc181e53 Con Kolivas 2019-10-25  7151  			e->procname = kstrdup(buf, GFP_KERNEL);
512f9bcc181e53 Con Kolivas 2019-10-25  7152  		}
512f9bcc181e53 Con Kolivas 2019-10-25  7153  		e->mode = 0555;
512f9bcc181e53 Con Kolivas 2019-10-25  7154  		e->child = sd_alloc_ctl_cpu_table(i);
512f9bcc181e53 Con Kolivas 2019-10-25  7155  
512f9bcc181e53 Con Kolivas 2019-10-25  7156  		__cpumask_clear_cpu(i, sd_sysctl_cpus);
512f9bcc181e53 Con Kolivas 2019-10-25  7157  	}
512f9bcc181e53 Con Kolivas 2019-10-25  7158  
512f9bcc181e53 Con Kolivas 2019-10-25  7159  	WARN_ON(sd_sysctl_header);
512f9bcc181e53 Con Kolivas 2019-10-25  7160  	sd_sysctl_header = register_sysctl_table(sd_ctl_root);
512f9bcc181e53 Con Kolivas 2019-10-25  7161  }
512f9bcc181e53 Con Kolivas 2019-10-25  7162  
512f9bcc181e53 Con Kolivas 2019-10-25  7163  void dirty_sched_domain_sysctl(int cpu)
512f9bcc181e53 Con Kolivas 2019-10-25  7164  {
512f9bcc181e53 Con Kolivas 2019-10-25  7165  	if (cpumask_available(sd_sysctl_cpus))
512f9bcc181e53 Con Kolivas 2019-10-25  7166  		__cpumask_set_cpu(cpu, sd_sysctl_cpus);
512f9bcc181e53 Con Kolivas 2019-10-25  7167  }
512f9bcc181e53 Con Kolivas 2019-10-25  7168  
512f9bcc181e53 Con Kolivas 2019-10-25  7169  /* may be called multiple times per register */
512f9bcc181e53 Con Kolivas 2019-10-25 @7170  void unregister_sched_domain_sysctl(void)
512f9bcc181e53 Con Kolivas 2019-10-25  7171  {
512f9bcc181e53 Con Kolivas 2019-10-25  7172  	unregister_sysctl_table(sd_sysctl_header);
512f9bcc181e53 Con Kolivas 2019-10-25  7173  	sd_sysctl_header = NULL;
512f9bcc181e53 Con Kolivas 2019-10-25  7174  }
512f9bcc181e53 Con Kolivas 2019-10-25  7175  #endif /* CONFIG_SYSCTL */
512f9bcc181e53 Con Kolivas 2019-10-25  7176  

:::::: The code at line 7105 was first introduced by commit
:::::: 512f9bcc181e532b200ee37678a8ab0186e6d821 MultiQueue Skiplist Scheduler v0.210

:::::: TO: Con Kolivas <kernel@kolivas.org>
:::::: CC: Steven Barrett <steven@liquorix.net>

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

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

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

only message in thread, other threads:[~2021-08-07 20:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-07 20:23 [zen-kernel-zen-kernel:5.13/muqss 30/32] kernel/sched/MuQSS.c:7105:6: warning: no previous prototype for 'register_sched_domain_sysctl' 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.