.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2013 Huawei Ltd. |
---|
3 | 4 | * Author: Jiang Liu <liuj97@gmail.com> |
---|
4 | 5 | * |
---|
5 | 6 | * Based on arch/arm/kernel/jump_label.c |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * GNU General Public License for more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License |
---|
17 | | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
18 | 7 | */ |
---|
19 | 8 | #include <linux/kernel.h> |
---|
20 | 9 | #include <linux/jump_label.h> |
---|
.. | .. |
---|
23 | 12 | void arch_jump_label_transform(struct jump_entry *entry, |
---|
24 | 13 | enum jump_label_type type) |
---|
25 | 14 | { |
---|
26 | | - void *addr = (void *)entry->code; |
---|
| 15 | + void *addr = (void *)jump_entry_code(entry); |
---|
27 | 16 | u32 insn; |
---|
28 | 17 | |
---|
29 | 18 | if (type == JUMP_LABEL_JMP) { |
---|
30 | | - insn = aarch64_insn_gen_branch_imm(entry->code, |
---|
31 | | - entry->target, |
---|
| 19 | + insn = aarch64_insn_gen_branch_imm(jump_entry_code(entry), |
---|
| 20 | + jump_entry_target(entry), |
---|
32 | 21 | AARCH64_INSN_BRANCH_NOLINK); |
---|
33 | 22 | } else { |
---|
34 | 23 | insn = aarch64_insn_gen_nop(); |
---|