On Monday, January 14, 2019 11:51:51 AM CET Borislav Petkov wrote: > On Wed, Jan 02, 2019 at 01:18:08PM +0000, YueHaibing wrote: > > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE > > for debugfs files to make debugfs_simple_attr.cocci warnings go away. > > > > 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: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci > > > > Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx> > > --- > > v3: add semantic patch information > > v2: fix patch title and log > > --- > > drivers/acpi/apei/einj.c | 17 +++++++++-------- > > 1 file changed, 9 insertions(+), 8 deletions(-) > > Acked-by: Borislav Petkov <bp@xxxxxxx> Patch applied, thanks!