All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rik van Riel <riel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: kbuild test robot <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Peter Zijlstra <peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
	Ingo Molnar <mingo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [cgroup:for-next 5/6] kernel/cpuset.c:1710:53: error: 'cpu_isolated_map' undeclared
Date: Mon, 02 Mar 2015 13:10:10 -0500	[thread overview]
Message-ID: <54F4A782.4050605@redhat.com> (raw)
In-Reply-To: <201503030135.5JcSQnmv%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

On 03/02/2015 12:24 PM, kbuild test robot wrote:
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-next
> head:   43315c496d458ba0603c7f019d063bcbf3b6779e
> commit: 87793a671b15d945ea1c278c441af9e5b7d3dd73 [5/6] cpusets,isolcpus: add file to show isolated cpus in cpuset
> config: um-x86_64_defconfig (attached as .config)
> reproduce:
>   git checkout 87793a671b15d945ea1c278c441af9e5b7d3dd73
>   # save the attached .config to linux build tree
>   make ARCH=um SUBARCH=x86_64
> 
> All error/warnings:
> 
>    kernel/cpuset.c: In function 'cpuset_seq_print_isolcpus':
>>> kernel/cpuset.c:1710:53: error: 'cpu_isolated_map' undeclared (first use in this function)
>      cpumask_and(print_isolated_cpus, cs->cpus_allowed, cpu_isolated_map);
>                                                         ^
>    kernel/cpuset.c:1710:53: note: each undeclared identifier is reported only once for each function it appears in
> 
> vim +/cpu_isolated_map +1710 kernel/cpuset.c
> 
>   1704	
>   1705	/* protected by the lock in cpuset_common_seq_show */
>   1706	static cpumask_var_t print_isolated_cpus;
>   1707	
>   1708	static void cpuset_seq_print_isolcpus(struct seq_file *sf, struct cpuset *cs)
>   1709	{
>> 1710		cpumask_and(print_isolated_cpus, cs->cpus_allowed, cpu_isolated_map);
>   1711	
>   1712		seq_printf(sf, "%*pbl\n", cpumask_pr_args(print_isolated_cpus));
>   1713	}

This seems to break because the test is building a
UP kernel with CONFIG_CPUSETS=y

It should be fairly easy to fix this up by moving the
cpu_isolated_map outside CONFIG_SMP, but I wonder if
that is desirable to the scheduler people, especially
given that cpusets does not seem particularly useful
on a UP system...

I can see a few ways to fix this:

1) Move cpu_isolated_map outside CONFIG_SMP, like
   cpu_possible_mask, etc...

2) Change cpumask_and and related functions to just
   ignore all their arguments when building a UP
   kernel, which would allow us to drop cpu_possible_mask
   and others when building a UP kernel

3) Making CONFIG_CPUSETS dependent on CONFIG_SMP

Any preferences?

-- 
All rights reversed

           reply	other threads:[~2015-03-02 18:10 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <201503030135.5JcSQnmv%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>]

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=54F4A782.4050605@redhat.com \
    --to=riel-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=mingo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
    --cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    /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 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.