[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YFDgictc4oFuJYc2@kroah.com>
Date: Tue, 16 Mar 2021 17:44:57 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Mihai Carabas <mihai.carabas@...cle.com>
Cc: linux-kernel@...r.kernel.org, arnd@...db.de,
bobo.shaobowang@...wei.com, rdunlap@...radead.org
Subject: Re: [PATCH v5 1/3] misc/pvpanic: split-up generic and platform
dependent code
On Tue, Mar 16, 2021 at 02:20:27PM +0200, Mihai Carabas wrote:
> +#ifdef pr_fmt
> +#undef pr_fmt
> +#endif
> +
> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
This isn't even needed given you do not have any pr_* calls in this
code. As you shouldn't this is driver stuff, you should always use the
dev_* calls instead.
But you can delete that later, this is fine for now. However generally
you do not set this value in a .h file, but rather in the individual .c
files if you really need it.
thanks,
greg k-h
Powered by blists - more mailing lists