public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* arch/mips/kernel/signal.c:141: undefined reference to `_restore_fp_context'
@ 2020-05-18  0:49 kbuild test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kbuild test robot @ 2020-05-18  0:49 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: kbuild-all, linux-kernel, Paul Burton

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3d1c1e5931ce45b3a3f309385bbc00c78e9951c6
commit: 7505576d1c1ac0cfe85fdf90999433dd8b673012 MIPS: add support for SGI Octane (IP30)
date:   7 months ago
config: mips-randconfig-r011-20200517 (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 7505576d1c1ac0cfe85fdf90999433dd8b673012
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>, old 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'

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* arch/mips/kernel/signal.c:141: undefined reference to `_restore_fp_context'
@ 2020-09-03 22:05 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-09-03 22:05 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: kbuild-all, linux-kernel, Paul Burton

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

Hi Thomas,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e28f0104343d0c132fa37f479870c9e43355fee4
commit: 7505576d1c1ac0cfe85fdf90999433dd8b673012 MIPS: add support for SGI Octane (IP30)
date:   10 months ago
config: mips-randconfig-r022-20200903 (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
        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'

# 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
vim +141 arch/mips/kernel/signal.c

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

^ permalink raw reply	[flat|nested] 3+ messages in thread
* arch/mips/kernel/signal.c:141: undefined reference to `_restore_fp_context'
@ 2020-10-25  0:30 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-10-25  0:30 UTC (permalink / raw)
  To: Thomas Bogendoerfer; +Cc: kbuild-all, linux-kernel, Paul Burton

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-25  0:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-18  0:49 arch/mips/kernel/signal.c:141: undefined reference to `_restore_fp_context' kbuild test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-09-03 22:05 kernel test robot
2020-10-25  0:30 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox