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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202112171150.GzuAOv0N-lkp@intel.com>
Date:   Fri, 17 Dec 2021 11:33:20 +0800
From:   kernel test robot <lkp@...el.com>
To:     luizluca@...il.com, netdev@...r.kernel.org
Cc:     kbuild-all@...ts.01.org, linus.walleij@...aro.org, andrew@...n.ch,
        vivien.didelot@...il.com, f.fainelli@...il.com, olteanv@...il.com,
        alsi@...g-olufsen.dk, arinc.unal@...nc9.com,
        Luiz Angelo Daros de Luca <luizluca@...il.com>
Subject: Re: [PATCH net-next 08/13] net: dsa: realtek: add new mdio interface
 for drivers

Hi,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]

url:    https://github.com/0day-ci/linux/commits/luizluca-gmail-com/net-dsa-realtek-MDIO-interface-and-RTL8367S/20211217-041735
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 0f473bb6ed2d0b8533a079ee133f625f83de5315
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20211217/202112171150.GzuAOv0N-lkp@intel.com/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://github.com/0day-ci/linux/commit/15bfe75ad3669cdcef7bfab281d7744c226fc503
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review luizluca-gmail-com/net-dsa-realtek-MDIO-interface-and-RTL8367S/20211217-041735
        git checkout 15bfe75ad3669cdcef7bfab281d7744c226fc503
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/net/dsa/realtek/

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

All warnings (new ones prefixed by >>):

>> drivers/net/dsa/realtek/realtek-mdio.c:54:5: warning: no previous prototype for 'realtek_mdio_read_reg' [-Wmissing-prototypes]
      54 | int realtek_mdio_read_reg(struct realtek_priv *priv, u32 addr, u32 *data)
         |     ^~~~~~~~~~~~~~~~~~~~~


vim +/realtek_mdio_read_reg +54 drivers/net/dsa/realtek/realtek-mdio.c

    53	
  > 54	int realtek_mdio_read_reg(struct realtek_priv *priv, u32 addr, u32 *data)
    55	{
    56	        u32 phy_id = priv->phy_id;
    57		struct mii_bus *bus = priv->bus;
    58	
    59	        BUG_ON(in_interrupt());
    60	
    61	        mutex_lock(&bus->mdio_lock);
    62	        /* Write Start command to register 29 */
    63	        bus->write(bus, phy_id, MDC_MDIO_START_REG, MDC_MDIO_START_OP);
    64	
    65	        /* Write address control code to register 31 */
    66	        bus->write(bus, phy_id, MDC_MDIO_CTRL0_REG, MDC_MDIO_ADDR_OP);
    67	
    68	        /* Write Start command to register 29 */
    69	        bus->write(bus, phy_id, MDC_MDIO_START_REG, MDC_MDIO_START_OP);
    70	
    71	        /* Write address to register 23 */
    72	        bus->write(bus, phy_id, MDC_MDIO_ADDRESS_REG, addr);
    73	
    74	        /* Write Start command to register 29 */
    75	        bus->write(bus, phy_id, MDC_MDIO_START_REG, MDC_MDIO_START_OP);
    76	
    77	        /* Write read control code to register 21 */
    78	        bus->write(bus, phy_id, MDC_MDIO_CTRL1_REG, MDC_MDIO_READ_OP);
    79	
    80	        /* Write Start command to register 29 */
    81	        bus->write(bus, phy_id, MDC_MDIO_START_REG, MDC_MDIO_START_OP);
    82	
    83	        /* Read data from register 25 */
    84	        *data = bus->read(bus, phy_id, MDC_MDIO_DATA_READ_REG);
    85	
    86	        mutex_unlock(&bus->mdio_lock);
    87	
    88	        return 0;
    89	}
    90	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ