From: kernel test robot <lkp@intel.com>
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 <anonymous>' to 'enum pid_type'
Date: Sun, 12 Dec 2021 06:56:08 +0800 [thread overview]
Message-ID: <202112120632.ebpnDry5-lkp@intel.com> (raw)
[-- 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
reply other threads:[~2021-12-11 22:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202112120632.ebpnDry5-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.