From: Andrew Morton <akpm@linux-foundation.org>
To: Josh Triplett <josh@joshtriplett.org>
Cc: Dwight Engen <dwight.engen@oracle.com>,
Eric Paris <eparis@redhat.com>,
Frederic Weisbecker <fweisbec@gmail.com>,
Jiri Slaby <jslaby@suse.cz>, Kyungsik Lee <kyungsik.lee@lge.com>,
Michal Hocko <mhocko@suse.cz>, Michal Marek <mmarek@suse.cz>,
Mike Frysinger <vapier@gentoo.org>,
Paul Gortmaker <paul.gortmaker@windriver.com>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
Rob Landley <rob@landley.net>,
"Yann E. MORIN" <yann.morin.1998@free.fr>,
linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kconfig: Make allnoconfig disable options behind EMBEDDED and EXPERT
Date: Tue, 25 Feb 2014 13:09:25 -0800 [thread overview]
Message-ID: <20140225130925.813f29105079cbd3d5a9ba30@linux-foundation.org> (raw)
In-Reply-To: <20140224022021.GA12665@thin>
On Sun, 23 Feb 2014 18:20:26 -0800 Josh Triplett <josh@joshtriplett.org> wrote:
> "make allnoconfig" exists to ease testing of minimal configurations.
> Documentation/SubmitChecklist includes a note to test with allnoconfig.
> This helps catch missing dependencies on common-but-not-required
> functionality, which might otherwise go unnoticed.
>
> However, allnoconfig still leaves many symbols enabled, because they're
> hidden behind CONFIG_EMBEDDED or CONFIG_EXPERT. For instance,
> allnoconfig still has CONFIG_PRINTK and CONFIG_BLOCK enabled, so drivers
> don't typically get build-tested with those disabled.
>
> To address this, introduce a new Kconfig option "allnoconfig_y", used on
> symbols which only exist to hide other symbols. Set it on
> CONFIG_EMBEDDED (which then selects CONFIG_EXPERT). allnoconfig will
> then disable all the symbols hidden behind those.
Now look what you've done!
kernel/sched/core.c: In function 'pick_next_task':
kernel/sched/core.c:2613: warning: control reaches end of non-void function
static inline struct task_struct *
pick_next_task(struct rq *rq, struct task_struct *prev)
{
const struct sched_class *class;
struct task_struct *p;
/*
* Optimization: we know that if all tasks are in
* the fair class we can call that function directly:
*/
if (likely(prev->sched_class == &fair_sched_class &&
rq->nr_running == rq->cfs.h_nr_running)) {
p = fair_sched_class.pick_next_task(rq, prev);
if (likely(p))
return p;
}
for_each_class(class) {
p = class->pick_next_task(rq, prev);
if (p)
return p;
}
BUG(); /* the idle class will always have a runnable task */
}
akpm3:/usr/src/25> grep CONFIG_BUG .config
# CONFIG_BUG is not set
next prev parent reply other threads:[~2014-02-25 21:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 2:20 [PATCH] kconfig: Make allnoconfig disable options behind EMBEDDED and EXPERT Josh Triplett
2014-02-24 22:19 ` Paul E. McKenney
2014-02-25 21:09 ` Andrew Morton [this message]
2014-02-26 1:45 ` Josh Triplett
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=20140225130925.813f29105079cbd3d5a9ba30@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dwight.engen@oracle.com \
--cc=eparis@redhat.com \
--cc=fweisbec@gmail.com \
--cc=josh@joshtriplett.org \
--cc=jslaby@suse.cz \
--cc=kyungsik.lee@lge.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhocko@suse.cz \
--cc=mmarek@suse.cz \
--cc=paul.gortmaker@windriver.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=rob@landley.net \
--cc=vapier@gentoo.org \
--cc=yann.morin.1998@free.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox