[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YmVuJd/ngwjbK+8T@kroah.com>
Date: Sun, 24 Apr 2022 17:35:01 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: wujunwen <wudaemon@....com>
Cc: arnd@...db.de, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] char: misc:use DEFINE_PROC_SHOW_ATTRIBUTE micro to
simplify misc proc_fops
On Thu, Mar 31, 2022 at 03:15:57PM +0000, wujunwen wrote:
> @@ -266,9 +249,11 @@ static char *misc_devnode(struct device *dev, umode_t *mode)
> static int __init misc_init(void)
> {
> int err;
> +#ifdef CONFIG_PROC_FS
We do not like putting #ifdefs in .c files. Please remove these, they
should not be needed.
thanks,
greg k-h
Powered by blists - more mailing lists