drivers/net/wireless/brcm80211/brcmfmac/debug.c:28:6: error: redefinition of 'brcmf_debugfs_init'
From: kbuild test robot
Date: Thu Oct 08 2015 - 14:52:52 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c6fa8e6de3dc420cba092bf155b2ed25bcd537f7
commit: a8e8ed3446a32a2323e70bc1cef05c5119d893e0 brcmfmac: (clean) Rename files dhd_dbg to debug
date: 11 months ago
config: x86_64-randconfig-x011-201540 (attached as .config)
reproduce:
git checkout a8e8ed3446a32a2323e70bc1cef05c5119d893e0
# save the attached .config to linux build tree
make ARCH=x86_64
All error/warnings (new ones prefixed by >>):
>> drivers/net/wireless/brcm80211/brcmfmac/debug.c:28:6: error: redefinition of 'brcmf_debugfs_init'
void brcmf_debugfs_init(void)
^
In file included from drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h:20:0,
from drivers/net/wireless/brcm80211/brcmfmac/debug.c:23:
drivers/net/wireless/brcm80211/brcmfmac/debug.h:115:20: note: previous definition of 'brcmf_debugfs_init' was here
static inline void brcmf_debugfs_init(void)
^
>> drivers/net/wireless/brcm80211/brcmfmac/debug.c:35:6: error: redefinition of 'brcmf_debugfs_exit'
void brcmf_debugfs_exit(void)
^
In file included from drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h:20:0,
from drivers/net/wireless/brcm80211/brcmfmac/debug.c:23:
drivers/net/wireless/brcm80211/brcmfmac/debug.h:118:20: note: previous definition of 'brcmf_debugfs_exit' was here
static inline void brcmf_debugfs_exit(void)
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c:53:5: error: redefinition of 'brcmf_debugfs_attach'
int brcmf_debugfs_attach(struct brcmf_pub *drvr)
^
In file included from drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h:20:0,
from drivers/net/wireless/brcm80211/brcmfmac/debug.c:23:
drivers/net/wireless/brcm80211/brcmfmac/debug.h:121:19: note: previous definition of 'brcmf_debugfs_attach' was here
static inline int brcmf_debugfs_attach(struct brcmf_pub *drvr)
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c: In function 'brcmf_debugfs_attach':
>> drivers/net/wireless/brcm80211/brcmfmac/debug.c:60:6: error: 'struct brcmf_pub' has no member named 'dbgfs_dir'
drvr->dbgfs_dir = debugfs_create_dir(dev_name(dev), root_folder);
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c:63:29: error: 'struct brcmf_pub' has no member named 'dbgfs_dir'
return PTR_ERR_OR_ZERO(drvr->dbgfs_dir);
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c: At top level:
drivers/net/wireless/brcm80211/brcmfmac/debug.c:66:6: error: redefinition of 'brcmf_debugfs_detach'
void brcmf_debugfs_detach(struct brcmf_pub *drvr)
^
In file included from drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h:20:0,
from drivers/net/wireless/brcm80211/brcmfmac/debug.c:23:
drivers/net/wireless/brcm80211/brcmfmac/debug.h:125:20: note: previous definition of 'brcmf_debugfs_detach' was here
static inline void brcmf_debugfs_detach(struct brcmf_pub *drvr)
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c: In function 'brcmf_debugfs_detach':
drivers/net/wireless/brcm80211/brcmfmac/debug.c:68:26: error: 'struct brcmf_pub' has no member named 'dbgfs_dir'
if (!IS_ERR_OR_NULL(drvr->dbgfs_dir))
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c:69:32: error: 'struct brcmf_pub' has no member named 'dbgfs_dir'
debugfs_remove_recursive(drvr->dbgfs_dir);
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c: In function 'brcmf_debugfs_get_devdir':
drivers/net/wireless/brcm80211/brcmfmac/debug.c:74:13: error: 'struct brcmf_pub' has no member named 'dbgfs_dir'
return drvr->dbgfs_dir;
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c: At top level:
>> drivers/net/wireless/brcm80211/brcmfmac/debug.c:97:5: error: redefinition of 'brcmf_debugfs_add_entry'
int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn,
^
In file included from drivers/net/wireless/brcm80211/brcmfmac/dhd_bus.h:20:0,
from drivers/net/wireless/brcm80211/brcmfmac/debug.c:23:
drivers/net/wireless/brcm80211/brcmfmac/debug.h:129:5: note: previous definition of 'brcmf_debugfs_add_entry' was here
int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn,
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c: In function 'brcmf_debugfs_add_entry':
drivers/net/wireless/brcm80211/brcmfmac/debug.c:100:31: error: 'struct brcmf_pub' has no member named 'dbgfs_dir'
struct dentry *dentry = drvr->dbgfs_dir;
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c: In function 'brcmf_debugfs_attach':
>> drivers/net/wireless/brcm80211/brcmfmac/debug.c:64:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
drivers/net/wireless/brcm80211/brcmfmac/debug.c: In function 'brcmf_debugfs_get_devdir':
drivers/net/wireless/brcm80211/brcmfmac/debug.c:75:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +/brcmf_debugfs_init +28 drivers/net/wireless/brcm80211/brcmfmac/debug.c
1d4fd8d7 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-10-22 17 #include <linux/netdevice.h>
80969836 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 18 #include <linux/module.h>
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 19
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 20 #include <brcmu_wifi.h>
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 21 #include <brcmu_utils.h>
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 22 #include "dhd.h"
d9cb2596 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-12-05 @23 #include "dhd_bus.h"
a8e8ed34 drivers/net/wireless/brcm80211/brcmfmac/debug.c Hante Meuleman 2014-10-28 24 #include "debug.h"
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 25
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 26 static struct dentry *root_folder;
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 27
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 @28 void brcmf_debugfs_init(void)
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 29 {
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 30 root_folder = debugfs_create_dir(KBUILD_MODNAME, NULL);
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 31 if (IS_ERR(root_folder))
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 32 root_folder = NULL;
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 33 }
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 34
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 @35 void brcmf_debugfs_exit(void)
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 36 {
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 37 if (!root_folder)
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 38 return;
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 39
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 40 debugfs_remove_recursive(root_folder);
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 41 root_folder = NULL;
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 42 }
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 43
1b1e4e9e drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 44 static int brcmf_debugfs_chipinfo_read(struct seq_file *seq, void *data)
7d68849f drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2013-11-29 45 {
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 46 struct brcmf_bus *bus = dev_get_drvdata(seq->private);
7d68849f drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2013-11-29 47
1b1e4e9e drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 48 seq_printf(seq, "chip: %x(%u) rev %u\n",
1b1e4e9e drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 49 bus->chip, bus->chip, bus->chiprev);
7d68849f drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2013-11-29 50 return 0;
1b1e4e9e drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 51 }
7d68849f drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2013-11-29 52
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 @53 int brcmf_debugfs_attach(struct brcmf_pub *drvr)
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 54 {
d9cb2596 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-12-05 55 struct device *dev = drvr->bus_if->dev;
d9cb2596 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-12-05 56
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 57 if (!root_folder)
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 58 return -ENODEV;
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 59
d9cb2596 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-12-05 @60 drvr->dbgfs_dir = debugfs_create_dir(dev_name(dev), root_folder);
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 61 brcmf_debugfs_add_entry(drvr, "chipinfo", brcmf_debugfs_chipinfo_read);
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 62
8c6ffba0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Rusty Russell 2013-07-15 63 return PTR_ERR_OR_ZERO(drvr->dbgfs_dir);
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 @64 }
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 65
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 66 void brcmf_debugfs_detach(struct brcmf_pub *drvr)
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 67 {
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 68 if (!IS_ERR_OR_NULL(drvr->dbgfs_dir))
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 @69 debugfs_remove_recursive(drvr->dbgfs_dir);
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 70 }
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 71
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 72 struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr)
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 73 {
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 74 return drvr->dbgfs_dir;
d319a7cf drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 75 }
80969836 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 76
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 77 struct brcmf_debugfs_entry {
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 78 int (*read)(struct seq_file *seq, void *data);
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 79 struct brcmf_pub *drvr;
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 80 };
1b1e4e9e drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 81
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 82 static int brcmf_debugfs_entry_open(struct inode *inode, struct file *f)
1b1e4e9e drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 83 {
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 84 struct brcmf_debugfs_entry *entry = inode->i_private;
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 85
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 86 return single_open(f, entry->read, entry->drvr->bus_if->dev);
80969836 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 87 }
80969836 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 88
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 89 static const struct file_operations brcmf_debugfs_def_ops = {
80969836 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 90 .owner = THIS_MODULE,
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 91 .open = brcmf_debugfs_entry_open,
1b1e4e9e drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 92 .release = single_release,
1b1e4e9e drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 93 .read = seq_read,
1b1e4e9e drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 94 .llseek = seq_lseek
80969836 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 95 };
80969836 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 96
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 @97 int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn,
82d957e0 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2014-07-12 98 int (*read_fn)(struct seq_file *seq, void *data))
80969836 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 99 {
80969836 drivers/net/wireless/brcm80211/brcmfmac/dhd_dbg.c Arend van Spriel 2012-06-09 100 struct dentry *dentry = drvr->dbgfs_dir;
:::::: The code at line 28 was first introduced by commit
:::::: d319a7cfd9d80a2e2359e978ba88991531312ee6 brcmfmac: add debugfs helper functions
:::::: TO: Arend van Spriel <arend@xxxxxxxxxxxx>
:::::: CC: John W. Linville <linville@xxxxxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data