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

Attachment: .config.gz
Description: application/gzip

Reply via email to