x86: platform: iosf_mbi: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
Subsystems (2)
PATCH 1/1 x86: platform: iosf_mbi: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
Fix the following coccicheck warning:
./arch/x86/platform/intel/iosf_mbi.c:482:0-23: WARNING: iosf_mcr_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- arch/x86/platform/intel/iosf_mbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/platform/intel/iosf_mbi.c +1 -1
@@ -479,7 +479,7 @@ static int mcr_set(void *data, u64 val)return err; } -DEFINE_SIMPLE_ATTRIBUTE (iosf_mcr_fops, mcr_get, mcr_set ,"%llx\n" ); +DEFINE_DEBUGFS_ATTRIBUTE (iosf_mcr_fops, mcr_get, mcr_set,"%llx\n" );static struct dentry *iosf_dbg;
Signature · 1 line
1.8.3.1
Quoted 4 lines · Yang Li
Fix the following coccicheck warning:
./arch/x86/platform/intel/iosf_mbi.c:482:0-23: WARNING:iosf_mcr_fopsshould be defined withDEFINE_DEBUGFS_ATTRIBUTE
Acked-by Andy Shevchenko <[email protected]>
Quoted 22 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>--- arch/x86/platform/intel/iosf_mbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/x86/platform/intel/iosf_mbi.c +1
-2@@ -479,7 +479,7 @@ static int mcr_set(void *data, u64 val)return err; } -DEFINE_SIMPLE_ATTRIBUTE (iosf_mcr_fops, mcr_get, mcr_set ,"%llx\n" ); +DEFINE_DEBUGFS_ATTRIBUTE (iosf_mcr_fops, mcr_get, mcr_set,"%llx\n" );static struct dentry *iosf_dbg; --1.8.3.1
Signature · 2 lines
With Best Regards, Andy Shevchenko