提交 c7fc46fd 编写于 作者: A Arnd Bergmann 提交者: Greg Kroah-Hartman

staging: ccree: mark debug_regs[] as static

The global array clashes with an existing symbol of the same name:

drivers/staging/ccree/cc_debugfs.o:(.data+0x0): multiple definition of `debug_regs'
drivers/mmc/host/s3cmci.o:(.data+0x70): first defined here

We should fix both, this one addresses the ccree driver by removing
the symbol from the global namespace.

Fixes: 9bdd203b ("s3cmci: add debugfs support for examining driver and hardware state")
Fixes: b3ec9a67 ("staging: ccree: staging: ccree: replace sysfs by debugfs interface")
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Acked-by: NGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 21c0885f
...@@ -37,7 +37,7 @@ struct cc_debugfs_ctx { ...@@ -37,7 +37,7 @@ struct cc_debugfs_ctx {
*/ */
static struct dentry *cc_debugfs_dir; static struct dentry *cc_debugfs_dir;
struct debugfs_reg32 debug_regs[] = { static struct debugfs_reg32 debug_regs[] = {
CC_DEBUG_REG(HOST_SIGNATURE), CC_DEBUG_REG(HOST_SIGNATURE),
CC_DEBUG_REG(HOST_IRR), CC_DEBUG_REG(HOST_IRR),
CC_DEBUG_REG(HOST_POWER_DOWN_EN), CC_DEBUG_REG(HOST_POWER_DOWN_EN),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册