[-next] powerpc/mm: Fix debugfs_simple_attr.cocci warnings
Michael Ellerman
patch-notifications at ellerman.id.au
Thu Jan 24 14:40:22 AEDT 2019
On Wed, 2019-01-09 at 12:10:58 UTC, YueHaibing wrote:
> 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 at huawei.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/7cd4774ff7a495839f49a582be729959
cheers
More information about the Linuxppc-dev
mailing list