[PATCH -next] powerpc/64s: Fix debugfs_simple_attr.cocci warnings

Michael Ellerman patch-notifications at ellerman.id.au
Thu Nov 14 20:08:32 AEDT 2019


On Thu, 2018-11-29 at 13:35:18 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/090d5ab93d0b8a079dd516c16649bd00ba4f7302

cheers


More information about the Linuxppc-dev mailing list