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: <201703151059.melKPbO9%fengguang.wu@intel.com>
Date:   Wed, 15 Mar 2017 10:20:58 +0800
From:   kbuild test robot <lkp@...el.com>
To:     sean.wang@...iatek.com
Cc:     kbuild-all@...org, andrew@...n.ch, f.fainelli@...il.com,
        vivien.didelot@...oirfairelinux.com, matthias.bgg@...il.com,
        robh+dt@...nel.org, mark.rutland@....com,
        devicetree@...r.kernel.org, netdev@...r.kernel.org,
        linux-kernel@...r.kernel.org, linux-mediatek@...ts.infradead.org,
        davem@...emloft.net, sean.wang@...iatek.com,
        Landen.Chao@...iatek.com, keyhaede@...il.com, objelf@...il.com
Subject: Re: [PATCH net-next 4/4] net-next: dsa: add dsa support for Mediatek
 MT7530 switch

Hi Sean,

[auto build test WARNING on robh/for-next]
[also build test WARNING on v4.11-rc2 next-20170310]
[cannot apply to net-next/master net/master]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/sean-wang-mediatek-com/dt-bindings-net-dsa-add-Mediatek-MT7530-binding/20170315-083834
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from drivers/net/dsa/mt7530.c:25:0:
   drivers/net/dsa/mt7530.c: In function 'mt7530_setup':
>> drivers/net/dsa/mt7530.c:699:19: warning: large integer implicitly truncated to unsigned type [-Woverflow]
           RESET_MCM, ~RESET_MCM);
                      ^
   include/linux/regmap.h:70:42: note: in definition of macro 'regmap_update_bits'
     regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
                                             ^~~
   drivers/net/dsa/mt7530.c: In function 'mt7530_probe':
   drivers/net/dsa/mt7530.c:1076:27: warning: unused variable 'mdio' [-Wunused-variable]
     struct device_node *dn, *mdio;
                              ^~~~
   drivers/net/dsa/mt7530.c: In function 'mt7530_remove':
   drivers/net/dsa/mt7530.c:1173:9: warning: 'return' with a value, in function returning void
     return ret;
            ^~~
   drivers/net/dsa/mt7530.c:1153:1: note: declared here
    mt7530_remove(struct mdio_device *mdiodev)
    ^~~~~~~~~~~~~

vim +699 drivers/net/dsa/mt7530.c

   683		ret = regulator_enable(priv->io_pwr);
   684		if (ret < 0) {
   685			dev_err(priv->dev, "Failed to enable io pwr: %d\n",
   686				ret);
   687			return ret;
   688		}
   689	
   690		/* Reset whole chip through gpio pin or
   691		 * memory-mapped registers for different
   692		 * type of hardware
   693		 */
   694		if (priv->mcm) {
   695			regmap_update_bits(priv->ethsys, SYSC_REG_RSTCTRL,
   696					   RESET_MCM, RESET_MCM);
   697			usleep_range(1000, 1100);
   698			regmap_update_bits(priv->ethsys, SYSC_REG_RSTCTRL,
 > 699					   RESET_MCM, ~RESET_MCM);
   700		} else {
   701			gpio_direction_output(priv->reset, 0);
   702			usleep_range(1000, 1100);
   703			gpio_set_value(priv->reset, 1);
   704		}
   705	
   706		/* Wait until the reset completion */
   707		ret = wait_condition_timeout(mt7530_read(priv, MT7530_HWTRAP) != 0,

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ