All of lore.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@ZenIV.linux.org.uk>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Joe Perches <joe@perches.com>,
	Richard Weinberger <richard@nod.at>,
	user-mode-linux-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org, x86@kernel.org
Subject: Re: [PATCH 2/4] arch/um/os-Linux: Drop UM_ prefix from printk() level specifiers
Date: Sat, 29 Sep 2012 21:43:14 +0100	[thread overview]
Message-ID: <20120929204314.GK13973@ZenIV.linux.org.uk> (raw)
In-Reply-To: <CAMuHMdWiDKV2=kbO8UGqZBETdrYExLRbaRFNnVTVRcWUs16OcA@mail.gmail.com>

On Sat, Sep 29, 2012 at 10:27:44PM +0200, Geert Uytterhoeven wrote:
> On Sat, Sep 29, 2012 at 10:10 PM, Joe Perches <joe@perches.com> wrote:
> >> @@ -88,7 +88,7 @@ static int do_aio(aio_context_t ctx, enum aio_type type, int fd, char *buf,
> >>               iocbp->aio_nbytes = sizeof(c);
> >>               break;
> >>       default:
> >> -             printk(UM_KERN_ERR "Bogus op in do_aio - %d\n", type);
> >> +             printk(KERN_ERR "Bogus op in do_aio - %d\n", type);
> >
> > Maybe a follow-on patch to convert these to pr_<level>?
> 
> That requires adding pr_<level> to arch/um/include/shared/user.h first.
> Or to avoid duplication, extracting the pr_<level> definitions from
> include/linux/printk.h to a new header file, and preincluding that one for
> the user part of UML, too.

Yecchhh....  Just how many of those pre-includes do you want to add?
Seriously, if we get enough of those, it might make more sense to take
them into a separate directory and add it to search paths, including
that for userland objects of uml.  If not, I'd rather copy them to
include/generated in arch/um/Makefile and explicitly #include <generated/foo.h>
them from user.h.  It's trivially doable and as long as we have relatively
few of those guys it's less PITA...


  reply	other threads:[~2012-09-29 20:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-29 17:07 [PATCH 1/4] arch/um/drivers: Drop UM_ prefix from printk() level specifiers Geert Uytterhoeven
2012-09-29 17:07 ` [PATCH 2/4] arch/um/os-Linux: " Geert Uytterhoeven
2012-09-29 20:10   ` Joe Perches
2012-09-29 20:27     ` Geert Uytterhoeven
2012-09-29 20:43       ` Al Viro [this message]
2012-09-29 20:58         ` Geert Uytterhoeven
2012-09-29 17:07 ` [PATCH 3/4] arch/x86/um: " Geert Uytterhoeven
2012-09-29 17:07 ` [PATCH 4/4] um: Remove obsolete UM_ prefixed " Geert Uytterhoeven
2012-09-29 20:08 ` [PATCH 1/4] arch/um/drivers: Drop UM_ prefix from " Joe Perches

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=20120929204314.GK13973@ZenIV.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=geert@linux-m68k.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=richard@nod.at \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=x86@kernel.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.