mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
[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: Andi Kleen <ak@suse.de>
This commit is contained in:
parent
c1a9d41f4f
commit
fd167e42b2
@ -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
|
* 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.
|
* 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
|
* proxy_pda doesn't actually exist, but tell gcc it is accessed for
|
||||||
|
Loading…
Reference in New Issue
Block a user