Skip to content

Commit

Permalink
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/…
Browse files Browse the repository at this point in the history
…davem/sparc-2.6

* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
  [SPARC32]: Fix build-warning in io-unit.c
  [SPARC64]: Fix BACKOFF_SPIN on non-SMP.
  [SPARC32]: __inline__ --> inline
  [SPARC64]: __inline__ --> inline
  • Loading branch information
Linus Torvalds committed Oct 27, 2007
2 parents 0f5a2c5 + 6ee4e28 commit a2508c0
Show file tree
Hide file tree
Showing 35 changed files with 169 additions and 205 deletions.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/pcic.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ void __init pci_time_init(void)
local_irq_enable();
}

static __inline__ unsigned long do_gettimeoffset(void)
static inline unsigned long do_gettimeoffset(void)
{
/*
* We divide all by 100
Expand Down
7 changes: 3 additions & 4 deletions arch/sparc/kernel/process.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* $Id: process.c,v 1.161 2002/01/23 11:27:32 davem Exp $
* linux/arch/sparc/kernel/process.c
/* linux/arch/sparc/kernel/process.c
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1995 David S. Miller (davem@davemloft.net)
* Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
*/

Expand Down Expand Up @@ -397,7 +396,7 @@ void flush_thread(void)
}
}

static __inline__ struct sparc_stackf __user *
static inline struct sparc_stackf __user *
clone_stackframe(struct sparc_stackf __user *dst,
struct sparc_stackf __user *src)
{
Expand Down
9 changes: 4 additions & 5 deletions arch/sparc/kernel/time.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* $Id: time.c,v 1.60 2002/01/23 14:33:55 davem Exp $
* linux/arch/sparc/kernel/time.c
/* linux/arch/sparc/kernel/time.c
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1995 David S. Miller (davem@davemloft.net)
* Copyright (C) 1996 Thomas K. Dyas (tdyas@eden.rutgers.edu)
*
* Chris Davis (cdavis@cois.on.ca) 03/27/1998
Expand Down Expand Up @@ -210,7 +209,7 @@ static void __devinit kick_start_clock(void)
}

/* Return nonzero if the clock chip battery is low. */
static __inline__ int has_low_battery(void)
static inline int has_low_battery(void)
{
struct mostek48t02 *regs = (struct mostek48t02 *)mstk48t02_regs;
unsigned char data1, data2;
Expand Down Expand Up @@ -252,7 +251,7 @@ static void __devinit mostek_set_system_time(void)
}

/* Probe for the real time clock chip on Sun4 */
static __inline__ void sun4_clock_probe(void)
static inline void sun4_clock_probe(void)
{
#ifdef CONFIG_SUN4
int temp;
Expand Down
5 changes: 2 additions & 3 deletions arch/sparc/mm/btfixup.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* $Id: btfixup.c,v 1.10 2000/05/09 17:40:13 davem Exp $
* btfixup.c: Boot time code fixup and relocator, so that
/* btfixup.c: Boot time code fixup and relocator, so that
* we can get rid of most indirect calls to achieve single
* image sun4c and srmmu kernel.
*
Expand Down Expand Up @@ -69,7 +68,7 @@ static void __init set_addr(unsigned int *addr, unsigned int q1, int fmangled, u
}
}
#else
static __inline__ void set_addr(unsigned int *addr, unsigned int q1, int fmangled, unsigned int value)
static inline void set_addr(unsigned int *addr, unsigned int q1, int fmangled, unsigned int value)
{
*addr = value;
}
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/mm/io-unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static void iounit_get_scsi_sgl(struct scatterlist *sg, int sz, struct sbus_bus
spin_lock_irqsave(&iounit->lock, flags);
while (sz != 0) {
--sz;
sg->dvma_address = iounit_get_area(iounit, sg_virt(sg), sg->length);
sg->dvma_address = iounit_get_area(iounit, (unsigned long) sg_virt(sg), sg->length);
sg->dvma_length = sg->length;
sg = sg_next(sg);
}
Expand Down
15 changes: 7 additions & 8 deletions arch/sparc/mm/sun4c.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* $Id: sun4c.c,v 1.212 2001/12/21 04:56:15 davem Exp $
* sun4c.c: Doing in software what should be done in hardware.
/* sun4c.c: Doing in software what should be done in hardware.
*
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1996 David S. Miller (davem@davemloft.net)
* Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
* Copyright (C) 1996 Andrew Tridgell (Andrew.Tridgell@anu.edu.au)
* Copyright (C) 1997-2000 Anton Blanchard (anton@samba.org)
Expand Down Expand Up @@ -719,7 +718,7 @@ static void add_ring(struct sun4c_mmu_ring *ring,
ring->num_entries++;
}

static __inline__ void add_lru(struct sun4c_mmu_entry *entry)
static inline void add_lru(struct sun4c_mmu_entry *entry)
{
struct sun4c_mmu_ring *ring = &sun4c_ulru_ring;
struct sun4c_mmu_entry *head = &ring->ringhd;
Expand All @@ -746,7 +745,7 @@ static void add_ring_ordered(struct sun4c_mmu_ring *ring,
add_lru(entry);
}

static __inline__ void remove_ring(struct sun4c_mmu_ring *ring,
static inline void remove_ring(struct sun4c_mmu_ring *ring,
struct sun4c_mmu_entry *entry)
{
struct sun4c_mmu_entry *next = entry->next;
Expand Down Expand Up @@ -1836,7 +1835,7 @@ static unsigned long sun4c_pte_to_pgoff(pte_t pte)
}


static __inline__ unsigned long sun4c_pmd_page_v(pmd_t pmd)
static inline unsigned long sun4c_pmd_page_v(pmd_t pmd)
{
return (pmd_val(pmd) & PAGE_MASK);
}
Expand Down Expand Up @@ -1922,7 +1921,7 @@ static void sun4c_free_pgd_fast(pgd_t *pgd)
}


static __inline__ pte_t *
static inline pte_t *
sun4c_pte_alloc_one_fast(struct mm_struct *mm, unsigned long address)
{
unsigned long *ret;
Expand Down Expand Up @@ -1956,7 +1955,7 @@ static struct page *sun4c_pte_alloc_one(struct mm_struct *mm, unsigned long addr
return virt_to_page(pte);
}

static __inline__ void sun4c_free_pte_fast(pte_t *pte)
static inline void sun4c_free_pte_fast(pte_t *pte)
{
*(unsigned long *)pte = (unsigned long) pte_quicklist;
pte_quicklist = (unsigned long *) pte;
Expand Down
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
Loading

0 comments on commit a2508c0

Please sign in to comment.