'volatile' is not a valid return type qualifier - remove it.
This commit is contained in:
parent
16c4e2e447
commit
27fdcc3d32
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gtmpsc.c,v 1.18 2006/05/16 16:49:41 he Exp $ */
|
||||
/* $NetBSD: gtmpsc.c,v 1.19 2006/05/24 21:22:36 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
|
||||
|
@ -45,7 +45,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: gtmpsc.c,v 1.18 2006/05/16 16:49:41 he Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: gtmpsc.c,v 1.19 2006/05/24 21:22:36 mrg Exp $");
|
||||
|
||||
#include "opt_kgdb.h"
|
||||
|
||||
|
@ -249,14 +249,14 @@ unsigned int gtmpsc_poll_pollc_miss = 0;
|
|||
#define GTMPSC_CACHE_FLUSH(p) gtmpsc_cache_flush(p)
|
||||
#define GTMPSC_CACHE_INVALIDATE(p) gtmpsc_cache_invalidate(p)
|
||||
|
||||
static volatile inline void
|
||||
static inline void
|
||||
gtmpsc_cache_flush(void *p)
|
||||
{
|
||||
__asm volatile ("eieio; dcbf 0,%0; lwz %0,0(%0); sync;"
|
||||
: "+r"(p):);
|
||||
}
|
||||
|
||||
static volatile inline void
|
||||
static inline void
|
||||
gtmpsc_cache_invalidate(void *p)
|
||||
{
|
||||
__asm volatile ("eieio; dcbi 0,%0; sync;" :: "r"(p));
|
||||
|
@ -297,7 +297,7 @@ gtmpsc_cache_invalidate(void *p)
|
|||
GT_WRITE(sc, SDMA_IMASK, __r); \
|
||||
} while (/*CONSTCOND*/ 0)
|
||||
|
||||
static volatile inline unsigned int
|
||||
static inline unsigned int
|
||||
desc_read(unsigned int *ip)
|
||||
{
|
||||
unsigned int rv;
|
||||
|
@ -307,7 +307,7 @@ desc_read(unsigned int *ip)
|
|||
return rv;
|
||||
}
|
||||
|
||||
static volatile inline void
|
||||
static inline void
|
||||
desc_write(unsigned int *ip, unsigned int val)
|
||||
{
|
||||
__asm volatile ("stwx %0,0,%1; eieio;"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gtvar.h,v 1.11 2006/02/16 20:17:19 perry Exp $ */
|
||||
/* $NetBSD: gtvar.h,v 1.12 2006/05/24 21:22:36 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
|
||||
|
@ -132,7 +132,7 @@ bus_addr_t gt_dma_bus_mem_to_phys(bus_dma_tag_t, bus_addr_t);
|
|||
bus_space_write_4((gt)->gt_memt, (gt)->gt_memh, (o), (v))
|
||||
|
||||
#if defined(__powerpc__)
|
||||
static __inline volatile int
|
||||
static __inline int
|
||||
atomic_add(volatile int *p, int v)
|
||||
{
|
||||
int rv;
|
||||
|
|
Loading…
Reference in New Issue