Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
bbd3f4fb
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看板
提交
bbd3f4fb
编写于
1月 30, 2010
作者:
U
Uwe Kleine-König
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modpost: give most mismatch constants a better name
Signed-off-by:
N
Uwe Kleine-König
<
u.kleine-koenig@pengutronix.de
>
上级
4a31a229
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
28 addition
and
28 deletion
+28
-28
scripts/mod/modpost.c
scripts/mod/modpost.c
+28
-28
未找到文件。
scripts/mod/modpost.c
浏览文件 @
bbd3f4fb
...
...
@@ -836,14 +836,14 @@ static const char *linker_symbols[] =
enum
mismatch
{
NO_MISMATCH
,
TEXT_TO_INIT
,
DATA_TO_INIT
,
TEXT_TO_EXIT
,
DATA_TO_EXIT
,
XXXINIT_TO_INIT
,
XXXEXIT_TO_EXIT
,
INIT_TO
_EXIT
,
EXIT_TO
_INIT
,
TEXT_TO_
ANY_
INIT
,
DATA_TO_
ANY_
INIT
,
TEXT_TO_
ANY_
EXIT
,
DATA_TO_
ANY_
EXIT
,
XXXINIT_TO_
SOME_
INIT
,
XXXEXIT_TO_
SOME_
EXIT
,
ANY_INIT_TO_ANY
_EXIT
,
ANY_EXIT_TO_ANY
_INIT
,
EXPORT_TO_INIT_EXIT
,
};
...
...
@@ -860,70 +860,70 @@ const struct sectioncheck sectioncheck[] = {
{
.
fromsec
=
{
TEXT_SECTIONS
,
NULL
},
.
tosec
=
{
ALL_INIT_SECTIONS
,
NULL
},
.
mismatch
=
TEXT_TO_INIT
,
.
mismatch
=
TEXT_TO_
ANY_
INIT
,
},
{
.
fromsec
=
{
DATA_SECTIONS
,
NULL
},
.
tosec
=
{
ALL_INIT_SECTIONS
,
NULL
},
.
mismatch
=
DATA_TO_INIT
,
.
mismatch
=
DATA_TO_
ANY_
INIT
,
},
{
.
fromsec
=
{
TEXT_SECTIONS
,
NULL
},
.
tosec
=
{
ALL_EXIT_SECTIONS
,
NULL
},
.
mismatch
=
TEXT_TO_EXIT
,
.
mismatch
=
TEXT_TO_
ANY_
EXIT
,
},
{
.
fromsec
=
{
DATA_SECTIONS
,
NULL
},
.
tosec
=
{
ALL_EXIT_SECTIONS
,
NULL
},
.
mismatch
=
DATA_TO_EXIT
,
.
mismatch
=
DATA_TO_
ANY_
EXIT
,
},
/* Do not reference init code/data from devinit/cpuinit/meminit code/data */
{
.
fromsec
=
{
ALL_XXXINIT_SECTIONS
,
NULL
},
.
tosec
=
{
INIT_SECTIONS
,
NULL
},
.
mismatch
=
XXXINIT_TO_INIT
,
.
mismatch
=
XXXINIT_TO_
SOME_
INIT
,
},
/* Do not reference cpuinit code/data from meminit code/data */
{
.
fromsec
=
{
MEM_INIT_SECTIONS
,
NULL
},
.
tosec
=
{
CPU_INIT_SECTIONS
,
NULL
},
.
mismatch
=
XXXINIT_TO_INIT
,
.
mismatch
=
XXXINIT_TO_
SOME_
INIT
,
},
/* Do not reference meminit code/data from cpuinit code/data */
{
.
fromsec
=
{
CPU_INIT_SECTIONS
,
NULL
},
.
tosec
=
{
MEM_INIT_SECTIONS
,
NULL
},
.
mismatch
=
XXXINIT_TO_INIT
,
.
mismatch
=
XXXINIT_TO_
SOME_
INIT
,
},
/* Do not reference exit code/data from devexit/cpuexit/memexit code/data */
{
.
fromsec
=
{
ALL_XXXEXIT_SECTIONS
,
NULL
},
.
tosec
=
{
EXIT_SECTIONS
,
NULL
},
.
mismatch
=
XXXEXIT_TO_EXIT
,
.
mismatch
=
XXXEXIT_TO_
SOME_
EXIT
,
},
/* Do not reference cpuexit code/data from memexit code/data */
{
.
fromsec
=
{
MEM_EXIT_SECTIONS
,
NULL
},
.
tosec
=
{
CPU_EXIT_SECTIONS
,
NULL
},
.
mismatch
=
XXXEXIT_TO_EXIT
,
.
mismatch
=
XXXEXIT_TO_
SOME_
EXIT
,
},
/* Do not reference memexit code/data from cpuexit code/data */
{
.
fromsec
=
{
CPU_EXIT_SECTIONS
,
NULL
},
.
tosec
=
{
MEM_EXIT_SECTIONS
,
NULL
},
.
mismatch
=
XXXEXIT_TO_EXIT
,
.
mismatch
=
XXXEXIT_TO_
SOME_
EXIT
,
},
/* Do not use exit code/data from init code */
{
.
fromsec
=
{
ALL_INIT_SECTIONS
,
NULL
},
.
tosec
=
{
ALL_EXIT_SECTIONS
,
NULL
},
.
mismatch
=
INIT_TO
_EXIT
,
.
mismatch
=
ANY_INIT_TO_ANY
_EXIT
,
},
/* Do not use init code/data from exit code */
{
.
fromsec
=
{
ALL_EXIT_SECTIONS
,
NULL
},
.
tosec
=
{
ALL_INIT_SECTIONS
,
NULL
},
.
mismatch
=
EXIT_TO
_INIT
,
.
mismatch
=
ANY_EXIT_TO_ANY
_INIT
,
},
/* Do not export init/exit functions or data */
{
...
...
@@ -1190,7 +1190,7 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
tosym
,
to_p
);
switch
(
mismatch
)
{
case
TEXT_TO_INIT
:
case
TEXT_TO_
ANY_
INIT
:
fprintf
(
stderr
,
"The function %s%s() references
\n
"
"the %s %s%s%s.
\n
"
...
...
@@ -1200,7 +1200,7 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
to
,
sec2annotation
(
tosec
),
tosym
,
to_p
,
fromsym
,
sec2annotation
(
tosec
),
tosym
);
break
;
case
DATA_TO_INIT
:
{
case
DATA_TO_
ANY_
INIT
:
{
const
char
**
s
=
symbol_white_list
;
fprintf
(
stderr
,
"The variable %s references
\n
"
...
...
@@ -1214,14 +1214,14 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
fprintf
(
stderr
,
"
\n
"
);
break
;
}
case
TEXT_TO_EXIT
:
case
TEXT_TO_
ANY_
EXIT
:
fprintf
(
stderr
,
"The function %s() references a %s in an exit section.
\n
"
"Often the %s %s%s has valid usage outside the exit section
\n
"
"and the fix is to remove the %sannotation of %s.
\n
"
,
fromsym
,
to
,
to
,
tosym
,
to_p
,
sec2annotation
(
tosec
),
tosym
);
break
;
case
DATA_TO_EXIT
:
{
case
DATA_TO_
ANY_
EXIT
:
{
const
char
**
s
=
symbol_white_list
;
fprintf
(
stderr
,
"The variable %s references
\n
"
...
...
@@ -1235,8 +1235,8 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
fprintf
(
stderr
,
"
\n
"
);
break
;
}
case
XXXINIT_TO_INIT
:
case
XXXEXIT_TO_EXIT
:
case
XXXINIT_TO_
SOME_
INIT
:
case
XXXEXIT_TO_
SOME_
EXIT
:
fprintf
(
stderr
,
"The %s %s%s%s references
\n
"
"a %s %s%s%s.
\n
"
...
...
@@ -1246,7 +1246,7 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
to
,
sec2annotation
(
tosec
),
tosym
,
to_p
,
tosym
,
fromsym
,
tosym
);
break
;
case
INIT_TO
_EXIT
:
case
ANY_INIT_TO_ANY
_EXIT
:
fprintf
(
stderr
,
"The %s %s%s%s references
\n
"
"a %s %s%s%s.
\n
"
...
...
@@ -1259,7 +1259,7 @@ static void report_sec_mismatch(const char *modname, enum mismatch mismatch,
to
,
sec2annotation
(
tosec
),
tosym
,
to_p
,
sec2annotation
(
tosec
),
tosym
,
to_p
);
break
;
case
EXIT_TO
_INIT
:
case
ANY_EXIT_TO_ANY
_INIT
:
fprintf
(
stderr
,
"The %s %s%s%s references
\n
"
"a %s %s%s%s.
\n
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录