diff options
| author | Nysal Jan K.A. <[email protected]> | 2025-04-28 13:19:35 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-08 06:39:41 +0000 |
| commit | 8cf6ecb18baac867585fe1cba5dde6dbf3b6d29a (patch) | |
| tree | ef0bfb0cc9a20f7ff072203b7a6a05b26b6dafbf /drivers/fpga/tests/fpga-mgr-test.c | |
| parent | selftests/mm: fix build break when compiling pkey_util.c (diff) | |
| download | kernel-8cf6ecb18baac867585fe1cba5dde6dbf3b6d29a.tar.gz kernel-8cf6ecb18baac867585fe1cba5dde6dbf3b6d29a.zip | |
selftests/mm: fix a build failure on powerpc
The compiler is unaware of the size of code generated by the ".rept"
assembler directive. This results in the compiler emitting branch
instructions where the offset to branch to exceeds the maximum allowed
value, resulting in build failures like the following:
CC protection_keys
/tmp/ccypKWAE.s: Assembler messages:
/tmp/ccypKWAE.s:2073: Error: operand out of range (0x0000000000020158
is not between 0xffffffffffff8000 and 0x0000000000007ffc)
/tmp/ccypKWAE.s:2509: Error: operand out of range (0x0000000000020130
is not between 0xffffffffffff8000 and 0x0000000000007ffc)
Fix the issue by manually adding nop instructions using the preprocessor.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 46036188ea1f ("selftests/mm: build with -O2")
Reported-by: Madhavan Srinivasan <[email protected]>
Signed-off-by: Nysal Jan K.A. <[email protected]>
Tested-by: Venkat Rao Bagalkote <[email protected]>
Reviewed-by: Donet Tom <[email protected]>
Tested-by: Donet Tom <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions
