From: Greg KH <gregkh@linuxfoundation.org>
To: wujunwen <wudaemon@163.com>
Cc: arnd@arndb.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] char: misc:use DEFINE_PROC_SHOW_ATTRIBUTE micro to simplify misc proc_fops
Date: Sun, 24 Apr 2022 17:35:01 +0200 [thread overview]
Message-ID: <YmVuJd/ngwjbK+8T@kroah.com> (raw)
In-Reply-To: <20220331151557.3946-1-wudaemon@163.com>
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
next prev parent reply other threads:[~2022-04-24 15:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-31 15:15 wujunwen
2022-04-24 15:35 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-03-27 14:32 wujunwen
2022-03-28 5:51 ` Greg KH
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=YmVuJd/ngwjbK+8T@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=wudaemon@163.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®