All of lore.kernel.org
 help / color / mirror / Atom feed
* [block:tif-task_work 2/2] arch/arm64/kernel/signal.c:984:18: error: too few arguments to function call, single argument 'regs' was not specified
@ 2020-10-01 13:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-01 13:47 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4023 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git tif-task_work
head:   c6a44403af72ba7788b82ee83bd53ff972923117
commit: c6a44403af72ba7788b82ee83bd53ff972923117 [2/2] arm64: add support for TIF_TASKWORK
config: arm64-randconfig-r005-20200930 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bcd05599d0e53977a963799d6ee4f6e0bc21331b)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=c6a44403af72ba7788b82ee83bd53ff972923117
        git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
        git fetch --no-tags block tif-task_work
        git checkout c6a44403af72ba7788b82ee83bd53ff972923117
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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 >>):

   arch/arm64/kernel/signal.c:914:17: warning: unused variable 'ksig' [-Wunused-variable]
           struct ksignal ksig;
                          ^
>> arch/arm64/kernel/signal.c:984:18: error: too few arguments to function call, single argument 'regs' was not specified
                                   do_task_work();
                                   ~~~~~~~~~~~~ ^
   arch/arm64/kernel/signal.c:910:13: note: 'do_task_work' declared here
   static void do_task_work(struct pt_regs *regs)
               ^
   arch/arm64/kernel/signal.c:958:17: warning: no previous prototype for function 'do_notify_resume' [-Wmissing-prototypes]
   asmlinkage void do_notify_resume(struct pt_regs *regs,
                   ^
   arch/arm64/kernel/signal.c:958:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void do_notify_resume(struct pt_regs *regs,
              ^
              static 
   2 warnings and 1 error generated.

vim +/regs +984 arch/arm64/kernel/signal.c

   957	
   958	asmlinkage void do_notify_resume(struct pt_regs *regs,
   959					 unsigned long thread_flags)
   960	{
   961		/*
   962		 * The assembly code enters us with IRQs off, but it hasn't
   963		 * informed the tracing code of that for efficiency reasons.
   964		 * Update the trace code with the current status.
   965		 */
   966		trace_hardirqs_off();
   967	
   968		do {
   969			/* Check valid user FS if needed */
   970			addr_limit_user_check();
   971	
   972			if (thread_flags & _TIF_NEED_RESCHED) {
   973				/* Unmask Debug and SError for the next task */
   974				local_daif_restore(DAIF_PROCCTX_NOIRQ);
   975	
   976				schedule();
   977			} else {
   978				local_daif_restore(DAIF_PROCCTX);
   979	
   980				if (thread_flags & _TIF_UPROBE)
   981					uprobe_notify_resume(regs);
   982	
   983				if (thread_flags & _TIF_TASKWORK)
 > 984					do_task_work();
   985	
   986				if (thread_flags & _TIF_SIGPENDING)
   987					do_signal(regs);
   988	
   989				if (thread_flags & _TIF_NOTIFY_RESUME) {
   990					clear_thread_flag(TIF_NOTIFY_RESUME);
   991					tracehook_notify_resume(regs);
   992					rseq_handle_notify_resume(NULL, regs);
   993				}
   994	
   995				if (thread_flags & _TIF_FOREIGN_FPSTATE)
   996					fpsimd_restore_current_state();
   997			}
   998	
   999			local_daif_mask();
  1000			thread_flags = READ_ONCE(current_thread_info()->flags);
  1001		} while (thread_flags & _TIF_WORK_MASK);
  1002	}
  1003	

---
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: 41685 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-01 13:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01 13:47 [block:tif-task_work 2/2] arch/arm64/kernel/signal.c:984:18: error: too few arguments to function call, single argument 'regs' was not specified 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.