lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111101555.QvT6Inf8-lkp@intel.com>
Date:   Wed, 10 Nov 2021 15:21:03 +0800
From:   kernel test robot <lkp@...el.com>
To:     Marek BehĂșn <kabel@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [kabel:net-queue-work2 79/79] drivers/net/phy/mdio_debugfs.c:43:5:
 error: no previous prototype for 'mdiobus_register_debugfs'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kabel/linux.git net-queue-work2
head:   6e6c882b9f9314372cef270671a39ea67460ea6b
commit: 6e6c882b9f9314372cef270671a39ea67460ea6b [79/79] net: mdiobus: add support to access PHY registers via debugfs [*not for mainline*]
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/kabel/linux.git/commit/?id=6e6c882b9f9314372cef270671a39ea67460ea6b
        git remote add kabel https://git.kernel.org/pub/scm/linux/kernel/git/kabel/linux.git
        git fetch --no-tags kabel net-queue-work2
        git checkout 6e6c882b9f9314372cef270671a39ea67460ea6b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> drivers/net/phy/mdio_debugfs.c:43:5: error: no previous prototype for 'mdiobus_register_debugfs' [-Werror=missing-prototypes]
      43 | int mdiobus_register_debugfs(struct mii_bus *bus)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/phy/mdio_debugfs.c:65:6: error: no previous prototype for 'mdiobus_unregister_debugfs' [-Werror=missing-prototypes]
      65 | void mdiobus_unregister_debugfs(struct mii_bus *bus)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/phy/mdio_debugfs.c:76:5: error: no previous prototype for 'mdiobus_debugfs_init' [-Werror=missing-prototypes]
      76 | int mdiobus_debugfs_init(void)
         |     ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/phy/mdio_debugfs.c:89:6: error: no previous prototype for 'mdiobus_debugfs_exit' [-Werror=missing-prototypes]
      89 | void mdiobus_debugfs_exit(void)
         |      ^~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/mdiobus_register_debugfs +43 drivers/net/phy/mdio_debugfs.c

    42	
  > 43	int mdiobus_register_debugfs(struct mii_bus *bus)
    44	{
    45		struct dentry *dir, *entry;
    46	
    47		dir = debugfs_create_dir(dev_name(&bus->dev), mdiobus_dentry);
    48		if (IS_ERR(dir))
    49			return PTR_ERR(dir);
    50	
    51		debugfs_create_u32("addr", 0600, dir, &bus->debug_addr);
    52		debugfs_create_u32("reg", 0600, dir, &bus->debug_reg);
    53	
    54		entry = debugfs_create_file_unsafe("val", 0600, dir, bus, &val_fops);
    55		if (IS_ERR(entry))
    56			goto fail;
    57	
    58		return 0;
    59	
    60	fail:
    61		debugfs_remove_recursive(dir);
    62		return PTR_ERR(entry);
    63	}
    64	
  > 65	void mdiobus_unregister_debugfs(struct mii_bus *bus)
    66	{
    67		struct dentry *dir;
    68	
    69		dir = debugfs_lookup(dev_name(&bus->dev), mdiobus_dentry);
    70		if (!dir)
    71			return;
    72	
    73		debugfs_remove_recursive(dir);
    74	}
    75	
  > 76	int mdiobus_debugfs_init(void)
    77	{
    78		struct dentry *dentry;
    79	
    80		dentry = debugfs_create_dir("mdio_bus", NULL);
    81		if (IS_ERR(dentry))
    82			return PTR_ERR(dentry);
    83	
    84		mdiobus_dentry = dentry;
    85	
    86		return 0;
    87	}
    88	
  > 89	void mdiobus_debugfs_exit(void)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (69624 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ