CC: [email protected] BCC: [email protected] CC: Andy Shevchenko <[email protected]> CC: Hans de Goede <[email protected]> CC: [email protected] TO: "PaddyKP_Yao" <[email protected]> CC: Hans de Goede <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git review-hans head: 7a4a04f4e90d746928501a6d551de87d02c28323 commit: b644c95598adfe2b968e97daee3a890dd2fda84d [83/93] platform/x86: asus-wmi: Add mic-mute LED classdev support :::::: branch date: 15 hours ago :::::: commit date: 3 days ago config: x86_64-randconfig-c002 (https://download.01.org/0day-ci/archive/20220718/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <[email protected]> Reported-by: Julia Lawall <[email protected]> cocci warnings: (new ones prefixed by >>) >> drivers/platform/x86/asus-wmi.c:1039:12-13: WARNING opportunity for min() vim +1039 drivers/platform/x86/asus-wmi.c 4c05984459ec55 Maxime Bellengé 2017-09-23 1031 b644c95598adfe PaddyKP_Yao 2022-07-11 1032 static int micmute_led_set(struct led_classdev *led_cdev, b644c95598adfe PaddyKP_Yao 2022-07-11 1033 enum led_brightness brightness) b644c95598adfe PaddyKP_Yao 2022-07-11 1034 { b644c95598adfe PaddyKP_Yao 2022-07-11 1035 int state = brightness != LED_OFF; b644c95598adfe PaddyKP_Yao 2022-07-11 1036 int err; b644c95598adfe PaddyKP_Yao 2022-07-11 1037 b644c95598adfe PaddyKP_Yao 2022-07-11 1038 err = asus_wmi_set_devstate(ASUS_WMI_DEVID_MICMUTE_LED, state, NULL); b644c95598adfe PaddyKP_Yao 2022-07-11 @1039 return err < 0 ? err : 0; b644c95598adfe PaddyKP_Yao 2022-07-11 1040 } b644c95598adfe PaddyKP_Yao 2022-07-11 1041 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
