* [palmer:for-next 22/38] arch/riscv/kernel/traps_misaligned.c:765:6: error: redefinition of 'misaligned_traps_can_delegate'
@ 2025-05-13 2:51 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-13 2:51 UTC (permalink / raw)
To: Clément Léger; +Cc: oe-kbuild-all, Palmer Dabbelt, Andrew Jones
tree: https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git for-next
head: 91c5822e487aa48a1893a864fe69c2d432244fa2
commit: 37f4e1f77de7626258fafb23b835bb369c5e0dfb [22/38] riscv: misaligned: add a function to check misalign trap delegability
config: riscv-randconfig-r121-20250512 (https://download.01.org/0day-ci/archive/20250513/202505131054.YSxRKeiC-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250513/202505131054.YSxRKeiC-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505131054.YSxRKeiC-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/riscv/kernel/traps_misaligned.c:765:6: error: redefinition of 'misaligned_traps_can_delegate'
765 | bool misaligned_traps_can_delegate(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/riscv/include/asm/pgtable.h:120,
from include/linux/pgtable.h:6,
from include/linux/mm.h:30,
from arch/riscv/kernel/traps_misaligned.c:7:
arch/riscv/include/asm/cpufeature.h:82:20: note: previous definition of 'misaligned_traps_can_delegate' with type 'bool(void)' {aka '_Bool(void)'}
82 | static inline bool misaligned_traps_can_delegate(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/traps_misaligned.c: In function 'misaligned_traps_can_delegate':
>> arch/riscv/kernel/traps_misaligned.c:773:16: error: implicit declaration of function 'all_cpus_unaligned_scalar_access_emulated' [-Wimplicit-function-declaration]
773 | all_cpus_unaligned_scalar_access_emulated();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/misaligned_traps_can_delegate +765 arch/riscv/kernel/traps_misaligned.c
764
> 765 bool misaligned_traps_can_delegate(void)
766 {
767 /*
768 * Either we successfully requested misaligned traps delegation for all
769 * CPUS or the SBI does not implemented FWFT extension but delegated the
770 * exception by default.
771 */
772 return misaligned_traps_delegated ||
> 773 all_cpus_unaligned_scalar_access_emulated();
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-13 2:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-13 2:51 [palmer:for-next 22/38] arch/riscv/kernel/traps_misaligned.c:765:6: error: redefinition of 'misaligned_traps_can_delegate' 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;
as well as URLs for NNTP newsgroup(s).