@@ -247,7 +247,7 @@ static unsigned long externaly_visible(struct symbol *sym, unsigned long mod)
struct pseudo_user *pu;
if (mod)
- goto external_visibility;
+ return mod;
FOR_EACH_PTR(pseudo->users, pu) {
/* We know that the symbol-pseudo use is the "src" in the instruction */
@@ -261,8 +261,7 @@ static unsigned long externaly_visible(struct symbol *sym, unsigned long mod)
case OP_SYMADDR:
if (!insn->bb)
continue;
- mod |= MOD_ADDRESSABLE;
- goto external_visibility;
+ return MOD_ADDRESSABLE;
case OP_NOP:
case OP_SNOP:
case OP_LNOP:
@@ -273,8 +272,7 @@ static unsigned long externaly_visible(struct symbol *sym, unsigned long mod)
}
} END_FOR_EACH_PTR(pu);
-external_visibility:
- return mod;
+ return 0;
}
static void promote_symbol(struct entrypoint *ep, struct symbol *sym)