lkml.org 
[lkml]   [2022]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectarch/sparc/kernel/process_64.c:677:5: error: no previous prototype for 'arch_dup_task_struct'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d888c83fcec75194a8a48ccd283953bdba7b2550
commit: 74a04967482faa7144b93dae3b2e913870dd421c sparc64: Add support for ADI (Application Data Integrity)
date: 4 years ago
config: sparc64-randconfig-r004-20220330 (https://download.01.org/0day-ci/archive/20220330/202203302224.qSPZdQcq-lkp@intel.com/config)
compiler: sparc64-linux-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=74a04967482faa7144b93dae3b2e913870dd421c
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 74a04967482faa7144b93dae3b2e913870dd421c
# 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=sparc64 SHELL=/bin/bash M=arch/sparc/kernel

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/sparc/kernel/process_64.c:677:5: error: no previous prototype for 'arch_dup_task_struct' [-Werror=missing-prototypes]
677 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/sparc/kernel/adi_64.c:125:21: error: no previous prototype for 'find_tag_store' [-Werror=missing-prototypes]
125 | tag_storage_desc_t *find_tag_store(struct mm_struct *mm,
| ^~~~~~~~~~~~~~
arch/sparc/kernel/adi_64.c:157:21: error: no previous prototype for 'alloc_tag_store' [-Werror=missing-prototypes]
157 | tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm,
| ^~~~~~~~~~~~~~~
arch/sparc/kernel/adi_64.c:300:6: error: no previous prototype for 'del_tag_store' [-Werror=missing-prototypes]
300 | void del_tag_store(tag_storage_desc_t *tag_desc, struct mm_struct *mm)
| ^~~~~~~~~~~~~
cc1: all warnings being treated as errors


vim +/arch_dup_task_struct +677 arch/sparc/kernel/process_64.c

672
673 /* TIF_MCDPER in thread info flags for current task is updated lazily upon
674 * a context switch. Update this flag in current task's thread flags
675 * before dup so the dup'd task will inherit the current TIF_MCDPER flag.
676 */
> 677 int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
678 {
679 if (adi_capable()) {
680 register unsigned long tmp_mcdper;
681
682 __asm__ __volatile__(
683 ".word 0x83438000\n\t" /* rd %mcdper, %g1 */
684 "mov %%g1, %0\n\t"
685 : "=r" (tmp_mcdper)
686 :
687 : "g1");
688 if (tmp_mcdper)
689 set_thread_flag(TIF_MCDPER);
690 else
691 clear_thread_flag(TIF_MCDPER);
692 }
693
694 *dst = *src;
695 return 0;
696 }
697

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-03-30 16:33    [W:0.036 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site