* [chrome-os:chromeos-5.15 970/2818] drivers/tty/sysrq.c:462:57: error: implicit conversion from 'enum <anonymous>' to 'enum pid_type'
@ 2021-12-11 22:56 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-11 22:56 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2681 bytes --]
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-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:b4852fbf90916fdc2f1e0e282e100f7e0e889d77 (https://download.01.org/0day-ci/archive/20211212/202112120632.ebpnDry5-lkp(a)intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 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/chromiumos/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=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
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 <anonymous>' to 'enum pid_type' [-Werror=enum-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, int 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-11 22:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-11 22:56 [chrome-os:chromeos-5.15 970/2818] drivers/tty/sysrq.c:462:57: error: implicit conversion from 'enum <anonymous>' to 'enum pid_type' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.