diff options
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r-- | arch/riscv/kernel/module.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c index 3303ed2cd419..7dd308129b40 100644 --- a/arch/riscv/kernel/module.c +++ b/arch/riscv/kernel/module.c | |||
@@ -21,7 +21,7 @@ static int apply_r_riscv_32_rela(struct module *me, u32 *location, Elf_Addr v) | |||
21 | { | 21 | { |
22 | if (v != (u32)v) { | 22 | if (v != (u32)v) { |
23 | pr_err("%s: value %016llx out of range for 32-bit field\n", | 23 | pr_err("%s: value %016llx out of range for 32-bit field\n", |
24 | me->name, v); | 24 | me->name, (long long)v); |
25 | return -EINVAL; | 25 | return -EINVAL; |
26 | } | 26 | } |
27 | *location = v; | 27 | *location = v; |
@@ -102,7 +102,7 @@ static int apply_r_riscv_pcrel_hi20_rela(struct module *me, u32 *location, | |||
102 | if (offset != (s32)offset) { | 102 | if (offset != (s32)offset) { |
103 | pr_err( | 103 | pr_err( |
104 | "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", | 104 | "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", |
105 | me->name, v, location); | 105 | me->name, (long long)v, location); |
106 | return -EINVAL; | 106 | return -EINVAL; |
107 | } | 107 | } |
108 | 108 | ||
@@ -144,7 +144,7 @@ static int apply_r_riscv_hi20_rela(struct module *me, u32 *location, | |||
144 | if (IS_ENABLED(CMODEL_MEDLOW)) { | 144 | if (IS_ENABLED(CMODEL_MEDLOW)) { |
145 | pr_err( | 145 | pr_err( |
146 | "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", | 146 | "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", |
147 | me->name, v, location); | 147 | me->name, (long long)v, location); |
148 | return -EINVAL; | 148 | return -EINVAL; |
149 | } | 149 | } |
150 | 150 | ||
@@ -188,7 +188,7 @@ static int apply_r_riscv_got_hi20_rela(struct module *me, u32 *location, | |||
188 | } else { | 188 | } else { |
189 | pr_err( | 189 | pr_err( |
190 | "%s: can not generate the GOT entry for symbol = %016llx from PC = %p\n", | 190 | "%s: can not generate the GOT entry for symbol = %016llx from PC = %p\n", |
191 | me->name, v, location); | 191 | me->name, (long long)v, location); |
192 | return -EINVAL; | 192 | return -EINVAL; |
193 | } | 193 | } |
194 | 194 | ||
@@ -212,7 +212,7 @@ static int apply_r_riscv_call_plt_rela(struct module *me, u32 *location, | |||
212 | } else { | 212 | } else { |
213 | pr_err( | 213 | pr_err( |
214 | "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", | 214 | "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", |
215 | me->name, v, location); | 215 | me->name, (long long)v, location); |
216 | return -EINVAL; | 216 | return -EINVAL; |
217 | } | 217 | } |
218 | } | 218 | } |
@@ -234,7 +234,7 @@ static int apply_r_riscv_call_rela(struct module *me, u32 *location, | |||
234 | if (offset != fill_v) { | 234 | if (offset != fill_v) { |
235 | pr_err( | 235 | pr_err( |
236 | "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", | 236 | "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", |
237 | me->name, v, location); | 237 | me->name, (long long)v, location); |
238 | return -EINVAL; | 238 | return -EINVAL; |
239 | } | 239 | } |
240 | 240 | ||