mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 09:02:21 -04:00
powerpc32/bpf: fix loading fsession func metadata using PPC_LI32
PPC_RAW_LI32 is not a valid macro in the PowerPC BPF JIT. Use PPC_LI32,
which correctly handles immediate loads for large values.
Fixes the build error introduced when adding fsession support on ppc32.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202604040212.jIxEd2DW-lkp@intel.com/
Fixes: 92258b5bf1 ("powerpc32/bpf: Add fsession support")
Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com>
Reviewed-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260408055301.232745-1-adubey@linux.ibm.com
This commit is contained in:
committed by
Madhavan Srinivasan
parent
e1f7a0e196
commit
e6ef4eb871
@@ -150,11 +150,11 @@ void store_func_meta(u32 *image, struct codegen_context *ctx,
|
||||
* func_meta := argument count in first byte + cookie value
|
||||
*/
|
||||
/* Store lower word */
|
||||
EMIT(PPC_RAW_LI32(bpf_to_ppc(TMP_REG), (u32)func_meta));
|
||||
PPC_LI32(bpf_to_ppc(TMP_REG), (u32)func_meta);
|
||||
EMIT(PPC_RAW_STW(bpf_to_ppc(TMP_REG), _R1, func_meta_off));
|
||||
|
||||
/* Store upper word */
|
||||
EMIT(PPC_RAW_LI32(bpf_to_ppc(TMP_REG), (u32)(func_meta >> 32)));
|
||||
PPC_LI32(bpf_to_ppc(TMP_REG), (u32)(func_meta >> 32));
|
||||
EMIT(PPC_RAW_STW(bpf_to_ppc(TMP_REG), _R1, func_meta_off + 4));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user