* [block:io_uring-5.11 28/29] kernel/exit.c:780:2: error: implicit declaration of function 'io_uring_task_exit'; did you mean
@ 2021-01-21 4:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-21 4:31 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5636 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git io_uring-5.11
head: ff05644c4463b85ecb4156b52263f3be1b0a89e6
commit: 412b604b15a5de0deca159e0882749f1a9530a6a [28/29] io_uring: cancel all requests on task exit
config: m68k-randconfig-s031-20210121 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=412b604b15a5de0deca159e0882749f1a9530a6a
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block io_uring-5.11
git checkout 412b604b15a5de0deca159e0882749f1a9530a6a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
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 >>):
In file included from include/asm-generic/bug.h:5,
from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from kernel/exit.c:8:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null pointer [-Wextra]
33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
kernel/exit.c: In function 'do_exit':
>> kernel/exit.c:780:2: error: implicit declaration of function 'io_uring_task_exit'; did you mean 'io_uring_task_cancel'? [-Werror=implicit-function-declaration]
780 | io_uring_task_exit();
| ^~~~~~~~~~~~~~~~~~
| io_uring_task_cancel
kernel/exit.c: At top level:
kernel/exit.c:1763:13: warning: no previous prototype for 'abort' [-Wmissing-prototypes]
1763 | __weak void abort(void)
| ^~~~~
cc1: some warnings being treated as errors
vim +780 kernel/exit.c
726
727 void __noreturn do_exit(long code)
728 {
729 struct task_struct *tsk = current;
730 int group_dead;
731
732 /*
733 * We can get here from a kernel oops, sometimes with preemption off.
734 * Start by checking for critical errors.
735 * Then fix up important state like USER_DS and preemption.
736 * Then do everything else.
737 */
738
739 WARN_ON(blk_needs_flush_plug(tsk));
740
741 if (unlikely(in_interrupt()))
742 panic("Aiee, killing interrupt handler!");
743 if (unlikely(!tsk->pid))
744 panic("Attempted to kill the idle task!");
745
746 /*
747 * If do_exit is called because this processes oopsed, it's possible
748 * that get_fs() was left as KERNEL_DS, so reset it to USER_DS before
749 * continuing. Amongst other possible reasons, this is to prevent
750 * mm_release()->clear_child_tid() from writing to a user-controlled
751 * kernel address.
752 */
753 force_uaccess_begin();
754
755 if (unlikely(in_atomic())) {
756 pr_info("note: %s[%d] exited with preempt_count %d\n",
757 current->comm, task_pid_nr(current),
758 preempt_count());
759 preempt_count_set(PREEMPT_ENABLED);
760 }
761
762 profile_task_exit(tsk);
763 kcov_task_exit(tsk);
764
765 ptrace_event(PTRACE_EVENT_EXIT, code);
766
767 validate_creds_for_do_exit(tsk);
768
769 /*
770 * We're taking recursive faults here in do_exit. Safest is to just
771 * leave this task alone and wait for reboot.
772 */
773 if (unlikely(tsk->flags & PF_EXITING)) {
774 pr_alert("Fixing recursive fault but reboot is needed!\n");
775 futex_exit_recursive(tsk);
776 set_current_state(TASK_UNINTERRUPTIBLE);
777 schedule();
778 }
779
> 780 io_uring_task_exit();
781 exit_signals(tsk); /* sets PF_EXITING */
782
783 /* sync mm's RSS info before statistics gathering */
784 if (tsk->mm)
785 sync_mm_rss(tsk->mm);
786 acct_update_integrals(tsk);
787 group_dead = atomic_dec_and_test(&tsk->signal->live);
788 if (group_dead) {
789 /*
790 * If the last thread of global init has exited, panic
791 * immediately to get a useable coredump.
792 */
793 if (unlikely(is_global_init(tsk)))
794 panic("Attempted to kill init! exitcode=0x%08x\n",
795 tsk->signal->group_exit_code ?: (int)code);
796
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30785 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-21 4:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21 4:31 [block:io_uring-5.11 28/29] kernel/exit.c:780:2: error: implicit declaration of function 'io_uring_task_exit'; did you mean 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.