hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/kernel/jump_label.c
....@@ -1,23 +1,20 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * 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.
84 */
95
106 #include <linux/kernel.h>
117 #include <linux/jump_label.h>
128 #include <asm/code-patching.h>
9
+#include <asm/inst.h>
1310
1411 void arch_jump_label_transform(struct jump_entry *entry,
1512 enum jump_label_type type)
1613 {
17
- u32 *addr = (u32 *)(unsigned long)entry->code;
14
+ struct ppc_inst *addr = (struct ppc_inst *)(unsigned long)entry->code;
1815
1916 if (type == JUMP_LABEL_JMP)
2017 patch_branch(addr, entry->target, 0);
2118 else
22
- patch_instruction(addr, PPC_INST_NOP);
19
+ patch_instruction(addr, ppc_inst(PPC_INST_NOP));
2320 }