diff options
author | Michal Marek <mmarek@suse.cz> | 2015-02-24 10:37:13 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-02-25 09:00:17 -0500 |
commit | ad8d40cda3ad22ad9e8863d55a5c88f85c0173f0 (patch) | |
tree | dda16c06e987fb9ac7177ea58fa88957cbe46f0f /scripts/kconfig/expr.c | |
parent | 463157444e377bf9b279101b1f16a94c4648c03a (diff) |
kconfig: Remove unnecessary prototypes from headers
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/expr.c')
-rw-r--r-- | scripts/kconfig/expr.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c index 4b4cf8e21314..fb0a2a286dca 100644 --- a/scripts/kconfig/expr.c +++ b/scripts/kconfig/expr.c | |||
@@ -11,6 +11,12 @@ | |||
11 | 11 | ||
12 | #define DEBUG_EXPR 0 | 12 | #define DEBUG_EXPR 0 |
13 | 13 | ||
14 | static int expr_eq(struct expr *e1, struct expr *e2); | ||
15 | static struct expr *expr_eliminate_yn(struct expr *e); | ||
16 | static struct expr *expr_extract_eq_and(struct expr **ep1, struct expr **ep2); | ||
17 | static struct expr *expr_extract_eq_or(struct expr **ep1, struct expr **ep2); | ||
18 | static void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2); | ||
19 | |||
14 | struct expr *expr_alloc_symbol(struct symbol *sym) | 20 | struct expr *expr_alloc_symbol(struct symbol *sym) |
15 | { | 21 | { |
16 | struct expr *e = xcalloc(1, sizeof(*e)); | 22 | struct expr *e = xcalloc(1, sizeof(*e)); |
@@ -186,7 +192,7 @@ void expr_eliminate_eq(struct expr **ep1, struct expr **ep2) | |||
186 | #undef e1 | 192 | #undef e1 |
187 | #undef e2 | 193 | #undef e2 |
188 | 194 | ||
189 | int expr_eq(struct expr *e1, struct expr *e2) | 195 | static int expr_eq(struct expr *e1, struct expr *e2) |
190 | { | 196 | { |
191 | int res, old_count; | 197 | int res, old_count; |
192 | 198 | ||
@@ -228,7 +234,7 @@ int expr_eq(struct expr *e1, struct expr *e2) | |||
228 | return 0; | 234 | return 0; |
229 | } | 235 | } |
230 | 236 | ||
231 | struct expr *expr_eliminate_yn(struct expr *e) | 237 | static struct expr *expr_eliminate_yn(struct expr *e) |
232 | { | 238 | { |
233 | struct expr *tmp; | 239 | struct expr *tmp; |
234 | 240 | ||
@@ -823,7 +829,7 @@ bool expr_depends_symbol(struct expr *dep, struct symbol *sym) | |||
823 | return false; | 829 | return false; |
824 | } | 830 | } |
825 | 831 | ||
826 | struct expr *expr_extract_eq_and(struct expr **ep1, struct expr **ep2) | 832 | static struct expr *expr_extract_eq_and(struct expr **ep1, struct expr **ep2) |
827 | { | 833 | { |
828 | struct expr *tmp = NULL; | 834 | struct expr *tmp = NULL; |
829 | expr_extract_eq(E_AND, &tmp, ep1, ep2); | 835 | expr_extract_eq(E_AND, &tmp, ep1, ep2); |
@@ -834,7 +840,7 @@ struct expr *expr_extract_eq_and(struct expr **ep1, struct expr **ep2) | |||
834 | return tmp; | 840 | return tmp; |
835 | } | 841 | } |
836 | 842 | ||
837 | struct expr *expr_extract_eq_or(struct expr **ep1, struct expr **ep2) | 843 | static struct expr *expr_extract_eq_or(struct expr **ep1, struct expr **ep2) |
838 | { | 844 | { |
839 | struct expr *tmp = NULL; | 845 | struct expr *tmp = NULL; |
840 | expr_extract_eq(E_OR, &tmp, ep1, ep2); | 846 | expr_extract_eq(E_OR, &tmp, ep1, ep2); |
@@ -845,7 +851,7 @@ struct expr *expr_extract_eq_or(struct expr **ep1, struct expr **ep2) | |||
845 | return tmp; | 851 | return tmp; |
846 | } | 852 | } |
847 | 853 | ||
848 | void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2) | 854 | static void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2) |
849 | { | 855 | { |
850 | #define e1 (*ep1) | 856 | #define e1 (*ep1) |
851 | #define e2 (*ep2) | 857 | #define e2 (*ep2) |
@@ -976,7 +982,7 @@ tristate expr_calc_value(struct expr *e) | |||
976 | } | 982 | } |
977 | } | 983 | } |
978 | 984 | ||
979 | int expr_compare_type(enum expr_type t1, enum expr_type t2) | 985 | static int expr_compare_type(enum expr_type t1, enum expr_type t2) |
980 | { | 986 | { |
981 | if (t1 == t2) | 987 | if (t1 == t2) |
982 | return 0; | 988 | return 0; |