Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Remove fastcall from linux/include

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Harvey Harrison and committed by
Linus Torvalds
ec701584 9f741cb8

+20 -20
+8 -8
include/linux/irq.h
··· 25 25 #include <asm/irq_regs.h> 26 26 27 27 struct irq_desc; 28 - typedef void fastcall (*irq_flow_handler_t)(unsigned int irq, 28 + typedef void (*irq_flow_handler_t)(unsigned int irq, 29 29 struct irq_desc *desc); 30 30 31 31 ··· 276 276 * Built-in IRQ handlers for various IRQ types, 277 277 * callable via desc->chip->handle_irq() 278 278 */ 279 - extern void fastcall handle_level_irq(unsigned int irq, struct irq_desc *desc); 280 - extern void fastcall handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc); 281 - extern void fastcall handle_edge_irq(unsigned int irq, struct irq_desc *desc); 282 - extern void fastcall handle_simple_irq(unsigned int irq, struct irq_desc *desc); 283 - extern void fastcall handle_percpu_irq(unsigned int irq, struct irq_desc *desc); 284 - extern void fastcall handle_bad_irq(unsigned int irq, struct irq_desc *desc); 279 + extern void handle_level_irq(unsigned int irq, struct irq_desc *desc); 280 + extern void handle_fasteoi_irq(unsigned int irq, struct irq_desc *desc); 281 + extern void handle_edge_irq(unsigned int irq, struct irq_desc *desc); 282 + extern void handle_simple_irq(unsigned int irq, struct irq_desc *desc); 283 + extern void handle_percpu_irq(unsigned int irq, struct irq_desc *desc); 284 + extern void handle_bad_irq(unsigned int irq, struct irq_desc *desc); 285 285 286 286 /* 287 287 * Monolithic do_IRQ implementation. 288 288 * (is an explicit fastcall, because i386 4KSTACKS calls it from assembly) 289 289 */ 290 290 #ifndef CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ 291 - extern fastcall unsigned int __do_IRQ(unsigned int irq); 291 + extern unsigned int __do_IRQ(unsigned int irq); 292 292 #endif 293 293 294 294 /*
+1 -1
include/linux/kernel.h
··· 133 133 extern void oops_enter(void); 134 134 extern void oops_exit(void); 135 135 extern int oops_may_print(void); 136 - fastcall NORET_TYPE void do_exit(long error_code) 136 + NORET_TYPE void do_exit(long error_code) 137 137 ATTRIB_NORET; 138 138 NORET_TYPE void complete_and_exit(struct completion *, long) 139 139 ATTRIB_NORET;
+6 -6
include/linux/mutex.h
··· 112 112 * 113 113 * Returns 1 if the mutex is locked, 0 if unlocked. 114 114 */ 115 - static inline int fastcall mutex_is_locked(struct mutex *lock) 115 + static inline int mutex_is_locked(struct mutex *lock) 116 116 { 117 117 return atomic_read(&lock->count) != 1; 118 118 } ··· 132 132 #define mutex_lock_interruptible(lock) mutex_lock_interruptible_nested(lock, 0) 133 133 #define mutex_lock_killable(lock) mutex_lock_killable_nested(lock, 0) 134 134 #else 135 - extern void fastcall mutex_lock(struct mutex *lock); 136 - extern int __must_check fastcall mutex_lock_interruptible(struct mutex *lock); 137 - extern int __must_check fastcall mutex_lock_killable(struct mutex *lock); 135 + extern void mutex_lock(struct mutex *lock); 136 + extern int __must_check mutex_lock_interruptible(struct mutex *lock); 137 + extern int __must_check mutex_lock_killable(struct mutex *lock); 138 138 139 139 # define mutex_lock_nested(lock, subclass) mutex_lock(lock) 140 140 # define mutex_lock_interruptible_nested(lock, subclass) mutex_lock_interruptible(lock) ··· 145 145 * NOTE: mutex_trylock() follows the spin_trylock() convention, 146 146 * not the down_trylock() convention! 147 147 */ 148 - extern int fastcall mutex_trylock(struct mutex *lock); 149 - extern void fastcall mutex_unlock(struct mutex *lock); 148 + extern int mutex_trylock(struct mutex *lock); 149 + extern void mutex_unlock(struct mutex *lock); 150 150 151 151 #endif
+2 -2
include/linux/preempt.h
··· 11 11 #include <linux/list.h> 12 12 13 13 #ifdef CONFIG_DEBUG_PREEMPT 14 - extern void fastcall add_preempt_count(int val); 15 - extern void fastcall sub_preempt_count(int val); 14 + extern void add_preempt_count(int val); 15 + extern void sub_preempt_count(int val); 16 16 #else 17 17 # define add_preempt_count(val) do { preempt_count() += (val); } while (0) 18 18 # define sub_preempt_count(val) do { preempt_count() -= (val); } while (0)
+1 -1
include/linux/spinlock.h
··· 71 71 #define LOCK_SECTION_END \ 72 72 ".previous\n\t" 73 73 74 - #define __lockfunc fastcall __attribute__((section(".spinlock.text"))) 74 + #define __lockfunc __attribute__((section(".spinlock.text"))) 75 75 76 76 /* 77 77 * Pull the raw_spinlock_t and raw_rwlock_t definitions:
+2 -2
include/linux/timer.h
··· 35 35 struct timer_list _name = \ 36 36 TIMER_INITIALIZER(_function, _expires, _data) 37 37 38 - void fastcall init_timer(struct timer_list * timer); 39 - void fastcall init_timer_deferrable(struct timer_list *timer); 38 + void init_timer(struct timer_list *timer); 39 + void init_timer_deferrable(struct timer_list *timer); 40 40 41 41 static inline void setup_timer(struct timer_list * timer, 42 42 void (*function)(unsigned long),