Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269554
b: refs/heads/master
c: 61e2cd0
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and H. Peter Anvin committed Aug 30, 2011
1 parent 471a309 commit 619602b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 229855d6f3b40d01a903120c433d75e483a0b06d
refs/heads/master: 61e2cd0acc248c14793cefd7e23e209be9e0b70d
15 changes: 11 additions & 4 deletions trunk/arch/x86/include/asm/cmpxchg.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
#ifndef ASM_X86_CMPXCHG_H
#define ASM_X86_CMPXCHG_H

#include <linux/compiler.h>
#include <asm/alternative.h> /* Provides LOCK_PREFIX */

/* Non-existant functions to indicate usage errors at link time. */
extern void __xchg_wrong_size(void);
extern void __cmpxchg_wrong_size(void);
extern void __xadd_wrong_size(void);
/*
* Non-existant functions to indicate usage errors at link time
* (or compile-time if the compiler implements __compiletime_error().
*/
extern void __xchg_wrong_size(void)
__compiletime_error("Bad argument size for xchg");
extern void __cmpxchg_wrong_size(void)
__compiletime_error("Bad argument size for cmpxchg");
extern void __xadd_wrong_size(void)
__compiletime_error("Bad argument size for xadd");

/*
* Constants for operation sizes. On 32-bit, the 64-bit size it set to
Expand Down

0 comments on commit 619602b

Please sign in to comment.