Commit 7665a089 authored by Adrian Bunk's avatar Adrian Bunk Committed by Jeff Garzik

[PATCH] drivers/net/wan/: possible cleanups

This patch contains possible cleanups including the following:
- make needlessly global code static
- #if 0 the following unused global function:
  - sdladrv.c: sdla_intde
- remove the following unused global variable:
  - lmc_media.c: lmc_t1_cables
- remove the following unneeded EXPORT_SYMBOL's:
  - cycx_drv.c: cycx_inten
  - sdladrv.c: sdla_inten
  - sdladrv.c: sdla_intde
  - sdladrv.c: sdla_intack
  - sdladrv.c: sdla_intr
  - syncppp.c: sppp_input
  - syncppp.c: sppp_change_mtu
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 8e18d1f9
...@@ -109,7 +109,7 @@ static long cycx_2x_irq_options[] = { 7, 3, 5, 9, 10, 11, 12, 15 }; ...@@ -109,7 +109,7 @@ static long cycx_2x_irq_options[] = { 7, 3, 5, 9, 10, 11, 12, 15 };
* < 0 error. * < 0 error.
* Context: process */ * Context: process */
int __init cycx_drv_init(void) static int __init cycx_drv_init(void)
{ {
printk(KERN_INFO "%s v%u.%u %s\n", fullname, MOD_VERSION, MOD_RELEASE, printk(KERN_INFO "%s v%u.%u %s\n", fullname, MOD_VERSION, MOD_RELEASE,
copyright); copyright);
...@@ -119,7 +119,7 @@ int __init cycx_drv_init(void) ...@@ -119,7 +119,7 @@ int __init cycx_drv_init(void)
/* Module 'remove' entry point. /* Module 'remove' entry point.
* o release all remaining system resources */ * o release all remaining system resources */
void cycx_drv_cleanup(void) static void cycx_drv_cleanup(void)
{ {
} }
...@@ -184,8 +184,7 @@ int cycx_down(struct cycx_hw *hw) ...@@ -184,8 +184,7 @@ int cycx_down(struct cycx_hw *hw)
} }
/* Enable interrupt generation. */ /* Enable interrupt generation. */
EXPORT_SYMBOL(cycx_inten); static void cycx_inten(struct cycx_hw *hw)
void cycx_inten(struct cycx_hw *hw)
{ {
writeb(0, hw->dpmbase); writeb(0, hw->dpmbase);
} }
......
...@@ -103,7 +103,7 @@ static struct cycx_device *cycx_card_array; /* adapter data space */ ...@@ -103,7 +103,7 @@ static struct cycx_device *cycx_card_array; /* adapter data space */
* < 0 error. * < 0 error.
* Context: process * Context: process
*/ */
int __init cycx_init(void) static int __init cycx_init(void)
{ {
int cnt, err = -ENOMEM; int cnt, err = -ENOMEM;
......
...@@ -446,8 +446,8 @@ static inline unsigned int dscc4_tx_quiescent(struct dscc4_dev_priv *dpriv, ...@@ -446,8 +446,8 @@ static inline unsigned int dscc4_tx_quiescent(struct dscc4_dev_priv *dpriv,
return readl(dpriv->base_addr + CH0FTDA + dpriv->dev_id*4) == dpriv->ltda; return readl(dpriv->base_addr + CH0FTDA + dpriv->dev_id*4) == dpriv->ltda;
} }
int state_check(u32 state, struct dscc4_dev_priv *dpriv, struct net_device *dev, static int state_check(u32 state, struct dscc4_dev_priv *dpriv,
const char *msg) struct net_device *dev, const char *msg)
{ {
int ret = 0; int ret = 0;
...@@ -466,8 +466,9 @@ int state_check(u32 state, struct dscc4_dev_priv *dpriv, struct net_device *dev, ...@@ -466,8 +466,9 @@ int state_check(u32 state, struct dscc4_dev_priv *dpriv, struct net_device *dev,
return ret; return ret;
} }
void dscc4_tx_print(struct net_device *dev, struct dscc4_dev_priv *dpriv, static void dscc4_tx_print(struct net_device *dev,
char *msg) struct dscc4_dev_priv *dpriv,
char *msg)
{ {
printk(KERN_DEBUG "%s: tx_current=%02d tx_dirty=%02d (%s)\n", printk(KERN_DEBUG "%s: tx_current=%02d tx_dirty=%02d (%s)\n",
dev->name, dpriv->tx_current, dpriv->tx_dirty, msg); dev->name, dpriv->tx_current, dpriv->tx_dirty, msg);
...@@ -507,7 +508,8 @@ static void dscc4_release_ring(struct dscc4_dev_priv *dpriv) ...@@ -507,7 +508,8 @@ static void dscc4_release_ring(struct dscc4_dev_priv *dpriv)
} }
} }
inline int try_get_rx_skb(struct dscc4_dev_priv *dpriv, struct net_device *dev) static inline int try_get_rx_skb(struct dscc4_dev_priv *dpriv,
struct net_device *dev)
{ {
unsigned int dirty = dpriv->rx_dirty%RX_RING_SIZE; unsigned int dirty = dpriv->rx_dirty%RX_RING_SIZE;
struct RxFD *rx_fd = dpriv->rx_fd + dirty; struct RxFD *rx_fd = dpriv->rx_fd + dirty;
...@@ -1891,7 +1893,7 @@ static void dscc4_rx_irq(struct dscc4_pci_priv *priv, ...@@ -1891,7 +1893,7 @@ static void dscc4_rx_irq(struct dscc4_pci_priv *priv,
* It failed and locked solid. Thus the introduction of a dummy skb. * It failed and locked solid. Thus the introduction of a dummy skb.
* Problem is acknowledged in errata sheet DS5. Joy :o/ * Problem is acknowledged in errata sheet DS5. Joy :o/
*/ */
struct sk_buff *dscc4_init_dummy_skb(struct dscc4_dev_priv *dpriv) static struct sk_buff *dscc4_init_dummy_skb(struct dscc4_dev_priv *dpriv)
{ {
struct sk_buff *skb; struct sk_buff *skb;
......
...@@ -74,11 +74,11 @@ MODULE_LICENSE("GPL"); ...@@ -74,11 +74,11 @@ MODULE_LICENSE("GPL");
/* /*
* Modules parameters and associated varaibles * Modules parameters and associated varaibles
*/ */
int fst_txq_low = FST_LOW_WATER_MARK; static int fst_txq_low = FST_LOW_WATER_MARK;
int fst_txq_high = FST_HIGH_WATER_MARK; static int fst_txq_high = FST_HIGH_WATER_MARK;
int fst_max_reads = 7; static int fst_max_reads = 7;
int fst_excluded_cards = 0; static int fst_excluded_cards = 0;
int fst_excluded_list[FST_MAX_CARDS]; static int fst_excluded_list[FST_MAX_CARDS];
module_param(fst_txq_low, int, 0); module_param(fst_txq_low, int, 0);
module_param(fst_txq_high, int, 0); module_param(fst_txq_high, int, 0);
...@@ -572,13 +572,13 @@ static void do_bottom_half_rx(struct fst_card_info *card); ...@@ -572,13 +572,13 @@ static void do_bottom_half_rx(struct fst_card_info *card);
static void fst_process_tx_work_q(unsigned long work_q); static void fst_process_tx_work_q(unsigned long work_q);
static void fst_process_int_work_q(unsigned long work_q); static void fst_process_int_work_q(unsigned long work_q);
DECLARE_TASKLET(fst_tx_task, fst_process_tx_work_q, 0); static DECLARE_TASKLET(fst_tx_task, fst_process_tx_work_q, 0);
DECLARE_TASKLET(fst_int_task, fst_process_int_work_q, 0); static DECLARE_TASKLET(fst_int_task, fst_process_int_work_q, 0);
struct fst_card_info *fst_card_array[FST_MAX_CARDS]; static struct fst_card_info *fst_card_array[FST_MAX_CARDS];
spinlock_t fst_work_q_lock; static spinlock_t fst_work_q_lock;
u64 fst_work_txq; static u64 fst_work_txq;
u64 fst_work_intq; static u64 fst_work_intq;
static void static void
fst_q_work_item(u64 * queue, int card_index) fst_q_work_item(u64 * queue, int card_index)
...@@ -1497,7 +1497,7 @@ do_bottom_half_rx(struct fst_card_info *card) ...@@ -1497,7 +1497,7 @@ do_bottom_half_rx(struct fst_card_info *card)
* The interrupt service routine * The interrupt service routine
* Dev_id is our fst_card_info pointer * Dev_id is our fst_card_info pointer
*/ */
irqreturn_t static irqreturn_t
fst_intr(int irq, void *dev_id, struct pt_regs *regs) fst_intr(int irq, void *dev_id, struct pt_regs *regs)
{ {
struct fst_card_info *card; struct fst_card_info *card;
......
...@@ -330,7 +330,7 @@ static int pvc_close(struct net_device *dev) ...@@ -330,7 +330,7 @@ static int pvc_close(struct net_device *dev)
int pvc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) static int pvc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{ {
pvc_device *pvc = dev_to_pvc(dev); pvc_device *pvc = dev_to_pvc(dev);
fr_proto_pvc_info info; fr_proto_pvc_info info;
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
/* /*
* Prints out len, max to 80 octets using printk, 20 per line * Prints out len, max to 80 octets using printk, 20 per line
*/ */
void lmcConsoleLog(char *type, unsigned char *ucData, int iLen)
{
#ifdef DEBUG #ifdef DEBUG
#ifdef LMC_PACKET_LOG #ifdef LMC_PACKET_LOG
void lmcConsoleLog(char *type, unsigned char *ucData, int iLen)
{
int iNewLine = 1; int iNewLine = 1;
char str[80], *pstr; char str[80], *pstr;
...@@ -43,26 +43,24 @@ void lmcConsoleLog(char *type, unsigned char *ucData, int iLen) ...@@ -43,26 +43,24 @@ void lmcConsoleLog(char *type, unsigned char *ucData, int iLen)
} }
sprintf(pstr, "\n"); sprintf(pstr, "\n");
printk(str); printk(str);
}
#endif #endif
#endif #endif
}
#ifdef DEBUG #ifdef DEBUG
u_int32_t lmcEventLogIndex = 0; u_int32_t lmcEventLogIndex = 0;
u_int32_t lmcEventLogBuf[LMC_EVENTLOGSIZE * LMC_EVENTLOGARGS]; u_int32_t lmcEventLogBuf[LMC_EVENTLOGSIZE * LMC_EVENTLOGARGS];
#endif
void lmcEventLog (u_int32_t EventNum, u_int32_t arg2, u_int32_t arg3) void lmcEventLog (u_int32_t EventNum, u_int32_t arg2, u_int32_t arg3)
{ {
#ifdef DEBUG
lmcEventLogBuf[lmcEventLogIndex++] = EventNum; lmcEventLogBuf[lmcEventLogIndex++] = EventNum;
lmcEventLogBuf[lmcEventLogIndex++] = arg2; lmcEventLogBuf[lmcEventLogIndex++] = arg2;
lmcEventLogBuf[lmcEventLogIndex++] = arg3; lmcEventLogBuf[lmcEventLogIndex++] = arg3;
lmcEventLogBuf[lmcEventLogIndex++] = jiffies; lmcEventLogBuf[lmcEventLogIndex++] = jiffies;
lmcEventLogIndex &= (LMC_EVENTLOGSIZE * LMC_EVENTLOGARGS) - 1; lmcEventLogIndex &= (LMC_EVENTLOGSIZE * LMC_EVENTLOGARGS) - 1;
#endif
} }
#endif /* DEBUG */
void lmc_trace(struct net_device *dev, char *msg){ void lmc_trace(struct net_device *dev, char *msg){
#ifdef LMC_TRACE #ifdef LMC_TRACE
......
...@@ -47,14 +47,6 @@ ...@@ -47,14 +47,6 @@
* of the GNU General Public License version 2, incorporated herein by reference. * of the GNU General Public License version 2, incorporated herein by reference.
*/ */
/*
* For lack of a better place, put the SSI cable stuff here.
*/
char *lmc_t1_cables[] = {
"V.10/RS423", "EIA530A", "reserved", "X.21", "V.35",
"EIA449/EIA530/V.36", "V.28/EIA232", "none", NULL
};
/* /*
* protocol independent method. * protocol independent method.
*/ */
......
...@@ -472,24 +472,8 @@ enum pc300_loopback_cmds { ...@@ -472,24 +472,8 @@ enum pc300_loopback_cmds {
#ifdef __KERNEL__ #ifdef __KERNEL__
/* Function Prototypes */ /* Function Prototypes */
int dma_buf_write(pc300_t *, int, ucchar *, int);
int dma_buf_read(pc300_t *, int, struct sk_buff *);
void tx_dma_start(pc300_t *, int); void tx_dma_start(pc300_t *, int);
void rx_dma_start(pc300_t *, int);
void tx_dma_stop(pc300_t *, int);
void rx_dma_stop(pc300_t *, int);
int cpc_queue_xmit(struct sk_buff *, struct net_device *);
void cpc_net_rx(struct net_device *);
void cpc_sca_status(pc300_t *, int);
int cpc_change_mtu(struct net_device *, int);
int cpc_ioctl(struct net_device *, struct ifreq *, int);
int ch_config(pc300dev_t *);
int rx_config(pc300dev_t *);
int tx_config(pc300dev_t *);
void cpc_opench(pc300dev_t *);
void cpc_closech(pc300dev_t *);
int cpc_open(struct net_device *dev); int cpc_open(struct net_device *dev);
int cpc_close(struct net_device *dev);
int cpc_set_media(hdlc_device *, int); int cpc_set_media(hdlc_device *, int);
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
......
This diff is collapsed.
...@@ -112,10 +112,10 @@ typedef struct _st_cpc_tty_area { ...@@ -112,10 +112,10 @@ typedef struct _st_cpc_tty_area {
static struct tty_driver serial_drv; static struct tty_driver serial_drv;
/* local variables */ /* local variables */
st_cpc_tty_area cpc_tty_area[CPC_TTY_NPORTS]; static st_cpc_tty_area cpc_tty_area[CPC_TTY_NPORTS];
int cpc_tty_cnt=0; /* number of intrfaces configured with MLPPP */ static int cpc_tty_cnt = 0; /* number of intrfaces configured with MLPPP */
int cpc_tty_unreg_flag = 0; static int cpc_tty_unreg_flag = 0;
/* TTY functions prototype */ /* TTY functions prototype */
static int cpc_tty_open(struct tty_struct *tty, struct file *flip); static int cpc_tty_open(struct tty_struct *tty, struct file *flip);
...@@ -132,9 +132,9 @@ static void cpc_tty_trace(pc300dev_t *dev, char* buf, int len, char rxtx); ...@@ -132,9 +132,9 @@ static void cpc_tty_trace(pc300dev_t *dev, char* buf, int len, char rxtx);
static void cpc_tty_signal_off(pc300dev_t *pc300dev, unsigned char); static void cpc_tty_signal_off(pc300dev_t *pc300dev, unsigned char);
static void cpc_tty_signal_on(pc300dev_t *pc300dev, unsigned char); static void cpc_tty_signal_on(pc300dev_t *pc300dev, unsigned char);
int pc300_tiocmset(struct tty_struct *, struct file *, static int pc300_tiocmset(struct tty_struct *, struct file *,
unsigned int, unsigned int); unsigned int, unsigned int);
int pc300_tiocmget(struct tty_struct *, struct file *); static int pc300_tiocmget(struct tty_struct *, struct file *);
/* functions called by PC300 driver */ /* functions called by PC300 driver */
void cpc_tty_init(pc300dev_t *dev); void cpc_tty_init(pc300dev_t *dev);
...@@ -538,8 +538,8 @@ static int cpc_tty_chars_in_buffer(struct tty_struct *tty) ...@@ -538,8 +538,8 @@ static int cpc_tty_chars_in_buffer(struct tty_struct *tty)
return(0); return(0);
} }
int pc300_tiocmset(struct tty_struct *tty, struct file *file, static int pc300_tiocmset(struct tty_struct *tty, struct file *file,
unsigned int set, unsigned int clear) unsigned int set, unsigned int clear)
{ {
st_cpc_tty_area *cpc_tty; st_cpc_tty_area *cpc_tty;
...@@ -565,7 +565,7 @@ int pc300_tiocmset(struct tty_struct *tty, struct file *file, ...@@ -565,7 +565,7 @@ int pc300_tiocmset(struct tty_struct *tty, struct file *file,
return 0; return 0;
} }
int pc300_tiocmget(struct tty_struct *tty, struct file *file) static int pc300_tiocmget(struct tty_struct *tty, struct file *file)
{ {
unsigned int result; unsigned int result;
unsigned char status; unsigned char status;
......
...@@ -182,7 +182,7 @@ static char sdla_byte(struct net_device *dev, int addr) ...@@ -182,7 +182,7 @@ static char sdla_byte(struct net_device *dev, int addr)
return(byte); return(byte);
} }
void sdla_stop(struct net_device *dev) static void sdla_stop(struct net_device *dev)
{ {
struct frad_local *flp; struct frad_local *flp;
...@@ -209,7 +209,7 @@ void sdla_stop(struct net_device *dev) ...@@ -209,7 +209,7 @@ void sdla_stop(struct net_device *dev)
} }
} }
void sdla_start(struct net_device *dev) static void sdla_start(struct net_device *dev)
{ {
struct frad_local *flp; struct frad_local *flp;
...@@ -247,7 +247,7 @@ void sdla_start(struct net_device *dev) ...@@ -247,7 +247,7 @@ void sdla_start(struct net_device *dev)
* *
***************************************************/ ***************************************************/
int sdla_z80_poll(struct net_device *dev, int z80_addr, int jiffs, char resp1, char resp2) static int sdla_z80_poll(struct net_device *dev, int z80_addr, int jiffs, char resp1, char resp2)
{ {
unsigned long start, done, now; unsigned long start, done, now;
char resp, *temp; char resp, *temp;
...@@ -505,7 +505,7 @@ static int sdla_cmd(struct net_device *dev, int cmd, short dlci, short flags, ...@@ -505,7 +505,7 @@ static int sdla_cmd(struct net_device *dev, int cmd, short dlci, short flags,
static int sdla_reconfig(struct net_device *dev); static int sdla_reconfig(struct net_device *dev);
int sdla_activate(struct net_device *slave, struct net_device *master) static int sdla_activate(struct net_device *slave, struct net_device *master)
{ {
struct frad_local *flp; struct frad_local *flp;
int i; int i;
...@@ -527,7 +527,7 @@ int sdla_activate(struct net_device *slave, struct net_device *master) ...@@ -527,7 +527,7 @@ int sdla_activate(struct net_device *slave, struct net_device *master)
return(0); return(0);
} }
int sdla_deactivate(struct net_device *slave, struct net_device *master) static int sdla_deactivate(struct net_device *slave, struct net_device *master)
{ {
struct frad_local *flp; struct frad_local *flp;
int i; int i;
...@@ -549,7 +549,7 @@ int sdla_deactivate(struct net_device *slave, struct net_device *master) ...@@ -549,7 +549,7 @@ int sdla_deactivate(struct net_device *slave, struct net_device *master)
return(0); return(0);
} }
int sdla_assoc(struct net_device *slave, struct net_device *master) static int sdla_assoc(struct net_device *slave, struct net_device *master)
{ {
struct frad_local *flp; struct frad_local *flp;
int i; int i;
...@@ -585,7 +585,7 @@ int sdla_assoc(struct net_device *slave, struct net_device *master) ...@@ -585,7 +585,7 @@ int sdla_assoc(struct net_device *slave, struct net_device *master)
return(0); return(0);
} }
int sdla_deassoc(struct net_device *slave, struct net_device *master) static int sdla_deassoc(struct net_device *slave, struct net_device *master)
{ {
struct frad_local *flp; struct frad_local *flp;
int i; int i;
...@@ -613,7 +613,7 @@ int sdla_deassoc(struct net_device *slave, struct net_device *master) ...@@ -613,7 +613,7 @@ int sdla_deassoc(struct net_device *slave, struct net_device *master)
return(0); return(0);
} }
int sdla_dlci_conf(struct net_device *slave, struct net_device *master, int get) static int sdla_dlci_conf(struct net_device *slave, struct net_device *master, int get)
{ {
struct frad_local *flp; struct frad_local *flp;
struct dlci_local *dlp; struct dlci_local *dlp;
...@@ -1324,7 +1324,7 @@ NOTE: This is rather a useless action right now, as the ...@@ -1324,7 +1324,7 @@ NOTE: This is rather a useless action right now, as the
return(0); return(0);
} }
int sdla_change_mtu(struct net_device *dev, int new_mtu) static int sdla_change_mtu(struct net_device *dev, int new_mtu)
{ {
struct frad_local *flp; struct frad_local *flp;
...@@ -1337,7 +1337,7 @@ int sdla_change_mtu(struct net_device *dev, int new_mtu) ...@@ -1337,7 +1337,7 @@ int sdla_change_mtu(struct net_device *dev, int new_mtu)
return(-EOPNOTSUPP); return(-EOPNOTSUPP);
} }
int sdla_set_config(struct net_device *dev, struct ifmap *map) static int sdla_set_config(struct net_device *dev, struct ifmap *map)
{ {
struct frad_local *flp; struct frad_local *flp;
int i; int i;
......
...@@ -642,9 +642,7 @@ int sdla_mapmem (sdlahw_t* hw, unsigned long addr) ...@@ -642,9 +642,7 @@ int sdla_mapmem (sdlahw_t* hw, unsigned long addr)
* Enable interrupt generation. * Enable interrupt generation.
*/ */
EXPORT_SYMBOL(sdla_inten); static int sdla_inten (sdlahw_t* hw)
int sdla_inten (sdlahw_t* hw)
{ {
unsigned port = hw->port; unsigned port = hw->port;
int tmp, i; int tmp, i;
...@@ -698,8 +696,7 @@ int sdla_inten (sdlahw_t* hw) ...@@ -698,8 +696,7 @@ int sdla_inten (sdlahw_t* hw)
* Disable interrupt generation. * Disable interrupt generation.
*/ */
EXPORT_SYMBOL(sdla_intde); #if 0
int sdla_intde (sdlahw_t* hw) int sdla_intde (sdlahw_t* hw)
{ {
unsigned port = hw->port; unsigned port = hw->port;
...@@ -748,14 +745,13 @@ int sdla_intde (sdlahw_t* hw) ...@@ -748,14 +745,13 @@ int sdla_intde (sdlahw_t* hw)
} }
return 0; return 0;
} }
#endif /* 0 */
/*============================================================================ /*============================================================================
* Acknowledge SDLA hardware interrupt. * Acknowledge SDLA hardware interrupt.
*/ */
EXPORT_SYMBOL(sdla_intack); static int sdla_intack (sdlahw_t* hw)
int sdla_intack (sdlahw_t* hw)
{ {
unsigned port = hw->port; unsigned port = hw->port;
int tmp; int tmp;
...@@ -827,8 +823,7 @@ void read_S514_int_stat (sdlahw_t* hw, u32* int_status) ...@@ -827,8 +823,7 @@ void read_S514_int_stat (sdlahw_t* hw, u32* int_status)
* Generate an interrupt to adapter's CPU. * Generate an interrupt to adapter's CPU.
*/ */
EXPORT_SYMBOL(sdla_intr); #if 0
int sdla_intr (sdlahw_t* hw) int sdla_intr (sdlahw_t* hw)
{ {
unsigned port = hw->port; unsigned port = hw->port;
...@@ -863,6 +858,7 @@ int sdla_intr (sdlahw_t* hw) ...@@ -863,6 +858,7 @@ int sdla_intr (sdlahw_t* hw)
} }
return 0; return 0;
} }
#endif /* 0 */
/*============================================================================ /*============================================================================
* Execute Adapter Command. * Execute Adapter Command.
......
...@@ -221,7 +221,7 @@ static void sppp_clear_timeout(struct sppp *p) ...@@ -221,7 +221,7 @@ static void sppp_clear_timeout(struct sppp *p)
* here. * here.
*/ */
void sppp_input (struct net_device *dev, struct sk_buff *skb) static void sppp_input (struct net_device *dev, struct sk_buff *skb)
{ {
struct ppp_header *h; struct ppp_header *h;
struct sppp *sp = (struct sppp *)sppp_of(dev); struct sppp *sp = (struct sppp *)sppp_of(dev);
...@@ -355,8 +355,6 @@ void sppp_input (struct net_device *dev, struct sk_buff *skb) ...@@ -355,8 +355,6 @@ void sppp_input (struct net_device *dev, struct sk_buff *skb)
return; return;
} }
EXPORT_SYMBOL(sppp_input);
/* /*
* Handle transmit packets. * Handle transmit packets.
*/ */
...@@ -990,7 +988,7 @@ EXPORT_SYMBOL(sppp_reopen); ...@@ -990,7 +988,7 @@ EXPORT_SYMBOL(sppp_reopen);
* the mtu is out of range. * the mtu is out of range.
*/ */
int sppp_change_mtu(struct net_device *dev, int new_mtu) static int sppp_change_mtu(struct net_device *dev, int new_mtu)
{ {
if(new_mtu<128||new_mtu>PPP_MTU||(dev->flags&IFF_UP)) if(new_mtu<128||new_mtu>PPP_MTU||(dev->flags&IFF_UP))
return -EINVAL; return -EINVAL;
...@@ -998,8 +996,6 @@ int sppp_change_mtu(struct net_device *dev, int new_mtu) ...@@ -998,8 +996,6 @@ int sppp_change_mtu(struct net_device *dev, int new_mtu)
return 0; return 0;
} }
EXPORT_SYMBOL(sppp_change_mtu);
/** /**
* sppp_do_ioctl - Ioctl handler for ppp/hdlc * sppp_do_ioctl - Ioctl handler for ppp/hdlc
* @dev: Device subject to ioctl * @dev: Device subject to ioctl
...@@ -1456,7 +1452,7 @@ static int sppp_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_t ...@@ -1456,7 +1452,7 @@ static int sppp_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_t
return 0; return 0;
} }
struct packet_type sppp_packet_type = { static struct packet_type sppp_packet_type = {
.type = __constant_htons(ETH_P_WAN_PPP), .type = __constant_htons(ETH_P_WAN_PPP),
.func = sppp_rcv, .func = sppp_rcv,
}; };
......
...@@ -60,6 +60,5 @@ extern int cycx_peek(struct cycx_hw *hw, u32 addr, void *buf, u32 len); ...@@ -60,6 +60,5 @@ extern int cycx_peek(struct cycx_hw *hw, u32 addr, void *buf, u32 len);
extern int cycx_poke(struct cycx_hw *hw, u32 addr, void *buf, u32 len); extern int cycx_poke(struct cycx_hw *hw, u32 addr, void *buf, u32 len);
extern int cycx_exec(void __iomem *addr); extern int cycx_exec(void __iomem *addr);
extern void cycx_inten(struct cycx_hw *hw);
extern void cycx_intr(struct cycx_hw *hw); extern void cycx_intr(struct cycx_hw *hw);
#endif /* _CYCX_DRV_H */ #endif /* _CYCX_DRV_H */
...@@ -52,12 +52,8 @@ typedef struct sdlahw ...@@ -52,12 +52,8 @@ typedef struct sdlahw
extern int sdla_setup (sdlahw_t* hw, void* sfm, unsigned len); extern int sdla_setup (sdlahw_t* hw, void* sfm, unsigned len);
extern int sdla_down (sdlahw_t* hw); extern int sdla_down (sdlahw_t* hw);
extern int sdla_inten (sdlahw_t* hw);
extern int sdla_intde (sdlahw_t* hw);
extern int sdla_intack (sdlahw_t* hw);
extern void S514_intack (sdlahw_t* hw, u32 int_status); extern void S514_intack (sdlahw_t* hw, u32 int_status);
extern void read_S514_int_stat (sdlahw_t* hw, u32* int_status); extern void read_S514_int_stat (sdlahw_t* hw, u32* int_status);
extern int sdla_intr (sdlahw_t* hw);
extern int sdla_mapmem (sdlahw_t* hw, unsigned long addr); extern int sdla_mapmem (sdlahw_t* hw, unsigned long addr);
extern int sdla_peek (sdlahw_t* hw, unsigned long addr, void* buf, extern int sdla_peek (sdlahw_t* hw, unsigned long addr, void* buf,
unsigned len); unsigned len);
......
...@@ -86,7 +86,6 @@ static inline struct sppp *sppp_of(struct net_device *dev) ...@@ -86,7 +86,6 @@ static inline struct sppp *sppp_of(struct net_device *dev)
void sppp_attach (struct ppp_device *pd); void sppp_attach (struct ppp_device *pd);
void sppp_detach (struct net_device *dev); void sppp_detach (struct net_device *dev);
void sppp_input (struct net_device *dev, struct sk_buff *m);
int sppp_do_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd); int sppp_do_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd);
struct sk_buff *sppp_dequeue (struct net_device *dev); struct sk_buff *sppp_dequeue (struct net_device *dev);
int sppp_isempty (struct net_device *dev); int sppp_isempty (struct net_device *dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment