提交 fd167e42 编写于 作者: A Andi Kleen 提交者: Andi Kleen

[PATCH] Define __bad_pda_field as noreturn

This quietens so warnings about uninitialized use of the return
value of the pda read operations.
Signed-off-by: NAndi Kleen <ak@suse.de>
上级 c1a9d41f
......@@ -39,7 +39,7 @@ extern struct x8664_pda boot_cpu_pda[];
* There is no fast way to get the base address of the PDA, all the accesses
* have to mention %fs/%gs. So it needs to be done this Torvaldian way.
*/
extern void __bad_pda_field(void);
extern void __bad_pda_field(void) __attribute__((noreturn));
/*
* proxy_pda doesn't actually exist, but tell gcc it is accessed for
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册