CC: [email protected] TO: Ryder Lee <[email protected]> CC: Felix Fietkau <[email protected]>
tree: https://github.com/nbd168/wireless mt76 head: 61a1f99dd1e3c145fce9d601b52e7adb8f37322a commit: 109e505ad944dc207aaa9ee134b0994be09d291d [35/100] mt76: mt7615: add thermal sensor device support :::::: branch date: 2 days ago :::::: commit date: 2 days ago compiler: ia64-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> vim +36 drivers/net/wireless/mediatek/mt76/mt7615/init.c 04b8e65922f631 Ryder Lee 2019-04-01 17 109e505ad944dc Ryder Lee 2021-04-24 18 static ssize_t mt7615_thermal_show_temp(struct device *dev, 109e505ad944dc Ryder Lee 2021-04-24 19 struct device_attribute *attr, 109e505ad944dc Ryder Lee 2021-04-24 20 char *buf) 109e505ad944dc Ryder Lee 2021-04-24 21 { 109e505ad944dc Ryder Lee 2021-04-24 22 struct mt7615_dev *mdev = dev_get_drvdata(dev); 109e505ad944dc Ryder Lee 2021-04-24 23 int temperature; 109e505ad944dc Ryder Lee 2021-04-24 24 109e505ad944dc Ryder Lee 2021-04-24 25 if (!mt7615_wait_for_mcu_init(mdev)) 109e505ad944dc Ryder Lee 2021-04-24 26 return 0; 109e505ad944dc Ryder Lee 2021-04-24 27 109e505ad944dc Ryder Lee 2021-04-24 28 mt7615_mutex_acquire(mdev); 109e505ad944dc Ryder Lee 2021-04-24 29 temperature = mt7615_mcu_get_temperature(mdev); 109e505ad944dc Ryder Lee 2021-04-24 30 mt7615_mutex_release(mdev); 109e505ad944dc Ryder Lee 2021-04-24 31 109e505ad944dc Ryder Lee 2021-04-24 32 if (temperature < 0) 109e505ad944dc Ryder Lee 2021-04-24 33 return temperature; 109e505ad944dc Ryder Lee 2021-04-24 34 109e505ad944dc Ryder Lee 2021-04-24 35 /* display in millidegree celcius */ 109e505ad944dc Ryder Lee 2021-04-24 @36 return sprintf(buf, "%u\n", temperature * 1000); 109e505ad944dc Ryder Lee 2021-04-24 37 } 109e505ad944dc Ryder Lee 2021-04-24 38 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
