Hi hayeswang,

FYI, there are new smatch warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   8e769788b31438ceb245960a72bec8ed51eb04b2
commit: 43779f8dfb0051b2ecd5f17ea7ad089443278e82 [1145/1155] r8152: support 
RTL8153

drivers/net/usb/r8152.c:2711 rtl_ops_init() warn: assigning (-14) to unsigned 
variable 'ret'

git remote add net-next 
git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
git remote update net-next
git checkout 43779f8dfb0051b2ecd5f17ea7ad089443278e82
vim +/ret +2711 drivers/net/usb/r8152.c

c81229c9 hayeswang 2014-01-02  2695             switch (id->idProduct) {
c81229c9 hayeswang 2014-01-02  2696             case PRODUCT_ID_RTL8152:
c81229c9 hayeswang 2014-01-02  2697                     ops->init               
= r8152b_init;
c81229c9 hayeswang 2014-01-02  2698                     ops->enable             
= rtl8152_enable;
c81229c9 hayeswang 2014-01-02  2699                     ops->disable            
= rtl8152_disable;
c81229c9 hayeswang 2014-01-02  2700                     ops->down               
= rtl8152_down;
c81229c9 hayeswang 2014-01-02  2701                     ops->unload             
= rtl8152_unload;
c81229c9 hayeswang 2014-01-02  2702                     break;
43779f8d hayeswang 2014-01-02  2703             case PRODUCT_ID_RTL8153:
43779f8d hayeswang 2014-01-02  2704                     ops->init               
= r8153_init;
43779f8d hayeswang 2014-01-02  2705                     ops->enable             
= rtl8153_enable;
43779f8d hayeswang 2014-01-02  2706                     ops->disable            
= rtl8152_disable;
43779f8d hayeswang 2014-01-02  2707                     ops->down               
= rtl8153_down;
43779f8d hayeswang 2014-01-02  2708                     ops->unload             
= rtl8153_unload;
43779f8d hayeswang 2014-01-02  2709                     break;
43779f8d hayeswang 2014-01-02  2710             default:
43779f8d hayeswang 2014-01-02 @2711                     ret = -EFAULT;
43779f8d hayeswang 2014-01-02  2712                     break;
43779f8d hayeswang 2014-01-02  2713             }
43779f8d hayeswang 2014-01-02  2714             break;
43779f8d hayeswang 2014-01-02  2715  
43779f8d hayeswang 2014-01-02  2716     case VENDOR_ID_SAMSUNG:
43779f8d hayeswang 2014-01-02  2717             switch (id->idProduct) {
43779f8d hayeswang 2014-01-02  2718             case PRODUCT_ID_SAMSUNG:
43779f8d hayeswang 2014-01-02  2719                     ops->init               
= r8153_init;

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to