]> asedeno.scripts.mit.edu Git - linux.git/commit
ptp: fix debugfs_simple_attr.cocci warnings
authorYueHaibing <yuehaibing@huawei.com>
Fri, 25 Jan 2019 02:28:59 +0000 (02:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Jan 2019 06:05:23 +0000 (22:05 -0800)
commit84239b445964b15045e1418ebf28e74121ace309
tree370b6032ca45e985b98cbfe6d3d8b5bcc0d97625
parentf515220cc24be9824d304ebe62867ec31aeb47fb
ptp: fix debugfs_simple_attr.cocci warnings

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: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_qoriq_debugfs.c