Re: [PATCH v2] char: misc:use DEFINE_PROC_SHOW_ATTRIBUTE micro to simplify misc proc_fops

From: Greg KH
Date: Sun Apr 24 2022 - 11:38:13 EST


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