Skip to content

Commit da4ed37

Browse files
JoePerchespalmer-dabbelt
authored andcommitted
RISC-V: Use IS_ENABLED(CONFIG_CMODEL_MEDLOW)
IS_ENABLED should generally use CONFIG_ prefaced symbols and it doesn't appear as if there is a CMODEL_MEDLOW define. Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
1 parent ff0e2a7 commit da4ed37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static int apply_r_riscv_hi20_rela(struct module *me, u32 *location,
141141
{
142142
s32 hi20;
143143

144-
if (IS_ENABLED(CMODEL_MEDLOW)) {
144+
if (IS_ENABLED(CONFIG_CMODEL_MEDLOW)) {
145145
pr_err(
146146
"%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n",
147147
me->name, (long long)v, location);

0 commit comments

Comments
 (0)