From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7395108718122509864==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [chrome-os:chromeos-5.15 970/2818] drivers/tty/sysrq.c:462:57: error: implicit conversion from 'enum ' to 'enum pid_type' Date: Sun, 12 Dec 2021 06:56:08 +0800 Message-ID: <202112120632.ebpnDry5-lkp@intel.com> List-Id: --===============7395108718122509864== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chr= omeos-5.15 head: b4852fbf90916fdc2f1e0e282e100f7e0e889d77 commit: 297837590e60714af43864f54661c2410913aaa4 [970/2818] CHROMIUM: sysrq= : Added Chrome OS specific 'x' key config: arm-chromiumos-arm-customedconfig-chrome-os:chromeos-5.15:b4852fbf9= 0916fdc2f1e0e282e100f7e0e889d77 (https://download.01.org/0day-ci/archive/20= 211212/202112120632.ebpnDry5-lkp(a)intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add chrome-os https://chromium.googlesource.com/chromium= os/third_party/kernel git fetch --no-tags chrome-os chromeos-5.15 git checkout 297837590e60714af43864f54661c2410913aaa4 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/tty/sysrq.c: In function 'sysrq_x_cros_signal_process': >> drivers/tty/sysrq.c:462:57: error: implicit conversion from 'enum ' to 'enum pid_type' [-Werror=3Denum-conversion] 462 | do_send_sig_info(sig, SEND_SIG_PRIV, p, true); | ^~~~ cc1: all warnings being treated as errors vim +462 drivers/tty/sysrq.c 442 = 443 /* send a signal to a process named comm if it has a certain parent = */ 444 /* if parent is NULL, send to the first matching process */ 445 static void sysrq_x_cros_signal_process(char *comm, char *parent, in= t sig) 446 { 447 struct task_struct *p; 448 = 449 read_lock(&tasklist_lock); 450 for_each_process(p) { 451 if (p->flags & (PF_KTHREAD | PF_EXITING)) 452 continue; 453 if (is_global_init(p)) 454 continue; 455 if (strncmp(p->comm, comm, TASK_COMM_LEN)) 456 continue; 457 if (parent && strncmp(p->parent->comm, parent, TASK_COMM_LEN)) 458 continue; 459 = 460 printk(KERN_INFO "%s: signal %d %s pid %u tgid %u\n", 461 __func__, sig, comm, p->pid, p->tgid); > 462 do_send_sig_info(sig, SEND_SIG_PRIV, p, true); 463 } 464 read_unlock(&tasklist_lock); 465 } 466 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7395108718122509864==--