Re: [PATCH -next] ptp: fix debugfs_simple_attr.cocci warnings

2019-01-25 Thread David Miller
From: YueHaibing Date: Fri, 25 Jan 2019 02:28:59 + > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE > for debugfs files. > > Semantic patch information: > Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() > imposes some significant overhead as compared to > DEFINE_

RE: [PATCH -next] ptp: fix debugfs_simple_attr.cocci warnings

2019-01-24 Thread Y.b. Lu
> -Original Message- > From: YueHaibing > Sent: Friday, January 25, 2019 10:29 AM > To: Y.b. Lu ; Richard Cochran > ; da...@davemloft.net > Cc: YueHaibing ; netdev@vger.kernel.org; > kernel-janit...@vger.kernel.org > Subject: [PATCH -next] ptp: fix debugfs_si

[PATCH -next] ptp: fix debugfs_simple_attr.cocci warnings

2019-01-24 Thread YueHaibing
Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE for debugfs files. Semantic patch information: Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() imposes some significant overhead as compared to DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). Generated by: script