Consistently use __inline instead of __inline__ as the former is an empty macro

in <sys/cdefs.h> for compilers without support for inline.
This commit is contained in:
Stefan Farfeleder 2004-07-04 16:11:03 +00:00
parent 1877e5a42f
commit 5908d366fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131575
19 changed files with 41 additions and 41 deletions

View File

@ -596,7 +596,7 @@ malloc_pages(size_t size)
* Allocate a page of fragments
*/
static __inline__ int
static __inline int
malloc_make_chunks(int bits)
{
struct pginfo *bp;
@ -845,7 +845,7 @@ irealloc(void *ptr, size_t size)
* Free a sequence of pages
*/
static __inline__ void
static __inline void
free_pages(void *ptr, u_long index, struct pginfo const *info)
{
u_long i;
@ -979,7 +979,7 @@ free_pages(void *ptr, u_long index, struct pginfo const *info)
* Free a chunk, and possibly the page it's on, if the page becomes empty.
*/
static __inline__ void
static __inline void
free_bytes(void *ptr, u_long index, struct pginfo *info)
{
int i;

View File

@ -169,13 +169,13 @@ def_thread_clr_flag(int mask)
static struct RtldLockInfo lockinfo;
static struct RtldLockInfo deflockinfo;
static __inline__ int
static __inline int
thread_mask_set(int mask)
{
return lockinfo.thread_set_flag(mask);
}
static __inline__ void
static __inline void
thread_mask_clear(int mask)
{
lockinfo.thread_clr_flag(mask);

View File

@ -68,7 +68,7 @@ static ssize_t fsread(ino_t, void *, size_t);
static int ls, dsk_meta;
static uint32_t fs_off;
static __inline__ int
static __inline int
fsfind(const char *name, ino_t * ino)
{
char buf[DEV_BSIZE];

View File

@ -1514,7 +1514,7 @@ tulip_null_media_poll(
#endif
}
__inline__ static void
__inline static void
tulip_21140_mediainit(
tulip_softc_t * const sc,
tulip_media_info_t * const mip,

View File

@ -880,7 +880,7 @@ NETISR_SET(NETISR_DE, tulip_softintr);
} while (0)
#if defined(__i386__)
typedef u_quad_t tulip_cycle_t;
static __inline__ tulip_cycle_t
static __inline tulip_cycle_t
TULIP_PERFREAD(
void)
{
@ -891,7 +891,7 @@ TULIP_PERFREAD(
#define TULIP_PERFDIFF(s, f) ((f) - (s))
#elif defined(__alpha__)
typedef unsigned long tulip_cycle_t;
static __inline__ tulip_cycle_t
static __inline tulip_cycle_t
TULIP_PERFREAD(
void)
{

View File

@ -151,7 +151,7 @@ static void hifn_alloc_slot(struct hifn_softc *, int *, int *, int *, int *);
static void hifn_write_reg_0(struct hifn_softc *, bus_size_t, u_int32_t);
static void hifn_write_reg_1(struct hifn_softc *, bus_size_t, u_int32_t);
static __inline__ u_int32_t
static __inline u_int32_t
READ_REG_0(struct hifn_softc *sc, bus_size_t reg)
{
u_int32_t v = bus_space_read_4(sc->sc_st0, sc->sc_sh0, reg);
@ -160,7 +160,7 @@ READ_REG_0(struct hifn_softc *sc, bus_size_t reg)
}
#define WRITE_REG_0(sc, reg, val) hifn_write_reg_0(sc, reg, val)
static __inline__ u_int32_t
static __inline u_int32_t
READ_REG_1(struct hifn_softc *sc, bus_size_t reg)
{
u_int32_t v = bus_space_read_4(sc->sc_st1, sc->sc_sh1, reg);

View File

@ -86,7 +86,7 @@ struct pcf_softc {
/*
* Specific register access to PCF8584
*/
static __inline__ void
static __inline void
pcf_set_S0(struct pcf_softc *sc, int data)
{
bus_space_write_1(sc->res_ioport->r_bustag,
@ -95,7 +95,7 @@ pcf_set_S0(struct pcf_softc *sc, int data)
pcf_nops();
}
static __inline__ void
static __inline void
pcf_set_S1(struct pcf_softc *sc, int data)
{
bus_space_write_1(sc->res_ioport->r_bustag,
@ -104,7 +104,7 @@ pcf_set_S1(struct pcf_softc *sc, int data)
pcf_nops();
}
static __inline__ char
static __inline char
pcf_get_S0(struct pcf_softc *sc)
{
char data;
@ -116,7 +116,7 @@ pcf_get_S0(struct pcf_softc *sc)
return (data);
}
static __inline__ char
static __inline char
pcf_get_S1(struct pcf_softc *sc)
{
char data;

View File

@ -89,7 +89,7 @@ __FBSDID("$FreeBSD$");
#define LINUX_DBREG_OFFSET 252
#define LINUX_DBREG_SIZE (8*sizeof(l_int))
static __inline__ int
static __inline int
map_signum(int signum)
{

View File

@ -60,7 +60,7 @@ static struct mtx pcicfg_mtx;
* apparently undocumented anywhere. Assume these are completely bogus
* and map them to 255, which means "none".
*/
static __inline__ int
static __inline int
pci_i386_map_intline(int line)
{
if (line == 0 || line >= 128)

View File

@ -377,7 +377,7 @@ waitrunningbufspace(void)
* bit if the newly extended portion of the buffer does not contain
* valid data.
*/
static __inline__
static __inline
void
vfs_buf_test_cache(struct buf *bp,
vm_ooffset_t foff, vm_offset_t off, vm_offset_t size,
@ -394,7 +394,7 @@ vfs_buf_test_cache(struct buf *bp,
}
/* Wake up the buffer deamon if necessary */
static __inline__
static __inline
void
bd_wakeup(int dirtybuflevel)
{
@ -410,7 +410,7 @@ bd_wakeup(int dirtybuflevel)
* bd_speedup - speedup the buffer cache flushing code
*/
static __inline__
static __inline
void
bd_speedup(void)
{

View File

@ -390,7 +390,7 @@ nga_disconnect(hook_p hook)
/*
* Encode a byte into the async buffer
*/
static __inline__ void
static __inline void
nga_async_add(const sc_p sc, u_int16_t *fcs, u_int32_t accm, int *len, u_char x)
{
*fcs = PPP_FCS(*fcs, x);

View File

@ -127,7 +127,7 @@ static int ng_units_in_use = 0;
* Find the first free unit number for a new interface.
* Increase the size of the unit bitmap as necessary.
*/
static __inline__ int
static __inline int
ng_eiface_get_unit(int *unit)
{
int index, bit;
@ -163,7 +163,7 @@ ng_eiface_get_unit(int *unit)
/*
* Free a no longer needed unit number.
*/
static __inline__ void
static __inline void
ng_eiface_free_unit(int unit)
{
int index, bit;

View File

@ -261,7 +261,7 @@ static int ng_units_in_use = 0;
* Find the first free unit number for a new interface.
* Increase the size of the unit bitmap as necessary.
*/
static __inline__ int
static __inline int
ng_fec_get_unit(int *unit)
{
int index, bit;
@ -297,7 +297,7 @@ ng_fec_get_unit(int *unit)
/*
* Free a no longer needed unit number.
*/
static __inline__ void
static __inline void
ng_fec_free_unit(int unit)
{
int index, bit;

View File

@ -163,7 +163,7 @@ NETGRAPH_INIT(gif_demux, &ng_gif_demux_typestruct);
/*
* Get the family descriptor from the family ID
*/
static __inline__ iffam_p
static __inline iffam_p
get_iffam_from_af(sa_family_t family)
{
iffam_p iffam;
@ -180,7 +180,7 @@ get_iffam_from_af(sa_family_t family)
/*
* Get the family descriptor from the hook
*/
static __inline__ iffam_p
static __inline iffam_p
get_iffam_from_hook(priv_p priv, hook_p hook)
{
int k;
@ -195,7 +195,7 @@ get_iffam_from_hook(priv_p priv, hook_p hook)
* Get the hook from the iffam descriptor
*/
static __inline__ hook_p *
static __inline hook_p *
get_hook_from_iffam(priv_p priv, iffam_p iffam)
{
return (&priv->hooks[iffam - gFamilies]);
@ -204,7 +204,7 @@ get_hook_from_iffam(priv_p priv, iffam_p iffam)
/*
* Get the iffam descriptor from the name
*/
static __inline__ iffam_p
static __inline iffam_p
get_iffam_from_name(const char *name)
{
iffam_p iffam;

View File

@ -225,7 +225,7 @@ static int ng_units_in_use = 0;
/*
* Get the family descriptor from the family ID
*/
static __inline__ iffam_p
static __inline iffam_p
get_iffam_from_af(sa_family_t family)
{
iffam_p iffam;
@ -242,7 +242,7 @@ get_iffam_from_af(sa_family_t family)
/*
* Get the family descriptor from the hook
*/
static __inline__ iffam_p
static __inline iffam_p
get_iffam_from_hook(priv_p priv, hook_p hook)
{
int k;
@ -257,7 +257,7 @@ get_iffam_from_hook(priv_p priv, hook_p hook)
* Get the hook from the iffam descriptor
*/
static __inline__ hook_p *
static __inline hook_p *
get_hook_from_iffam(priv_p priv, iffam_p iffam)
{
return (&priv->hooks[iffam - gFamilies]);
@ -266,7 +266,7 @@ get_hook_from_iffam(priv_p priv, iffam_p iffam)
/*
* Get the iffam descriptor from the name
*/
static __inline__ iffam_p
static __inline iffam_p
get_iffam_from_name(const char *name)
{
iffam_p iffam;
@ -284,7 +284,7 @@ get_iffam_from_name(const char *name)
* Find the first free unit number for a new interface.
* Increase the size of the unit bitmap as necessary.
*/
static __inline__ int
static __inline int
ng_iface_get_unit(int *unit)
{
int index, bit;
@ -320,7 +320,7 @@ ng_iface_get_unit(int *unit)
/*
* Free a no longer needed unit number.
*/
static __inline__ void
static __inline void
ng_iface_free_unit(int unit)
{
int index, bit;

View File

@ -116,7 +116,7 @@ static unsigned char ng_units_in_use = 0;
* Find the first free unit number for a new interface.
* Increase the size of the unit bitmap as necessary.
*/
static __inline__ int
static __inline int
ng_sppp_get_unit (int *unit)
{
int index, bit;
@ -156,7 +156,7 @@ ng_sppp_get_unit (int *unit)
/*
* Free a no longer needed unit number.
*/
static __inline__ void
static __inline void
ng_sppp_free_unit (int unit)
{
int index, bit;

View File

@ -1514,7 +1514,7 @@ tulip_null_media_poll(
#endif
}
__inline__ static void
__inline static void
tulip_21140_mediainit(
tulip_softc_t * const sc,
tulip_media_info_t * const mip,

View File

@ -880,7 +880,7 @@ NETISR_SET(NETISR_DE, tulip_softintr);
} while (0)
#if defined(__i386__)
typedef u_quad_t tulip_cycle_t;
static __inline__ tulip_cycle_t
static __inline tulip_cycle_t
TULIP_PERFREAD(
void)
{
@ -891,7 +891,7 @@ TULIP_PERFREAD(
#define TULIP_PERFDIFF(s, f) ((f) - (s))
#elif defined(__alpha__)
typedef unsigned long tulip_cycle_t;
static __inline__ tulip_cycle_t
static __inline tulip_cycle_t
TULIP_PERFREAD(
void)
{

View File

@ -49,7 +49,7 @@ struct convtbl convtbl[] = {
};
static __inline__
static __inline
struct convtbl *
get_tbl_ptr(const u_long size, const u_int scale)
{