public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Paul Burton <paulburton@kernel.org>
Subject: arch/mips/kernel/signal.c:141: undefined reference to `_restore_fp_context'
Date: Sun, 25 Oct 2020 08:30:24 +0800	[thread overview]
Message-ID: <202010250822.cgx4NHTv-lkp@intel.com> (raw)

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

Hi Thomas,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d76913908102044f14381df865bb74df17a538cb
commit: 7505576d1c1ac0cfe85fdf90999433dd8b673012 MIPS: add support for SGI Octane (IP30)
date:   12 months ago
config: mips-randconfig-r024-20201025 (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.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=7505576d1c1ac0cfe85fdf90999433dd8b673012
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7505576d1c1ac0cfe85fdf90999433dd8b673012
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

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

   mips64-linux-ld: arch/mips/kernel/signal.o: in function `restore_hw_fp_context':
>> arch/mips/kernel/signal.c:141: undefined reference to `_restore_fp_context'
   mips64-linux-ld: arch/mips/kernel/signal.o: in function `save_hw_fp_context':
>> arch/mips/kernel/signal.c:132: undefined reference to `_save_fp_context'
   mips64-linux-ld: arch/mips/kernel/traps.o: in function `trap_init':
>> arch/mips/kernel/traps.c:2408: undefined reference to `handle_fpe'
>> mips64-linux-ld: arch/mips/kernel/traps.c:2412: undefined reference to `handle_fpe'
>> mips64-linux-ld: arch/mips/kernel/traps.c:2412: undefined reference to `handle_fpe'
>> mips64-linux-ld: arch/mips/kernel/traps.c:2412: undefined reference to `handle_fpe'
>> mips64-linux-ld: arch/mips/kernel/traps.c:2412: undefined reference to `handle_fpe'

vim +141 arch/mips/kernel/signal.c

4eec81d7d8b2127 Paul Burton 2018-11-07  122  
2db9ca0a355100c Paul Burton 2015-07-27  123  /*
2db9ca0a355100c Paul Burton 2015-07-27  124   * Wrappers for the assembly _{save,restore}_fp_context functions.
2db9ca0a355100c Paul Burton 2015-07-27  125   */
2db9ca0a355100c Paul Burton 2015-07-27  126  static int save_hw_fp_context(void __user *sc)
2db9ca0a355100c Paul Burton 2015-07-27  127  {
2db9ca0a355100c Paul Burton 2015-07-27  128  	struct mips_abi *abi = current->thread.abi;
2db9ca0a355100c Paul Burton 2015-07-27  129  	uint64_t __user *fpregs = sc + abi->off_sc_fpregs;
2db9ca0a355100c Paul Burton 2015-07-27  130  	uint32_t __user *csr = sc + abi->off_sc_fpc_csr;
2db9ca0a355100c Paul Burton 2015-07-27  131  
2db9ca0a355100c Paul Burton 2015-07-27 @132  	return _save_fp_context(fpregs, csr);
2db9ca0a355100c Paul Burton 2015-07-27  133  }
2db9ca0a355100c Paul Burton 2015-07-27  134  
2db9ca0a355100c Paul Burton 2015-07-27  135  static int restore_hw_fp_context(void __user *sc)
2db9ca0a355100c Paul Burton 2015-07-27  136  {
2db9ca0a355100c Paul Burton 2015-07-27  137  	struct mips_abi *abi = current->thread.abi;
2db9ca0a355100c Paul Burton 2015-07-27  138  	uint64_t __user *fpregs = sc + abi->off_sc_fpregs;
2db9ca0a355100c Paul Burton 2015-07-27  139  	uint32_t __user *csr = sc + abi->off_sc_fpc_csr;
2db9ca0a355100c Paul Burton 2015-07-27  140  
2db9ca0a355100c Paul Burton 2015-07-27 @141  	return _restore_fp_context(fpregs, csr);
2db9ca0a355100c Paul Burton 2015-07-27  142  }
2db9ca0a355100c Paul Burton 2015-07-27  143  

:::::: The code at line 141 was first introduced by commit
:::::: 2db9ca0a355100c40d1bef2aae3b9d9cf199cd04 MIPS: Use struct mips_abi offsets to save FP context

:::::: TO: Paul Burton <paul.burton@imgtec.com>
:::::: CC: Ralf Baechle <ralf@linux-mips.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29944 bytes --]

             reply	other threads:[~2020-10-25  0:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-25  0:30 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-03 22:05 arch/mips/kernel/signal.c:141: undefined reference to `_restore_fp_context' kernel test robot
2020-05-18  0:49 kbuild test robot

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=202010250822.cgx4NHTv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulburton@kernel.org \
    --cc=tbogendoerfer@suse.de \
    /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