:::::: 
:::::: Manual check reason: "commit no functional change"
:::::: 

CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Mark Rutland <[email protected]>
CC: Catalin Marinas <[email protected]>
CC: Joey Gouly <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   515f71412bb73ebd7f41f90e1684fc80b8730789
commit: 4d1c2ee2709fd6e1655206cafcdb22737f5d7379 arm64: entry: move bulk of 
ret_to_user to C
date:   12 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 12 months ago
config: arm64-alldefconfig 
(https://download.01.org/0day-ci/archive/20220724/[email protected]/config)
compiler: aarch64-linux-gcc (GCC) 12.1.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
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4d1c2ee2709fd6e1655206cafcdb22737f5d7379
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 4d1c2ee2709fd6e1655206cafcdb22737f5d7379
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kernel/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

Note: functions only called from assembly code should be annotated with the 
asmlinkage attribute
All warnings (new ones prefixed by >>):

>> arch/arm64/kernel/signal.c:927:6: warning: no previous prototype for 
>> 'do_notify_resume' [-Wmissing-prototypes]
     927 | void do_notify_resume(struct pt_regs *regs, unsigned long 
thread_flags)
         |      ^~~~~~~~~~~~~~~~


vim +/do_notify_resume +927 arch/arm64/kernel/signal.c

873c3e89777c8c Will Deacon       2021-06-08  926  
4d1c2ee2709fd6 Mark Rutland      2021-08-02 @927  void do_notify_resume(struct 
pt_regs *regs, unsigned long thread_flags)
2c020ed8d148f7 Catalin Marinas   2012-03-05  928  {
a2048e34d4655c Thomas Garnier    2017-09-07  929        do {
421dd6fa6709eb Chris Metcalf     2016-07-14  930                if 
(thread_flags & _TIF_NEED_RESCHED) {
8d66772e869e79 James Morse       2017-11-02  931                        /* 
Unmask Debug and SError for the next task */
8d66772e869e79 James Morse       2017-11-02  932                        
local_daif_restore(DAIF_PROCCTX_NOIRQ);
8d66772e869e79 James Morse       2017-11-02  933  
421dd6fa6709eb Chris Metcalf     2016-07-14  934                        
schedule();
421dd6fa6709eb Chris Metcalf     2016-07-14  935                } else {
8d66772e869e79 James Morse       2017-11-02  936                        
local_daif_restore(DAIF_PROCCTX);
421dd6fa6709eb Chris Metcalf     2016-07-14  937  
9842ceae9fa8de Pratyush Anand    2016-11-02  938                        if 
(thread_flags & _TIF_UPROBE)
9842ceae9fa8de Pratyush Anand    2016-11-02  939                                
uprobe_notify_resume(regs);
9842ceae9fa8de Pratyush Anand    2016-11-02  940  
637ec831ea4f09 Vincenzo Frascino 2019-09-16  941                        if 
(thread_flags & _TIF_MTE_ASYNC_FAULT) {
637ec831ea4f09 Vincenzo Frascino 2019-09-16  942                                
clear_thread_flag(TIF_MTE_ASYNC_FAULT);
637ec831ea4f09 Vincenzo Frascino 2019-09-16  943                                
send_sig_fault(SIGSEGV, SEGV_MTEAERR,
637ec831ea4f09 Vincenzo Frascino 2019-09-16  944                                
               (void __user *)NULL, current);
637ec831ea4f09 Vincenzo Frascino 2019-09-16  945                        }
637ec831ea4f09 Vincenzo Frascino 2019-09-16  946  
192caabd4dd92c Jens Axboe        2020-10-22  947                        if 
(thread_flags & (_TIF_SIGPENDING | _TIF_NOTIFY_SIGNAL))
2c020ed8d148f7 Catalin Marinas   2012-03-05  948                                
do_signal(regs);
2c020ed8d148f7 Catalin Marinas   2012-03-05  949  
2c020ed8d148f7 Catalin Marinas   2012-03-05  950                        if 
(thread_flags & _TIF_NOTIFY_RESUME) {
2c020ed8d148f7 Catalin Marinas   2012-03-05  951                                
tracehook_notify_resume(regs);
409d5db49867c2 Will Deacon       2018-06-20  952                                
rseq_handle_notify_resume(NULL, regs);
873c3e89777c8c Will Deacon       2021-06-08  953  
873c3e89777c8c Will Deacon       2021-06-08  954                                
/*
873c3e89777c8c Will Deacon       2021-06-08  955                                
 * If we reschedule after checking the affinity
873c3e89777c8c Will Deacon       2021-06-08  956                                
 * then we must ensure that TIF_NOTIFY_RESUME
873c3e89777c8c Will Deacon       2021-06-08  957                                
 * is set so that we check the affinity again.
873c3e89777c8c Will Deacon       2021-06-08  958                                
 * Since tracehook_notify_resume() clears the
873c3e89777c8c Will Deacon       2021-06-08  959                                
 * flag, ensure that the compiler doesn't move
873c3e89777c8c Will Deacon       2021-06-08  960                                
 * it after the affinity check.
873c3e89777c8c Will Deacon       2021-06-08  961                                
 */
873c3e89777c8c Will Deacon       2021-06-08  962                                
barrier();
873c3e89777c8c Will Deacon       2021-06-08  963  
873c3e89777c8c Will Deacon       2021-06-08  964                                
if (cpu_affinity_invalid(regs))
873c3e89777c8c Will Deacon       2021-06-08  965                                
        force_sig(SIGKILL);
2c020ed8d148f7 Catalin Marinas   2012-03-05  966                        }
005f78cd884944 Ard Biesheuvel    2014-05-08  967  
005f78cd884944 Ard Biesheuvel    2014-05-08  968                        if 
(thread_flags & _TIF_FOREIGN_FPSTATE)
005f78cd884944 Ard Biesheuvel    2014-05-08  969                                
fpsimd_restore_current_state();
421dd6fa6709eb Chris Metcalf     2016-07-14  970                }
005f78cd884944 Ard Biesheuvel    2014-05-08  971  
8d66772e869e79 James Morse       2017-11-02  972                
local_daif_mask();
421dd6fa6709eb Chris Metcalf     2016-07-14  973                thread_flags = 
READ_ONCE(current_thread_info()->flags);
421dd6fa6709eb Chris Metcalf     2016-07-14  974        } while (thread_flags & 
_TIF_WORK_MASK);
2c020ed8d148f7 Catalin Marinas   2012-03-05  975  }
94b07c1f8c39c6 Dave Martin       2018-06-01  976  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to