riscv: jump_label: Fixup unaligned arch_static_branch function
[platform/kernel/linux-starfive.git] / arch / riscv / include / asm / jump_label.h
index 6d58bbb..14a5ea8 100644 (file)
@@ -18,6 +18,7 @@ static __always_inline bool arch_static_branch(struct static_key * const key,
                                               const bool branch)
 {
        asm_volatile_goto(
+               "       .align          2                       \n\t"
                "       .option push                            \n\t"
                "       .option norelax                         \n\t"
                "       .option norvc                           \n\t"
@@ -39,6 +40,7 @@ static __always_inline bool arch_static_branch_jump(struct static_key * const ke
                                                    const bool branch)
 {
        asm_volatile_goto(
+               "       .align          2                       \n\t"
                "       .option push                            \n\t"
                "       .option norelax                         \n\t"
                "       .option norvc                           \n\t"