From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:timers/posix 22/61] fs/proc/base.c:2464:31: error: passing argument 1 of 'seq_list_start' from incompatible pointer type
Date: Tue, 6 Jun 2023 10:49:09 +0800 [thread overview]
Message-ID: <202306061027.qNb1LcWD-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/posix
head: 16a20adb1e0ae19ad42041a7d1b5583e4705ca0c
commit: 2e9a3527e7a51ba24410e43a2d0d1d10d62ae1b1 [22/61] posix-timers: Convert timer list to hlist
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20230606/202306061027.qNb1LcWD-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=2e9a3527e7a51ba24410e43a2d0d1d10d62ae1b1
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel timers/posix
git checkout 2e9a3527e7a51ba24410e43a2d0d1d10d62ae1b1
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/ fs/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306061027.qNb1LcWD-lkp@intel.com/
All errors (new ones prefixed by >>):
fs/proc/base.c: In function 'timers_start':
>> fs/proc/base.c:2464:31: error: passing argument 1 of 'seq_list_start' from incompatible pointer type [-Werror=incompatible-pointer-types]
2464 | return seq_list_start(&tp->task->signal->posix_timers, *pos);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| struct hlist_head *
In file included from fs/proc/base.c:64:
include/linux/seq_file.h:273:59: note: expected 'struct list_head *' but argument is of type 'struct hlist_head *'
273 | extern struct list_head *seq_list_start(struct list_head *head,
| ~~~~~~~~~~~~~~~~~~^~~~
fs/proc/base.c: In function 'timers_next':
>> fs/proc/base.c:2470:33: error: passing argument 2 of 'seq_list_next' from incompatible pointer type [-Werror=incompatible-pointer-types]
2470 | return seq_list_next(v, &tp->task->signal->posix_timers, pos);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| struct hlist_head *
include/linux/seq_file.h:277:67: note: expected 'struct list_head *' but argument is of type 'struct hlist_head *'
277 | extern struct list_head *seq_list_next(void *v, struct list_head *head,
| ~~~~~~~~~~~~~~~~~~^~~~
In file included from include/linux/container_of.h:5,
from include/linux/kernel.h:21,
from arch/x86/include/asm/percpu.h:27,
from arch/x86/include/asm/current.h:10,
from include/linux/sched.h:12,
from include/linux/uaccess.h:8,
from fs/proc/base.c:51:
fs/proc/base.c: In function 'show_timer':
>> include/linux/build_bug.h:78:41: error: static assertion failed: "pointer type mismatch in container_of()"
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~~~~~~~~~~~
include/linux/build_bug.h:77:34: note: in expansion of macro '__static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/list.h:520:9: note: in expansion of macro 'container_of'
520 | container_of(ptr, type, member)
| ^~~~~~~~~~~~
fs/proc/base.c:2499:17: note: in expansion of macro 'list_entry'
2499 | timer = list_entry((struct list_head *)v, struct k_itimer, list);
| ^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/seq_list_start +2464 fs/proc/base.c
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2451
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2452 static void *timers_start(struct seq_file *m, loff_t *pos)
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2453 {
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2454 struct timers_private *tp = m->private;
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2455
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2456 tp->task = get_pid_task(tp->pid, PIDTYPE_PID);
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2457 if (!tp->task)
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2458 return ERR_PTR(-ESRCH);
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2459
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2460 tp->sighand = lock_task_sighand(tp->task, &tp->flags);
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2461 if (!tp->sighand)
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2462 return ERR_PTR(-ESRCH);
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2463
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 @2464 return seq_list_start(&tp->task->signal->posix_timers, *pos);
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2465 }
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2466
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2467 static void *timers_next(struct seq_file *m, void *v, loff_t *pos)
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2468 {
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2469 struct timers_private *tp = m->private;
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 @2470 return seq_list_next(v, &tp->task->signal->posix_timers, pos);
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2471 }
48f6a7a511ef88 Pavel Emelyanov 2013-03-11 2472
:::::: The code at line 2464 was first introduced by commit
:::::: 48f6a7a511ef8823fdff39afee0320092d43a8a0 posix-timers: Introduce /proc/PID/timers file
:::::: TO: Pavel Emelyanov <xemul@parallels.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-06-06 2:49 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=202306061027.qNb1LcWD-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tglx@linutronix.de \
/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.