mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Khalid Aziz <khalid.aziz@oracle.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Anthony Yznaga <anthony.yznaga@oracle.com>
Subject: arch/sparc/kernel/process_64.c:677:5: error: no previous prototype for 'arch_dup_task_struct'
Date: Wed, 30 Mar 2022 22:32:08 +0800	[thread overview]
Message-ID: <202203302224.qSPZdQcq-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-03-30 14:33 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=202203302224.qSPZdQcq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anthony.yznaga@oracle.com \
    --cc=kbuild-all@lists.01.org \
    --cc=khalid.aziz@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®