Skip to content

Commit

Permalink
[PATCH] Define __bad_pda_field as noreturn
Browse files Browse the repository at this point in the history
This quietens so warnings about uninitialized use of the return
value of the pda read operations.
Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Sep 26, 2006
1 parent c1a9d41 commit fd167e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86_64/pda.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd167e4

Please sign in to comment.