Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
ad8d40cd
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ad8d40cd
编写于
2月 24, 2015
作者:
M
Michal Marek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
kconfig: Remove unnecessary prototypes from headers
Signed-off-by:
N
Michal Marek
<
mmarek@suse.cz
>
上级
46315744
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
40 addition
and
48 deletion
+40
-48
scripts/kconfig/confdata.c
scripts/kconfig/confdata.c
+5
-0
scripts/kconfig/expr.c
scripts/kconfig/expr.c
+12
-6
scripts/kconfig/expr.h
scripts/kconfig/expr.h
+0
-5
scripts/kconfig/lkc.h
scripts/kconfig/lkc.h
+0
-11
scripts/kconfig/lkc_proto.h
scripts/kconfig/lkc_proto.h
+0
-3
scripts/kconfig/menu.c
scripts/kconfig/menu.c
+2
-2
scripts/kconfig/symbol.c
scripts/kconfig/symbol.c
+21
-21
未找到文件。
scripts/kconfig/confdata.c
浏览文件 @
ad8d40cd
...
...
@@ -16,6 +16,11 @@
#include "lkc.h"
struct
conf_printer
{
void
(
*
print_symbol
)(
FILE
*
,
struct
symbol
*
,
const
char
*
,
void
*
);
void
(
*
print_comment
)(
FILE
*
,
const
char
*
,
void
*
);
};
static
void
conf_warning
(
const
char
*
fmt
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
...
...
scripts/kconfig/expr.c
浏览文件 @
ad8d40cd
...
...
@@ -11,6 +11,12 @@
#define DEBUG_EXPR 0
static
int
expr_eq
(
struct
expr
*
e1
,
struct
expr
*
e2
);
static
struct
expr
*
expr_eliminate_yn
(
struct
expr
*
e
);
static
struct
expr
*
expr_extract_eq_and
(
struct
expr
**
ep1
,
struct
expr
**
ep2
);
static
struct
expr
*
expr_extract_eq_or
(
struct
expr
**
ep1
,
struct
expr
**
ep2
);
static
void
expr_extract_eq
(
enum
expr_type
type
,
struct
expr
**
ep
,
struct
expr
**
ep1
,
struct
expr
**
ep2
);
struct
expr
*
expr_alloc_symbol
(
struct
symbol
*
sym
)
{
struct
expr
*
e
=
xcalloc
(
1
,
sizeof
(
*
e
));
...
...
@@ -186,7 +192,7 @@ void expr_eliminate_eq(struct expr **ep1, struct expr **ep2)
#undef e1
#undef e2
int
expr_eq
(
struct
expr
*
e1
,
struct
expr
*
e2
)
static
int
expr_eq
(
struct
expr
*
e1
,
struct
expr
*
e2
)
{
int
res
,
old_count
;
...
...
@@ -228,7 +234,7 @@ int expr_eq(struct expr *e1, struct expr *e2)
return
0
;
}
struct
expr
*
expr_eliminate_yn
(
struct
expr
*
e
)
st
atic
st
ruct
expr
*
expr_eliminate_yn
(
struct
expr
*
e
)
{
struct
expr
*
tmp
;
...
...
@@ -823,7 +829,7 @@ bool expr_depends_symbol(struct expr *dep, struct symbol *sym)
return
false
;
}
struct
expr
*
expr_extract_eq_and
(
struct
expr
**
ep1
,
struct
expr
**
ep2
)
st
atic
st
ruct
expr
*
expr_extract_eq_and
(
struct
expr
**
ep1
,
struct
expr
**
ep2
)
{
struct
expr
*
tmp
=
NULL
;
expr_extract_eq
(
E_AND
,
&
tmp
,
ep1
,
ep2
);
...
...
@@ -834,7 +840,7 @@ struct expr *expr_extract_eq_and(struct expr **ep1, struct expr **ep2)
return
tmp
;
}
struct
expr
*
expr_extract_eq_or
(
struct
expr
**
ep1
,
struct
expr
**
ep2
)
st
atic
st
ruct
expr
*
expr_extract_eq_or
(
struct
expr
**
ep1
,
struct
expr
**
ep2
)
{
struct
expr
*
tmp
=
NULL
;
expr_extract_eq
(
E_OR
,
&
tmp
,
ep1
,
ep2
);
...
...
@@ -845,7 +851,7 @@ struct expr *expr_extract_eq_or(struct expr **ep1, struct expr **ep2)
return
tmp
;
}
void
expr_extract_eq
(
enum
expr_type
type
,
struct
expr
**
ep
,
struct
expr
**
ep1
,
struct
expr
**
ep2
)
static
void
expr_extract_eq
(
enum
expr_type
type
,
struct
expr
**
ep
,
struct
expr
**
ep1
,
struct
expr
**
ep2
)
{
#define e1 (*ep1)
#define e2 (*ep2)
...
...
@@ -976,7 +982,7 @@ tristate expr_calc_value(struct expr *e)
}
}
int
expr_compare_type
(
enum
expr_type
t1
,
enum
expr_type
t2
)
static
int
expr_compare_type
(
enum
expr_type
t1
,
enum
expr_type
t2
)
{
if
(
t1
==
t2
)
return
0
;
...
...
scripts/kconfig/expr.h
浏览文件 @
ad8d40cd
...
...
@@ -205,18 +205,13 @@ struct expr *expr_alloc_and(struct expr *e1, struct expr *e2);
struct
expr
*
expr_alloc_or
(
struct
expr
*
e1
,
struct
expr
*
e2
);
struct
expr
*
expr_copy
(
const
struct
expr
*
org
);
void
expr_free
(
struct
expr
*
e
);
int
expr_eq
(
struct
expr
*
e1
,
struct
expr
*
e2
);
void
expr_eliminate_eq
(
struct
expr
**
ep1
,
struct
expr
**
ep2
);
tristate
expr_calc_value
(
struct
expr
*
e
);
struct
expr
*
expr_eliminate_yn
(
struct
expr
*
e
);
struct
expr
*
expr_trans_bool
(
struct
expr
*
e
);
struct
expr
*
expr_eliminate_dups
(
struct
expr
*
e
);
struct
expr
*
expr_transform
(
struct
expr
*
e
);
int
expr_contains_symbol
(
struct
expr
*
dep
,
struct
symbol
*
sym
);
bool
expr_depends_symbol
(
struct
expr
*
dep
,
struct
symbol
*
sym
);
struct
expr
*
expr_extract_eq_and
(
struct
expr
**
ep1
,
struct
expr
**
ep2
);
struct
expr
*
expr_extract_eq_or
(
struct
expr
**
ep1
,
struct
expr
**
ep2
);
void
expr_extract_eq
(
enum
expr_type
type
,
struct
expr
**
ep
,
struct
expr
**
ep1
,
struct
expr
**
ep2
);
struct
expr
*
expr_trans_compare
(
struct
expr
*
e
,
enum
expr_type
type
,
struct
symbol
*
sym
);
struct
expr
*
expr_simplify_unmet_dep
(
struct
expr
*
e1
,
struct
expr
*
e2
);
...
...
scripts/kconfig/lkc.h
浏览文件 @
ad8d40cd
...
...
@@ -68,9 +68,6 @@ struct kconf_id {
enum
symbol_type
stype
;
};
extern
int
zconfdebug
;
int
zconfparse
(
void
);
void
zconfdump
(
FILE
*
out
);
void
zconf_starthelp
(
void
);
FILE
*
zconf_fopen
(
const
char
*
name
);
...
...
@@ -88,11 +85,6 @@ void sym_add_change_count(int count);
bool
conf_set_all_new_symbols
(
enum
conf_def_mode
mode
);
void
set_all_choice_values
(
struct
symbol
*
csym
);
struct
conf_printer
{
void
(
*
print_symbol
)(
FILE
*
,
struct
symbol
*
,
const
char
*
,
void
*
);
void
(
*
print_comment
)(
FILE
*
,
const
char
*
,
void
*
);
};
/* confdata.c and expr.c */
static
inline
void
xfwrite
(
const
void
*
str
,
size_t
len
,
size_t
count
,
FILE
*
out
)
{
...
...
@@ -111,7 +103,6 @@ void menu_add_entry(struct symbol *sym);
void
menu_end_entry
(
void
);
void
menu_add_dep
(
struct
expr
*
dep
);
void
menu_add_visibility
(
struct
expr
*
dep
);
struct
property
*
menu_add_prop
(
enum
prop_type
type
,
char
*
prompt
,
struct
expr
*
expr
,
struct
expr
*
dep
);
struct
property
*
menu_add_prompt
(
enum
prop_type
type
,
char
*
prompt
,
struct
expr
*
dep
);
void
menu_add_expr
(
enum
prop_type
type
,
struct
expr
*
expr
,
struct
expr
*
dep
);
void
menu_add_symbol
(
enum
prop_type
type
,
struct
symbol
*
sym
,
struct
expr
*
dep
);
...
...
@@ -145,8 +136,6 @@ extern struct expr *sym_env_list;
void
sym_init
(
void
);
void
sym_clear_all_valid
(
void
);
void
sym_set_all_changed
(
void
);
void
sym_set_changed
(
struct
symbol
*
sym
);
struct
symbol
*
sym_choice_default
(
struct
symbol
*
sym
);
const
char
*
sym_get_string_default
(
struct
symbol
*
sym
);
struct
symbol
*
sym_check_deps
(
struct
symbol
*
sym
);
...
...
scripts/kconfig/lkc_proto.h
浏览文件 @
ad8d40cd
...
...
@@ -22,7 +22,6 @@ struct menu * menu_get_root_menu(struct menu *menu);
struct
menu
*
menu_get_parent_menu
(
struct
menu
*
menu
);
bool
menu_has_help
(
struct
menu
*
menu
);
const
char
*
menu_get_help
(
struct
menu
*
menu
);
void
get_symbol_str
(
struct
gstr
*
r
,
struct
symbol
*
sym
,
struct
list_head
*
head
);
struct
gstr
get_relations_str
(
struct
symbol
**
sym_arr
,
struct
list_head
*
head
);
void
menu_get_ext_help
(
struct
menu
*
menu
,
struct
gstr
*
help
);
...
...
@@ -45,11 +44,9 @@ bool sym_string_within_range(struct symbol *sym, const char *str);
bool
sym_set_string_value
(
struct
symbol
*
sym
,
const
char
*
newval
);
bool
sym_is_changable
(
struct
symbol
*
sym
);
struct
property
*
sym_get_choice_prop
(
struct
symbol
*
sym
);
struct
property
*
sym_get_default_prop
(
struct
symbol
*
sym
);
const
char
*
sym_get_string_value
(
struct
symbol
*
sym
);
const
char
*
prop_get_type_name
(
enum
prop_type
type
);
/* expr.c */
int
expr_compare_type
(
enum
expr_type
t1
,
enum
expr_type
t2
);
void
expr_print
(
struct
expr
*
e
,
void
(
*
fn
)(
void
*
,
struct
symbol
*
,
const
char
*
),
void
*
data
,
int
prevtoken
);
scripts/kconfig/menu.c
浏览文件 @
ad8d40cd
...
...
@@ -125,7 +125,7 @@ void menu_set_type(int type)
sym_type_name
(
sym
->
type
),
sym_type_name
(
type
));
}
struct
property
*
menu_add_prop
(
enum
prop_type
type
,
char
*
prompt
,
struct
expr
*
expr
,
struct
expr
*
dep
)
st
atic
st
ruct
property
*
menu_add_prop
(
enum
prop_type
type
,
char
*
prompt
,
struct
expr
*
expr
,
struct
expr
*
dep
)
{
struct
property
*
prop
=
prop_alloc
(
type
,
current_entry
->
sym
);
...
...
@@ -615,7 +615,7 @@ static struct property *get_symbol_prop(struct symbol *sym)
/*
* head is optional and may be NULL
*/
void
get_symbol_str
(
struct
gstr
*
r
,
struct
symbol
*
sym
,
static
void
get_symbol_str
(
struct
gstr
*
r
,
struct
symbol
*
sym
,
struct
list_head
*
head
)
{
bool
hit
;
...
...
scripts/kconfig/symbol.c
浏览文件 @
ad8d40cd
...
...
@@ -112,7 +112,7 @@ struct property *sym_get_env_prop(struct symbol *sym)
return
NULL
;
}
struct
property
*
sym_get_default_prop
(
struct
symbol
*
sym
)
st
atic
st
ruct
property
*
sym_get_default_prop
(
struct
symbol
*
sym
)
{
struct
property
*
prop
;
...
...
@@ -186,6 +186,26 @@ static void sym_validate_range(struct symbol *sym)
sym
->
curr
.
val
=
strdup
(
str
);
}
static
void
sym_set_changed
(
struct
symbol
*
sym
)
{
struct
property
*
prop
;
sym
->
flags
|=
SYMBOL_CHANGED
;
for
(
prop
=
sym
->
prop
;
prop
;
prop
=
prop
->
next
)
{
if
(
prop
->
menu
)
prop
->
menu
->
flags
|=
MENU_CHANGED
;
}
}
static
void
sym_set_all_changed
(
void
)
{
struct
symbol
*
sym
;
int
i
;
for_all_symbols
(
i
,
sym
)
sym_set_changed
(
sym
);
}
static
void
sym_calc_visibility
(
struct
symbol
*
sym
)
{
struct
property
*
prop
;
...
...
@@ -451,26 +471,6 @@ void sym_clear_all_valid(void)
sym_calc_value
(
modules_sym
);
}
void
sym_set_changed
(
struct
symbol
*
sym
)
{
struct
property
*
prop
;
sym
->
flags
|=
SYMBOL_CHANGED
;
for
(
prop
=
sym
->
prop
;
prop
;
prop
=
prop
->
next
)
{
if
(
prop
->
menu
)
prop
->
menu
->
flags
|=
MENU_CHANGED
;
}
}
void
sym_set_all_changed
(
void
)
{
struct
symbol
*
sym
;
int
i
;
for_all_symbols
(
i
,
sym
)
sym_set_changed
(
sym
);
}
bool
sym_tristate_within_range
(
struct
symbol
*
sym
,
tristate
val
)
{
int
type
=
sym_get_type
(
sym
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录