Re: [PATCH next] KVM: Fix debugfs_simple_attr.cocci warnings

From: Paolo Bonzini
Date: Thu Jan 09 2020 - 04:18:06 EST


On 08/01/20 11:29, Nicolai Stange wrote:
>
> How about introducing a
> #define debugfs_create_attr debugfs_create_file_unsafe
> instead to make those
> s/DEFINE_SIMPLE_ATTRIBUTE/DEFINE_DEBUGFS_ATTRIBUTE/
> patches look less scary?

I agree that could be worthwhile. My main complaint is the "scariness
factor" of the patches that convert DEFINE_SIMPLE_ATTRIBUTE to
DEFINE_DEBUGFS_ATTRIBUTE, and this change would alleviate that problem.

Thanks,

Paolo