CC: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]>
TO: "Marek Behún" <[email protected]>

Hi "Marek,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on cd29296fdfca919590e4004a7e4905544f4c4a32]

url:    
https://github.com/0day-ci/linux/commits/Marek-Beh-n/netdev-trigger-offloading-and-LEDs-on-Marvell-PHYs/20201030-194640
base:    cd29296fdfca919590e4004a7e4905544f4c4a32
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago
config: i386-randconfig-m021-20201030 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
drivers/leds/trigger/ledtrig-netdev.c:169 netdev_led_attr_show() error: 
uninitialized symbol 'val'.

vim +/val +169 drivers/leds/trigger/ledtrig-netdev.c

06f502f57d0d772 Ben Whitten      2017-12-10  147  
06f502f57d0d772 Ben Whitten      2017-12-10  148  static ssize_t 
netdev_led_attr_show(struct device *dev, char *buf,
06f502f57d0d772 Ben Whitten      2017-12-10  149        enum netdev_led_attr 
attr)
06f502f57d0d772 Ben Whitten      2017-12-10  150  {
f8112a1de1a728f Uwe Kleine-König 2018-07-02  151        struct led_netdev_data 
*trigger_data = led_trigger_get_drvdata(dev);
b83abc371664b0d Marek Behún      2020-10-30  152        int val;
06f502f57d0d772 Ben Whitten      2017-12-10  153  
06f502f57d0d772 Ben Whitten      2017-12-10  154        switch (attr) {
06f502f57d0d772 Ben Whitten      2017-12-10  155        case NETDEV_ATTR_LINK:
b83abc371664b0d Marek Behún      2020-10-30  156                val = 
trigger_data->link;
06f502f57d0d772 Ben Whitten      2017-12-10  157                break;
06f502f57d0d772 Ben Whitten      2017-12-10  158        case NETDEV_ATTR_TX:
b83abc371664b0d Marek Behún      2020-10-30  159                val = 
trigger_data->tx;
06f502f57d0d772 Ben Whitten      2017-12-10  160                break;
06f502f57d0d772 Ben Whitten      2017-12-10  161        case NETDEV_ATTR_RX:
b83abc371664b0d Marek Behún      2020-10-30  162                val = 
trigger_data->rx;
06f502f57d0d772 Ben Whitten      2017-12-10  163                break;
06f502f57d0d772 Ben Whitten      2017-12-10  164        default:
b83abc371664b0d Marek Behún      2020-10-30  165                /* unreachable 
*/
b83abc371664b0d Marek Behún      2020-10-30  166                break;
06f502f57d0d772 Ben Whitten      2017-12-10  167        }
06f502f57d0d772 Ben Whitten      2017-12-10  168  
b83abc371664b0d Marek Behún      2020-10-30 @169        return sprintf(buf, 
"%u\n", val);
06f502f57d0d772 Ben Whitten      2017-12-10  170  }
06f502f57d0d772 Ben Whitten      2017-12-10  171  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to