[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yd/kSVaFyn2/huaf@alley>
Date: Thu, 13 Jan 2022 09:35:21 +0100
From: Petr Mladek <pmladek@...e.com>
To: jim.cromie@...il.com
Cc: Rasmus Villemoes <linux@...musvillemoes.dk>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
John Ogness <john.ogness@...utronix.de>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
Steven Rostedt <rostedt@...dmis.org>,
Chris Down <chris@...isdown.name>,
Marc Zyngier <maz@...nel.org>,
Andrew Scull <ascull@...gle.com>,
Will Deacon <will@...nel.org>, Jason Baron <jbaron@...mai.com>,
Peter Zijlstra <peterz@...radead.org>,
Josh Poimboeuf <jpoimboe@...hat.com>,
LKML <linux-kernel@...r.kernel.org>,
Andy Shevchenko <andy.shevchenko@...il.com>,
Jessica Yu <jeyu@...nel.org>
Subject: Re: [RFC 1/2] printk/dynamic_debug: Remove cyclic dependency between
printk.h and dynamic_debug.h
On Wed 2022-01-12 20:38:57, jim.cromie@...il.com wrote:
> On Wed, Jan 12, 2022 at 5:12 AM Petr Mladek <pmladek@...e.com> wrote:
> >
> > On Tue 2022-01-11 17:01:35, Rasmus Villemoes wrote:
> > > On 11/01/2022 15.30, Petr Mladek wrote:
>
>
> > > > static inline int dynamic_debug_exec_queries(const char *query, const char *modname)
> > > > {
> > > > - pr_warn("kernel not built with CONFIG_DYNAMIC_DEBUG_CORE\n");
> > > > + /* Use raw _printk() to avoid cyclic dependency. */
> > > > + _printk(KERN_WARNING "kernel not built with CONFIG_DYNAMIC_DEBUG_CORE\n");
> > > > return 0;
> > > > }
> > >
> > > And for this one I think the solution is even simpler, as I can't find
> > > any in-tree callers. Perhaps just nuke it entirely?
> >
> > Adding Jim into Cc whether he still has any plans to use this API.
> >
> > Best Regards,
> > Petr
>
> This EXPORT can go.
Does it mean that the entire function might be removed or just
EXPORT_SYMBOL_GPL() macro, please?
I am especially interested whether we could remove pr_warn()
from the header file. It would help us the get rid of the
cyclic header dependency an easy way.
Best Regards,
Petr
Powered by blists - more mailing lists