Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5253
b: refs/heads/master
c: 77933d7
h: refs/heads/master
i:
  5251: 2f58451
v: v3
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Jul 27, 2005
1 parent 6037111 commit 02425b9
Show file tree
Hide file tree
Showing 47 changed files with 152 additions and 169 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 03e259a9cdbd0583e71468293aaa1ccadbdaeff1
refs/heads/master: 77933d7276ee8fa0e2947641941a6f7a100a327b
2 changes: 1 addition & 1 deletion trunk/crypto/aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
/*
* #define byte(x, nr) ((unsigned char)((x) >> (nr*8)))
*/
inline static u8
static inline u8
byte(const u32 x, const unsigned n)
{
return x >> (n << 3);
Expand Down
28 changes: 14 additions & 14 deletions trunk/drivers/cdrom/optcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ module_param(optcd_port, short, 0);


/* Busy wait until FLAG goes low. Return 0 on timeout. */
inline static int flag_low(int flag, unsigned long timeout)
static inline int flag_low(int flag, unsigned long timeout)
{
int flag_high;
unsigned long count = 0;
Expand Down Expand Up @@ -381,7 +381,7 @@ static int send_seek_params(struct cdrom_msf *params)

/* Wait for command execution status. Choice between busy waiting
and sleeping. Return value <0 indicates timeout. */
inline static int get_exec_status(int busy_waiting)
static inline int get_exec_status(int busy_waiting)
{
unsigned char exec_status;

Expand All @@ -398,7 +398,7 @@ inline static int get_exec_status(int busy_waiting)

/* Wait busy for extra byte of data that a command returns.
Return value <0 indicates timeout. */
inline static int get_data(int short_timeout)
static inline int get_data(int short_timeout)
{
unsigned char data;

Expand Down Expand Up @@ -441,14 +441,14 @@ static int reset_drive(void)
/* Facilities for asynchronous operation */

/* Read status/data availability flags FL_STEN and FL_DTEN */
inline static int stdt_flags(void)
static inline int stdt_flags(void)
{
return inb(STATUS_PORT) & FL_STDT;
}


/* Fetch status that has previously been waited for. <0 means not available */
inline static int fetch_status(void)
static inline int fetch_status(void)
{
unsigned char status;

Expand All @@ -462,15 +462,15 @@ inline static int fetch_status(void)


/* Fetch data that has previously been waited for. */
inline static void fetch_data(char *buf, int n)
static inline void fetch_data(char *buf, int n)
{
insb(DATA_PORT, buf, n);
DEBUG((DEBUG_DRIVE_IF, "fetched 0x%x bytes", n));
}


/* Flush status and data fifos */
inline static void flush_data(void)
static inline void flush_data(void)
{
while ((inb(STATUS_PORT) & FL_STDT) != FL_STDT)
inb(DATA_PORT);
Expand All @@ -482,7 +482,7 @@ inline static void flush_data(void)

/* Send a simple command and wait for response. Command codes < COMFETCH
are quick response commands */
inline static int exec_cmd(int cmd)
static inline int exec_cmd(int cmd)
{
int ack = send_cmd(cmd);
if (ack < 0)
Expand All @@ -493,7 +493,7 @@ inline static int exec_cmd(int cmd)

/* Send a command with parameters. Don't wait for the response,
* which consists of data blocks read from the CD. */
inline static int exec_read_cmd(int cmd, struct cdrom_msf *params)
static inline int exec_read_cmd(int cmd, struct cdrom_msf *params)
{
int ack = send_cmd(cmd);
if (ack < 0)
Expand All @@ -503,7 +503,7 @@ inline static int exec_read_cmd(int cmd, struct cdrom_msf *params)


/* Send a seek command with parameters and wait for response */
inline static int exec_seek_cmd(int cmd, struct cdrom_msf *params)
static inline int exec_seek_cmd(int cmd, struct cdrom_msf *params)
{
int ack = send_cmd(cmd);
if (ack < 0)
Expand All @@ -516,7 +516,7 @@ inline static int exec_seek_cmd(int cmd, struct cdrom_msf *params)


/* Send a command with parameters and wait for response */
inline static int exec_long_cmd(int cmd, struct cdrom_msf *params)
static inline int exec_long_cmd(int cmd, struct cdrom_msf *params)
{
int ack = exec_read_cmd(cmd, params);
if (ack < 0)
Expand All @@ -528,7 +528,7 @@ inline static int exec_long_cmd(int cmd, struct cdrom_msf *params)


/* Binary to BCD (2 digits) */
inline static void single_bin2bcd(u_char *p)
static inline void single_bin2bcd(u_char *p)
{
DEBUG((DEBUG_CONV, "bin2bcd %02d", *p));
*p = (*p % 10) | ((*p / 10) << 4);
Expand Down Expand Up @@ -565,7 +565,7 @@ static void lba2msf(int lba, struct cdrom_msf *msf)


/* Two BCD digits to binary */
inline static u_char bcd2bin(u_char bcd)
static inline u_char bcd2bin(u_char bcd)
{
DEBUG((DEBUG_CONV, "bcd2bin %x%02x", bcd));
return (bcd >> 4) * 10 + (bcd & 0x0f);
Expand Down Expand Up @@ -988,7 +988,7 @@ static char buf[CD_FRAMESIZE * N_BUFS];
static volatile int buf_bn[N_BUFS], next_bn;
static volatile int buf_in = 0, buf_out = NOBUF;

inline static void opt_invalidate_buffers(void)
static inline void opt_invalidate_buffers(void)
{
int i;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ static int dmi_table(u32 base, int len, int num)
return status;
}

inline static int dmi_checksum(u8 *buf)
static inline int dmi_checksum(u8 *buf)
{
u8 sum=0;
int a;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ide/pci/cmd640.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ static void display_clocks (unsigned int index)
* Pack active and recovery counts into single byte representation
* used by controller
*/
inline static u8 pack_nibbles (u8 upper, u8 lower)
static inline u8 pack_nibbles (u8 upper, u8 lower)
{
return ((upper & 0x0f) << 4) | (lower & 0x0f);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/isdn/hisax/avm_a1.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ avm_a1_interrupt(int intno, void *dev_id, struct pt_regs *regs)
return IRQ_HANDLED;
}

inline static void
static inline void
release_ioregs(struct IsdnCardState *cs, int mask)
{
release_region(cs->hw.avm.cfg_reg, 8);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/isdn/hisax/isdnl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ sethdraddr(struct Layer2 *l2, u_char * header, int rsp)
}
}

inline static void
static inline void
enqueue_super(struct PStack *st,
struct sk_buff *skb)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/isdn/hisax/teles3.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ teles3_interrupt(int intno, void *dev_id, struct pt_regs *regs)
return IRQ_HANDLED;
}

inline static void
static inline void
release_ioregs(struct IsdnCardState *cs, int mask)
{
if (mask & 1)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static mdk_rdev_t * find_rdev(mddev_t * mddev, dev_t dev)
return NULL;
}

inline static sector_t calc_dev_sboffset(struct block_device *bdev)
static inline sector_t calc_dev_sboffset(struct block_device *bdev)
{
sector_t size = bdev->bd_inode->i_size >> BLOCK_SIZE_BITS;
return MD_NEW_SIZE_BLOCKS(size);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/media/radio/radio-maestro.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static void radio_bits_set(struct radio_device *dev, __u32 data)
msleep(125);
}

inline static int radio_function(struct inode *inode, struct file *file,
static inline int radio_function(struct inode *inode, struct file *file,
unsigned int cmd, void *arg)
{
struct video_device *dev = video_devdata(file);
Expand Down Expand Up @@ -283,7 +283,7 @@ static int __init maestro_radio_init(void)
module_init(maestro_radio_init);
module_exit(maestro_radio_exit);

inline static __u16 radio_power_on(struct radio_device *dev)
static inline __u16 radio_power_on(struct radio_device *dev)
{
register __u16 io=dev->io;
register __u32 ofreq;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/radio/radio-maxiradio.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static int get_tune(__u16 io)
}


inline static int radio_function(struct inode *inode, struct file *file,
static inline int radio_function(struct inode *inode, struct file *file,
unsigned int cmd, void *arg)
{
struct video_device *dev = video_devdata(file);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/mmc/wbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ static void wbsd_detect_card(unsigned long data)
* Tasklets
*/

inline static struct mmc_data* wbsd_get_data(struct wbsd_host* host)
static inline struct mmc_data* wbsd_get_data(struct wbsd_host* host)
{
WARN_ON(!host->mrq);
if (!host->mrq)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/3c505.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static inline void set_hsf(struct net_device *dev, int hsf)

static int start_receive(struct net_device *, pcb_struct *);

inline static void adapter_reset(struct net_device *dev)
static inline void adapter_reset(struct net_device *dev)
{
unsigned long timeout;
elp_device *adapter = dev->priv;
Expand Down
29 changes: 14 additions & 15 deletions trunk/drivers/net/plip.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static struct net_device_stats *plip_get_stats(struct net_device *dev);
static int plip_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
static int plip_preempt(void *handle);
static void plip_wakeup(void *handle);


enum plip_connection_state {
PLIP_CN_NONE=0,
PLIP_CN_RECEIVE,
Expand Down Expand Up @@ -231,8 +231,8 @@ struct net_local {
atomic_t kill_timer;
struct semaphore killed_timer_sem;
};

inline static void enable_parport_interrupts (struct net_device *dev)

static inline void enable_parport_interrupts (struct net_device *dev)
{
if (dev->irq != -1)
{
Expand All @@ -242,7 +242,7 @@ inline static void enable_parport_interrupts (struct net_device *dev)
}
}

inline static void disable_parport_interrupts (struct net_device *dev)
static inline void disable_parport_interrupts (struct net_device *dev)
{
if (dev->irq != -1)
{
Expand All @@ -252,22 +252,22 @@ inline static void disable_parport_interrupts (struct net_device *dev)
}
}

inline static void write_data (struct net_device *dev, unsigned char data)
static inline void write_data (struct net_device *dev, unsigned char data)
{
struct parport *port =
((struct net_local *)dev->priv)->pardev->port;

port->ops->write_data (port, data);
}

inline static unsigned char read_status (struct net_device *dev)
static inline unsigned char read_status (struct net_device *dev)
{
struct parport *port =
((struct net_local *)dev->priv)->pardev->port;

return port->ops->read_status (port);
}


/* Entry point of PLIP driver.
Probe the hardware, and register/initialize the driver.
Expand Down Expand Up @@ -316,7 +316,7 @@ plip_init_netdev(struct net_device *dev)

spin_lock_init(&nl->lock);
}


/* Bottom half handler for the delayed request.
This routine is kicked by do_timer().
Request `plip_bh' to be invoked. */
Expand Down Expand Up @@ -471,7 +471,7 @@ plip_bh_timeout_error(struct net_device *dev, struct net_local *nl,

return TIMEOUT;
}


static int
plip_none(struct net_device *dev, struct net_local *nl,
struct plip_local *snd, struct plip_local *rcv)
Expand All @@ -481,7 +481,7 @@ plip_none(struct net_device *dev, struct net_local *nl,

/* PLIP_RECEIVE --- receive a byte(two nibbles)
Returns OK on success, TIMEOUT on timeout */
inline static int
static inline int
plip_receive(unsigned short nibble_timeout, struct net_device *dev,
enum plip_nibble_state *ns_p, unsigned char *data_p)
{
Expand Down Expand Up @@ -582,7 +582,6 @@ static __be16 plip_type_trans(struct sk_buff *skb, struct net_device *dev)
return htons(ETH_P_802_2);
}


/* PLIP_RECEIVE_PACKET --- receive a packet */
static int
plip_receive_packet(struct net_device *dev, struct net_local *nl,
Expand Down Expand Up @@ -702,7 +701,7 @@ plip_receive_packet(struct net_device *dev, struct net_local *nl,

/* PLIP_SEND --- send a byte (two nibbles)
Returns OK on success, TIMEOUT when timeout */
inline static int
static inline int
plip_send(unsigned short nibble_timeout, struct net_device *dev,
enum plip_nibble_state *ns_p, unsigned char data)
{
Expand Down Expand Up @@ -902,7 +901,7 @@ plip_error(struct net_device *dev, struct net_local *nl,

return OK;
}


/* Handle the parallel port interrupts. */
static void
plip_interrupt(int irq, void *dev_id, struct pt_regs * regs)
Expand Down Expand Up @@ -957,7 +956,7 @@ plip_interrupt(int irq, void *dev_id, struct pt_regs * regs)

spin_unlock_irq(&nl->lock);
}


static int
plip_tx_packet(struct sk_buff *skb, struct net_device *dev)
{
Expand Down Expand Up @@ -1238,7 +1237,7 @@ plip_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
}
return 0;
}


static int parport[PLIP_MAX] = { [0 ... PLIP_MAX-1] = -1 };
static int timid;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/via-velocity.h
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ static inline void mac_get_cam(struct mac_regs __iomem * regs, int idx, u8 *addr
* the rest of the logic from the result of sleep/wakeup
*/

inline static void mac_wol_reset(struct mac_regs __iomem * regs)
static inline void mac_wol_reset(struct mac_regs __iomem * regs)
{

/* Turn off SWPTAG right after leaving power mode */
Expand Down Expand Up @@ -1811,7 +1811,7 @@ struct velocity_info {
* CHECK ME: locking
*/

inline static int velocity_get_ip(struct velocity_info *vptr)
static inline int velocity_get_ip(struct velocity_info *vptr)
{
struct in_device *in_dev = (struct in_device *) vptr->dev->ip_ptr;
struct in_ifaddr *ifa;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -5013,7 +5013,7 @@ static void proc_SSID_on_close( struct inode *inode, struct file *file ) {
enable_MAC(ai, &rsp, 1);
}

inline static u8 hexVal(char c) {
static inline u8 hexVal(char c) {
if (c>='0' && c<='9') return c -= '0';
if (c>='a' && c<='f') return c -= 'a'-10;
if (c>='A' && c<='F') return c -= 'A'-10;
Expand Down
Loading

0 comments on commit 02425b9

Please sign in to comment.