mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
m32r: __xchg() should be always_inline
it depends on elimination of unreachable branches in switch (by object size), so we must declare it always_inline Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8eafafb54b
commit
b4e1ded3cf
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
||||||
* Copyright (C) 2004, 2006 Hirokazu Takata <takata at linux-m32r.org>
|
* Copyright (C) 2004, 2006 Hirokazu Takata <takata at linux-m32r.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <linux/compiler.h>
|
||||||
#include <asm/assembler.h>
|
#include <asm/assembler.h>
|
||||||
|
|
||||||
#ifdef __KERNEL__
|
#ifdef __KERNEL__
|
||||||
|
@ -154,7 +155,7 @@ extern void __xchg_called_with_bad_pointer(void);
|
||||||
#define DCACHE_CLEAR(reg0, reg1, addr)
|
#define DCACHE_CLEAR(reg0, reg1, addr)
|
||||||
#endif /* CONFIG_CHIP_M32700_TS1 */
|
#endif /* CONFIG_CHIP_M32700_TS1 */
|
||||||
|
|
||||||
static inline unsigned long
|
static __always_inline unsigned long
|
||||||
__xchg(unsigned long x, volatile void * ptr, int size)
|
__xchg(unsigned long x, volatile void * ptr, int size)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue