Skip to content

Commit

Permalink
[SPARC64]: __inline__ --> inline
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Oct 27, 2007
1 parent ec3b67c commit d979f17
Show file tree
Hide file tree
Showing 22 changed files with 125 additions and 155 deletions.
4 changes: 2 additions & 2 deletions arch/sparc64/kernel/binfmt_elf32.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* binfmt_elf32.c: Support 32-bit Sparc ELF binaries on Ultra.
*
* Copyright (C) 1995, 1996, 1997, 1998 David S. Miller (davem@redhat.com)
* Copyright (C) 1995, 1996, 1997, 1998 David S. Miller (davem@davemloft.net)
* Copyright (C) 1995, 1996, 1997, 1998 Jakub Jelinek (jj@ultra.linux.cz)
*/

Expand Down Expand Up @@ -133,7 +133,7 @@ struct elf_prpsinfo32

#undef cputime_to_timeval
#define cputime_to_timeval cputime_to_compat_timeval
static __inline__ void
static inline void
cputime_to_compat_timeval(const cputime_t cputime, struct compat_timeval *value)
{
unsigned long jiffies = cputime_to_jiffies(cputime);
Expand Down
9 changes: 4 additions & 5 deletions arch/sparc64/kernel/central.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* $Id: central.c,v 1.15 2001/12/19 00:29:51 davem Exp $
* central.c: Central FHC driver for Sunfire/Starfire/Wildfire.
/* central.c: Central FHC driver for Sunfire/Starfire/Wildfire.
*
* Copyright (C) 1997, 1999 David S. Miller (davem@redhat.com)
* Copyright (C) 1997, 1999 David S. Miller (davem@davemloft.net)
*/

#include <linux/kernel.h>
Expand Down Expand Up @@ -385,7 +384,7 @@ void __init central_probe(void)
init_all_fhc_hw();
}

static __inline__ void fhc_ledblink(struct linux_fhc *fhc, int on)
static inline void fhc_ledblink(struct linux_fhc *fhc, int on)
{
u32 tmp;

Expand All @@ -402,7 +401,7 @@ static __inline__ void fhc_ledblink(struct linux_fhc *fhc, int on)
upa_readl(fhc->fhc_regs.pregs + FHC_PREGS_CTRL);
}

static __inline__ void central_ledblink(struct linux_central *central, int on)
static inline void central_ledblink(struct linux_central *central, int on)
{
u8 tmp;

Expand Down
5 changes: 2 additions & 3 deletions arch/sparc64/kernel/semaphore.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* $Id: semaphore.c,v 1.9 2001/11/18 00:12:56 davem Exp $
* semaphore.c: Sparc64 semaphore implementation.
/* semaphore.c: Sparc64 semaphore implementation.
*
* This is basically the PPC semaphore scheme ported to use
* the sparc64 atomic instructions, so see the PPC code for
Expand All @@ -19,7 +18,7 @@
* sem->count = tmp;
* return old_count;
*/
static __inline__ int __sem_update_count(struct semaphore *sem, int incr)
static inline int __sem_update_count(struct semaphore *sem, int incr)
{
int old_count, tmp;

Expand Down
4 changes: 2 additions & 2 deletions arch/sparc64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ static void spitfire_xcall_helper(u64 data0, u64 data1, u64 data2, u64 pstate, u
}
}

static __inline__ void spitfire_xcall_deliver(u64 data0, u64 data1, u64 data2, cpumask_t mask)
static inline void spitfire_xcall_deliver(u64 data0, u64 data1, u64 data2, cpumask_t mask)
{
u64 pstate;
int i;
Expand Down Expand Up @@ -906,7 +906,7 @@ extern atomic_t dcpage_flushes;
extern atomic_t dcpage_flushes_xcall;
#endif

static __inline__ void __local_flush_dcache_page(struct page *page)
static inline void __local_flush_dcache_page(struct page *page)
{
#ifdef DCACHE_ALIASING_POSSIBLE
__flush_dcache_page(page_address(page),
Expand Down
9 changes: 4 additions & 5 deletions arch/sparc64/kernel/traps.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* $Id: traps.c,v 1.85 2002/02/09 19:49:31 davem Exp $
* arch/sparc64/kernel/traps.c
/* arch/sparc64/kernel/traps.c
*
* Copyright (C) 1995,1997 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1995,1997 David S. Miller (davem@davemloft.net)
* Copyright (C) 1997,1999,2000 Jakub Jelinek (jakub@redhat.com)
*/

Expand Down Expand Up @@ -765,7 +764,7 @@ static unsigned long cheetah_afsr_errors;
*/
struct cheetah_err_info *cheetah_error_log;

static __inline__ struct cheetah_err_info *cheetah_get_error_log(unsigned long afsr)
static inline struct cheetah_err_info *cheetah_get_error_log(unsigned long afsr)
{
struct cheetah_err_info *p;
int cpu = smp_processor_id();
Expand Down Expand Up @@ -1085,7 +1084,7 @@ static unsigned char cheetah_mtag_syntab[] = {
};

/* Return the highest priority error conditon mentioned. */
static __inline__ unsigned long cheetah_get_hipri(unsigned long afsr)
static inline unsigned long cheetah_get_hipri(unsigned long afsr)
{
unsigned long tmp = 0;
int i;
Expand Down
4 changes: 2 additions & 2 deletions arch/sparc64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ inline void flush_dcache_page_impl(struct page *page)
#define dcache_dirty_cpu(page) \
(((page)->flags >> PG_dcache_cpu_shift) & PG_dcache_cpu_mask)

static __inline__ void set_dcache_dirty(struct page *page, int this_cpu)
static inline void set_dcache_dirty(struct page *page, int this_cpu)
{
unsigned long mask = this_cpu;
unsigned long non_cpu_bits;
Expand All @@ -223,7 +223,7 @@ static __inline__ void set_dcache_dirty(struct page *page, int this_cpu)
: "g1", "g7");
}

static __inline__ void clear_dcache_dirty_cpu(struct page *page, unsigned long cpu)
static inline void clear_dcache_dirty_cpu(struct page *page, unsigned long cpu)
{
unsigned long mask = (1UL << PG_dcache_dirty);

Expand Down
9 changes: 4 additions & 5 deletions arch/sparc64/prom/console.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* $Id: console.c,v 1.9 1997/10/29 07:41:43 ecd Exp $
* console.c: Routines that deal with sending and receiving IO
/* console.c: Routines that deal with sending and receiving IO
* to/from the current console device using the PROM.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1995 David S. Miller (davem@davemloft.net)
* Copyright (C) 1996,1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
*/

Expand All @@ -19,7 +18,7 @@ extern int prom_stdin, prom_stdout;
/* Non blocking get character from console input device, returns -1
* if no input was taken. This can be used for polling.
*/
__inline__ int
inline int
prom_nbgetchar(void)
{
char inc;
Expand All @@ -35,7 +34,7 @@ prom_nbgetchar(void)
/* Non blocking put character to console device, returns -1 if
* unsuccessful.
*/
__inline__ int
inline int
prom_nbputchar(char c)
{
char outc;
Expand Down
49 changes: 17 additions & 32 deletions arch/sparc64/prom/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@
/* Return the child of node 'node' or zero if no this node has no
* direct descendent.
*/
__inline__ int
__prom_getchild(int node)
inline int __prom_getchild(int node)
{
return p1275_cmd ("child", P1275_INOUT(1, 1), node);
}

__inline__ int
prom_getchild(int node)
inline int prom_getchild(int node)
{
int cnode;

Expand All @@ -35,8 +33,7 @@ prom_getchild(int node)
return (int)cnode;
}

__inline__ int
prom_getparent(int node)
inline int prom_getparent(int node)
{
int cnode;

Expand All @@ -49,14 +46,12 @@ prom_getparent(int node)
/* Return the next sibling of node 'node' or zero if no more siblings
* at this level of depth in the tree.
*/
__inline__ int
__prom_getsibling(int node)
inline int __prom_getsibling(int node)
{
return p1275_cmd(prom_peer_name, P1275_INOUT(1, 1), node);
}

__inline__ int
prom_getsibling(int node)
inline int prom_getsibling(int node)
{
int sibnode;

Expand All @@ -72,8 +67,7 @@ prom_getsibling(int node)
/* Return the length in bytes of property 'prop' at node 'node'.
* Return -1 on error.
*/
__inline__ int
prom_getproplen(int node, const char *prop)
inline int prom_getproplen(int node, const char *prop)
{
if((!node) || (!prop)) return -1;
return p1275_cmd ("getproplen",
Expand All @@ -86,8 +80,8 @@ prom_getproplen(int node, const char *prop)
* 'buffer' which has a size of 'bufsize'. If the acquisition
* was successful the length will be returned, else -1 is returned.
*/
__inline__ int
prom_getproperty(int node, const char *prop, char *buffer, int bufsize)
inline int prom_getproperty(int node, const char *prop,
char *buffer, int bufsize)
{
int plen;

Expand All @@ -107,8 +101,7 @@ prom_getproperty(int node, const char *prop, char *buffer, int bufsize)
/* Acquire an integer property and return its value. Returns -1
* on failure.
*/
__inline__ int
prom_getint(int node, const char *prop)
inline int prom_getint(int node, const char *prop)
{
int intprop;

Expand All @@ -122,8 +115,7 @@ prom_getint(int node, const char *prop)
* integer.
*/

int
prom_getintdefault(int node, const char *property, int deflt)
int prom_getintdefault(int node, const char *property, int deflt)
{
int retval;

Expand All @@ -134,8 +126,7 @@ prom_getintdefault(int node, const char *property, int deflt)
}

/* Acquire a boolean property, 1=TRUE 0=FALSE. */
int
prom_getbool(int node, const char *prop)
int prom_getbool(int node, const char *prop)
{
int retval;

Expand All @@ -148,8 +139,7 @@ prom_getbool(int node, const char *prop)
* string on error. The char pointer is the user supplied string
* buffer.
*/
void
prom_getstring(int node, const char *prop, char *user_buf, int ubuf_size)
void prom_getstring(int node, const char *prop, char *user_buf, int ubuf_size)
{
int len;

Expand All @@ -163,8 +153,7 @@ prom_getstring(int node, const char *prop, char *user_buf, int ubuf_size)
/* Does the device at node 'node' have name 'name'?
* YES = 1 NO = 0
*/
int
prom_nodematch(int node, const char *name)
int prom_nodematch(int node, const char *name)
{
char namebuf[128];
prom_getproperty(node, "name", namebuf, sizeof(namebuf));
Expand All @@ -175,8 +164,7 @@ prom_nodematch(int node, const char *name)
/* Search siblings at 'node_start' for a node with name
* 'nodename'. Return node if successful, zero if not.
*/
int
prom_searchsiblings(int node_start, const char *nodename)
int prom_searchsiblings(int node_start, const char *nodename)
{

int thisnode, error;
Expand All @@ -197,8 +185,7 @@ prom_searchsiblings(int node_start, const char *nodename)
/* Return the first property type for node 'node'.
* buffer should be at least 32B in length
*/
__inline__ char *
prom_firstprop(int node, char *buffer)
inline char *prom_firstprop(int node, char *buffer)
{
*buffer = 0;
if(node == -1) return buffer;
Expand All @@ -212,8 +199,7 @@ prom_firstprop(int node, char *buffer)
* at node 'node' . Returns NULL string if no more
* property types for this node.
*/
__inline__ char *
prom_nextprop(int node, const char *oprop, char *buffer)
inline char *prom_nextprop(int node, const char *oprop, char *buffer)
{
char buf[32];

Expand Down Expand Up @@ -279,8 +265,7 @@ prom_setprop(int node, const char *pname, char *value, int size)
node, pname, value, P1275_SIZE(size));
}

__inline__ int
prom_inst2pkg(int inst)
inline int prom_inst2pkg(int inst)
{
int node;

Expand Down
7 changes: 3 additions & 4 deletions include/asm-sparc64/atomic.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* $Id: atomic.h,v 1.22 2001/07/11 23:56:07 davem Exp $
* atomic.h: Thankfully the V9 is at least reasonable for this
/* atomic.h: Thankfully the V9 is at least reasonable for this
* stuff.
*
* Copyright (C) 1996, 1997, 2000 David S. Miller (davem@redhat.com)
Expand Down Expand Up @@ -74,7 +73,7 @@ extern int atomic64_sub_ret(int, atomic64_t *);
#define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
#define atomic_xchg(v, new) (xchg(&((v)->counter), new))

static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
static inline int atomic_add_unless(atomic_t *v, int a, int u)
{
int c, old;
c = atomic_read(v);
Expand All @@ -95,7 +94,7 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
#define atomic64_xchg(v, new) (xchg(&((v)->counter), new))

static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
static inline int atomic64_add_unless(atomic64_t *v, long a, long u)
{
long c, old;
c = atomic64_read(v);
Expand Down
7 changes: 3 additions & 4 deletions include/asm-sparc64/byteorder.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* $Id: byteorder.h,v 1.8 1997/12/18 02:44:14 ecd Exp $ */
#ifndef _SPARC64_BYTEORDER_H
#define _SPARC64_BYTEORDER_H

Expand All @@ -7,7 +6,7 @@

#ifdef __GNUC__

static __inline__ __u16 ___arch__swab16p(const __u16 *addr)
static inline __u16 ___arch__swab16p(const __u16 *addr)
{
__u16 ret;

Expand All @@ -17,7 +16,7 @@ static __inline__ __u16 ___arch__swab16p(const __u16 *addr)
return ret;
}

static __inline__ __u32 ___arch__swab32p(const __u32 *addr)
static inline __u32 ___arch__swab32p(const __u32 *addr)
{
__u32 ret;

Expand All @@ -27,7 +26,7 @@ static __inline__ __u32 ___arch__swab32p(const __u32 *addr)
return ret;
}

static __inline__ __u64 ___arch__swab64p(const __u64 *addr)
static inline __u64 ___arch__swab64p(const __u64 *addr)
{
__u64 ret;

Expand Down
4 changes: 2 additions & 2 deletions include/asm-sparc64/fpumacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct fpustate {

#define FPUSTATE (struct fpustate *)(current_thread_info()->fpregs)

static __inline__ unsigned long fprs_read(void)
static inline unsigned long fprs_read(void)
{
unsigned long retval;

Expand All @@ -25,7 +25,7 @@ static __inline__ unsigned long fprs_read(void)
return retval;
}

static __inline__ void fprs_write(unsigned long val)
static inline void fprs_write(unsigned long val)
{
__asm__ __volatile__("wr %0, 0x0, %%fprs" : : "r" (val));
}
Expand Down
Loading

0 comments on commit d979f17

Please sign in to comment.