.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2010 Michael Ellerman, IBM Corp. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or |
---|
5 | | - * modify it under the terms of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation; either version |
---|
7 | | - * 2 of the License, or (at your option) any later version. |
---|
8 | 4 | */ |
---|
9 | 5 | |
---|
10 | 6 | #include <linux/kernel.h> |
---|
11 | 7 | #include <linux/jump_label.h> |
---|
12 | 8 | #include <asm/code-patching.h> |
---|
| 9 | +#include <asm/inst.h> |
---|
13 | 10 | |
---|
14 | 11 | void arch_jump_label_transform(struct jump_entry *entry, |
---|
15 | 12 | enum jump_label_type type) |
---|
16 | 13 | { |
---|
17 | | - u32 *addr = (u32 *)(unsigned long)entry->code; |
---|
| 14 | + struct ppc_inst *addr = (struct ppc_inst *)(unsigned long)entry->code; |
---|
18 | 15 | |
---|
19 | 16 | if (type == JUMP_LABEL_JMP) |
---|
20 | 17 | patch_branch(addr, entry->target, 0); |
---|
21 | 18 | else |
---|
22 | | - patch_instruction(addr, PPC_INST_NOP); |
---|
| 19 | + patch_instruction(addr, ppc_inst(PPC_INST_NOP)); |
---|
23 | 20 | } |
---|