Skip to content

Commit

Permalink
lib: remove fastcall from lib/*
Browse files Browse the repository at this point in the history
[[email protected]: coding-style fixes]
Signed-off-by: Harvey Harrison <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
hharrison authored and Linus Torvalds committed Feb 8, 2008
1 parent 7ad5b3a commit 9f741cb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
32 changes: 16 additions & 16 deletions lib/iomap.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,27 @@ static void bad_io_access(unsigned long port, const char *access)
#define mmio_read32be(addr) be32_to_cpu(__raw_readl(addr))
#endif

unsigned int fastcall ioread8(void __iomem *addr)
unsigned int ioread8(void __iomem *addr)
{
IO_COND(addr, return inb(port), return readb(addr));
return 0xff;
}
unsigned int fastcall ioread16(void __iomem *addr)
unsigned int ioread16(void __iomem *addr)
{
IO_COND(addr, return inw(port), return readw(addr));
return 0xffff;
}
unsigned int fastcall ioread16be(void __iomem *addr)
unsigned int ioread16be(void __iomem *addr)
{
IO_COND(addr, return pio_read16be(port), return mmio_read16be(addr));
return 0xffff;
}
unsigned int fastcall ioread32(void __iomem *addr)
unsigned int ioread32(void __iomem *addr)
{
IO_COND(addr, return inl(port), return readl(addr));
return 0xffffffff;
}
unsigned int fastcall ioread32be(void __iomem *addr)
unsigned int ioread32be(void __iomem *addr)
{
IO_COND(addr, return pio_read32be(port), return mmio_read32be(addr));
return 0xffffffff;
Expand All @@ -110,23 +110,23 @@ EXPORT_SYMBOL(ioread32be);
#define mmio_write32be(val,port) __raw_writel(be32_to_cpu(val),port)
#endif

void fastcall iowrite8(u8 val, void __iomem *addr)
void iowrite8(u8 val, void __iomem *addr)
{
IO_COND(addr, outb(val,port), writeb(val, addr));
}
void fastcall iowrite16(u16 val, void __iomem *addr)
void iowrite16(u16 val, void __iomem *addr)
{
IO_COND(addr, outw(val,port), writew(val, addr));
}
void fastcall iowrite16be(u16 val, void __iomem *addr)
void iowrite16be(u16 val, void __iomem *addr)
{
IO_COND(addr, pio_write16be(val,port), mmio_write16be(val, addr));
}
void fastcall iowrite32(u32 val, void __iomem *addr)
void iowrite32(u32 val, void __iomem *addr)
{
IO_COND(addr, outl(val,port), writel(val, addr));
}
void fastcall iowrite32be(u32 val, void __iomem *addr)
void iowrite32be(u32 val, void __iomem *addr)
{
IO_COND(addr, pio_write32be(val,port), mmio_write32be(val, addr));
}
Expand Down Expand Up @@ -193,31 +193,31 @@ static inline void mmio_outsl(void __iomem *addr, const u32 *src, int count)
}
#endif

void fastcall ioread8_rep(void __iomem *addr, void *dst, unsigned long count)
void ioread8_rep(void __iomem *addr, void *dst, unsigned long count)
{
IO_COND(addr, insb(port,dst,count), mmio_insb(addr, dst, count));
}
void fastcall ioread16_rep(void __iomem *addr, void *dst, unsigned long count)
void ioread16_rep(void __iomem *addr, void *dst, unsigned long count)
{
IO_COND(addr, insw(port,dst,count), mmio_insw(addr, dst, count));
}
void fastcall ioread32_rep(void __iomem *addr, void *dst, unsigned long count)
void ioread32_rep(void __iomem *addr, void *dst, unsigned long count)
{
IO_COND(addr, insl(port,dst,count), mmio_insl(addr, dst, count));
}
EXPORT_SYMBOL(ioread8_rep);
EXPORT_SYMBOL(ioread16_rep);
EXPORT_SYMBOL(ioread32_rep);

void fastcall iowrite8_rep(void __iomem *addr, const void *src, unsigned long count)
void iowrite8_rep(void __iomem *addr, const void *src, unsigned long count)
{
IO_COND(addr, outsb(port, src, count), mmio_outsb(addr, src, count));
}
void fastcall iowrite16_rep(void __iomem *addr, const void *src, unsigned long count)
void iowrite16_rep(void __iomem *addr, const void *src, unsigned long count)
{
IO_COND(addr, outsw(port, src, count), mmio_outsw(addr, src, count));
}
void fastcall iowrite32_rep(void __iomem *addr, const void *src, unsigned long count)
void iowrite32_rep(void __iomem *addr, const void *src, unsigned long count)
{
IO_COND(addr, outsl(port, src,count), mmio_outsl(addr, src, count));
}
Expand Down
16 changes: 8 additions & 8 deletions lib/rwsem-spinlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ __rwsem_wake_one_writer(struct rw_semaphore *sem)
/*
* get a read lock on the semaphore
*/
void fastcall __sched __down_read(struct rw_semaphore *sem)
void __sched __down_read(struct rw_semaphore *sem)
{
struct rwsem_waiter waiter;
struct task_struct *tsk;
Expand Down Expand Up @@ -168,7 +168,7 @@ void fastcall __sched __down_read(struct rw_semaphore *sem)
/*
* trylock for reading -- returns 1 if successful, 0 if contention
*/
int fastcall __down_read_trylock(struct rw_semaphore *sem)
int __down_read_trylock(struct rw_semaphore *sem)
{
unsigned long flags;
int ret = 0;
Expand All @@ -191,7 +191,7 @@ int fastcall __down_read_trylock(struct rw_semaphore *sem)
* get a write lock on the semaphore
* - we increment the waiting count anyway to indicate an exclusive lock
*/
void fastcall __sched __down_write_nested(struct rw_semaphore *sem, int subclass)
void __sched __down_write_nested(struct rw_semaphore *sem, int subclass)
{
struct rwsem_waiter waiter;
struct task_struct *tsk;
Expand Down Expand Up @@ -231,15 +231,15 @@ void fastcall __sched __down_write_nested(struct rw_semaphore *sem, int subclass
;
}

void fastcall __sched __down_write(struct rw_semaphore *sem)
void __sched __down_write(struct rw_semaphore *sem)
{
__down_write_nested(sem, 0);
}

/*
* trylock for writing -- returns 1 if successful, 0 if contention
*/
int fastcall __down_write_trylock(struct rw_semaphore *sem)
int __down_write_trylock(struct rw_semaphore *sem)
{
unsigned long flags;
int ret = 0;
Expand All @@ -260,7 +260,7 @@ int fastcall __down_write_trylock(struct rw_semaphore *sem)
/*
* release a read lock on the semaphore
*/
void fastcall __up_read(struct rw_semaphore *sem)
void __up_read(struct rw_semaphore *sem)
{
unsigned long flags;

Expand All @@ -275,7 +275,7 @@ void fastcall __up_read(struct rw_semaphore *sem)
/*
* release a write lock on the semaphore
*/
void fastcall __up_write(struct rw_semaphore *sem)
void __up_write(struct rw_semaphore *sem)
{
unsigned long flags;

Expand All @@ -292,7 +292,7 @@ void fastcall __up_write(struct rw_semaphore *sem)
* downgrade a write lock into a read lock
* - just wake up any readers at the front of the queue
*/
void fastcall __downgrade_write(struct rw_semaphore *sem)
void __downgrade_write(struct rw_semaphore *sem)
{
unsigned long flags;

Expand Down
8 changes: 4 additions & 4 deletions lib/semaphore-sleepers.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
* we cannot lose wakeup events.
*/

fastcall void __up(struct semaphore *sem)
void __up(struct semaphore *sem)
{
wake_up(&sem->wait);
}

fastcall void __sched __down(struct semaphore * sem)
void __sched __down(struct semaphore *sem)
{
struct task_struct *tsk = current;
DECLARE_WAITQUEUE(wait, tsk);
Expand Down Expand Up @@ -90,7 +90,7 @@ fastcall void __sched __down(struct semaphore * sem)
tsk->state = TASK_RUNNING;
}

fastcall int __sched __down_interruptible(struct semaphore * sem)
int __sched __down_interruptible(struct semaphore *sem)
{
int retval = 0;
struct task_struct *tsk = current;
Expand Down Expand Up @@ -153,7 +153,7 @@ fastcall int __sched __down_interruptible(struct semaphore * sem)
* single "cmpxchg" without failure cases,
* but then it wouldn't work on a 386.
*/
fastcall int __down_trylock(struct semaphore * sem)
int __down_trylock(struct semaphore *sem)
{
int sleepers;
unsigned long flags;
Expand Down

0 comments on commit 9f741cb

Please sign in to comment.