All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] use __always_inline for __xchg
@ 2005-01-29 16:54 Imre Kaloz
  2009-11-24 13:26 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Imre Kaloz @ 2005-01-29 16:54 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 269 bytes --]


The following patch changes inline for __xchg to __always_inline in  
include/asm-mips/system.h, following the changes in git. Without this  
change linking the kernel fails.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

[-- Attachment #2: use-__always_inline-for-__xchg.patch --]
[-- Type: application/octet-stream, Size: 504 bytes --]

--- linux-2.6.15.1.old/include/asm-mips/system.h	2006-01-28 15:02:54.481032280 +0100
+++ linux-2.6.15.1.dev/include/asm-mips/system.h	2006-01-28 14:47:51.634285848 +0100
@@ -273,7 +273,7 @@
    if something tries to do an invalid xchg().  */
 extern void __xchg_called_with_bad_pointer(void);
 
-static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size)
+static __always_inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size)
 {
 	switch (size) {
 		case 4:

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-24 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-29 16:54 [PATCH] use __always_inline for __xchg Imre Kaloz
2009-11-24 13:26 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.