[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211101084352.36641-1-deng.changcheng@zte.com.cn>
Date: Mon, 1 Nov 2021 08:43:52 +0000
From: cgel.zte@...il.com
To: mpe@...erman.id.au
Cc: benh@...nel.crashing.org, paulus@...ba.org, pmladek@...e.com,
christophe.leroy@...roup.eu, john.ogness@...utronix.de,
npiggin@...il.com, naveen.n.rao@...ux.vnet.ibm.com,
sxwjean@...il.com, arnd@...db.de, clg@...d.org,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
Changcheng Deng <deng.changcheng@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH] powerpc/xmon: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE
From: Changcheng Deng <deng.changcheng@....com.cn>
Fix the following coccicheck warning:
./arch/powerpc/xmon/xmon.c: 4064: 0-23: WARNING: xmon_dbgfs_ops should
be defined with DEFINE_DEBUGFS_ATTRIBUTE
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@....com.cn>
---
arch/powerpc/xmon/xmon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index dd8241c009e5..875241bd216b 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -4062,7 +4062,7 @@ static int xmon_dbgfs_get(void *data, u64 *val)
return 0;
}
-DEFINE_SIMPLE_ATTRIBUTE(xmon_dbgfs_ops, xmon_dbgfs_get,
+DEFINE_DEBUGFS_ATTRIBUTE(xmon_dbgfs_ops, xmon_dbgfs_get,
xmon_dbgfs_set, "%llu\n");
static int __init setup_xmon_dbgfs(void)
--
2.25.1
Powered by blists - more mailing lists