From: Dan Carpenter Date: Mon, 28 Jan 2013 06:43:21 +0000 (+0300) Subject: extra, equiv: make call_extra_mod_hooks() global X-Git-Tag: 1.57~32 X-Git-Url: https://repo.or.cz/w/smatch.git/commitdiff_plain/bfd2e21ae796e0c848838ea4d8f83eee13f292bd extra, equiv: make call_extra_mod_hooks() global This is needed to make the recently change in smatch_equiv.c compile. Sorry about that. Signed-off-by: Dan Carpenter --- diff --git a/smatch_extra.c b/smatch_extra.c index ab06f4b2..20dec1f3 100644 --- a/smatch_extra.c +++ b/smatch_extra.c @@ -54,7 +54,7 @@ void add_extra_mod_hook(mod_hook *fn) add_ptr_list(&extra_mod_hooks, p); } -static void call_extra_mod_hooks(const char *name, struct symbol *sym, struct smatch_state *state) +void call_extra_mod_hooks(const char *name, struct symbol *sym, struct smatch_state *state) { mod_hook **fn; diff --git a/smatch_extra.h b/smatch_extra.h index 37cdeaed..90e123fe 100644 --- a/smatch_extra.h +++ b/smatch_extra.h @@ -111,6 +111,7 @@ struct smatch_state *estate_filter_sval(struct smatch_state *orig, sval_t filter struct smatch_state *estate_filter_range(struct smatch_state *orig, sval_t filter_min, sval_t filter_max); /* smatch_extra.c */ +void call_extra_mod_hooks(const char *name, struct symbol *sym, struct smatch_state *state); struct sm_state *set_extra_mod(const char *name, struct symbol *sym, struct smatch_state *state); struct sm_state *set_extra_expr_mod(struct expression *expr, struct smatch_state *state); void set_extra_expr_nomod(struct expression *expr, struct smatch_state *state);