Commit 39ef01e0 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

mbcs: Remove lots of global symbols

MBCS has a collection of things that searches say are not used elsewhere
and could be static.  If this is the case they should be static, if not
then someone at SGI should rename things like "soft_list" so they don't
pollute the global namespace with generic names...
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Acked-by: default avatarBruce Losure <blosure@sgi.com>
Cc: Jes Sorensen <jes@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4004c69a
...@@ -39,14 +39,14 @@ ...@@ -39,14 +39,14 @@
#else #else
#define DBG(fmt...) #define DBG(fmt...)
#endif #endif
int mbcs_major; static int mbcs_major;
LIST_HEAD(soft_list); static LIST_HEAD(soft_list);
/* /*
* file operations * file operations
*/ */
const struct file_operations mbcs_ops = { static const struct file_operations mbcs_ops = {
.open = mbcs_open, .open = mbcs_open,
.llseek = mbcs_sram_llseek, .llseek = mbcs_sram_llseek,
.read = mbcs_sram_read, .read = mbcs_sram_read,
...@@ -377,7 +377,7 @@ dmaread_exit: ...@@ -377,7 +377,7 @@ dmaread_exit:
return rv; return rv;
} }
int mbcs_open(struct inode *ip, struct file *fp) static int mbcs_open(struct inode *ip, struct file *fp)
{ {
struct mbcs_soft *soft; struct mbcs_soft *soft;
int minor; int minor;
...@@ -394,7 +394,7 @@ int mbcs_open(struct inode *ip, struct file *fp) ...@@ -394,7 +394,7 @@ int mbcs_open(struct inode *ip, struct file *fp)
return -ENODEV; return -ENODEV;
} }
ssize_t mbcs_sram_read(struct file * fp, char __user *buf, size_t len, loff_t * off) static ssize_t mbcs_sram_read(struct file * fp, char __user *buf, size_t len, loff_t * off)
{ {
struct cx_dev *cx_dev = fp->private_data; struct cx_dev *cx_dev = fp->private_data;
struct mbcs_soft *soft = cx_dev->soft; struct mbcs_soft *soft = cx_dev->soft;
...@@ -418,7 +418,7 @@ ssize_t mbcs_sram_read(struct file * fp, char __user *buf, size_t len, loff_t * ...@@ -418,7 +418,7 @@ ssize_t mbcs_sram_read(struct file * fp, char __user *buf, size_t len, loff_t *
return rv; return rv;
} }
ssize_t static ssize_t
mbcs_sram_write(struct file * fp, const char __user *buf, size_t len, loff_t * off) mbcs_sram_write(struct file * fp, const char __user *buf, size_t len, loff_t * off)
{ {
struct cx_dev *cx_dev = fp->private_data; struct cx_dev *cx_dev = fp->private_data;
...@@ -443,7 +443,7 @@ mbcs_sram_write(struct file * fp, const char __user *buf, size_t len, loff_t * o ...@@ -443,7 +443,7 @@ mbcs_sram_write(struct file * fp, const char __user *buf, size_t len, loff_t * o
return rv; return rv;
} }
loff_t mbcs_sram_llseek(struct file * filp, loff_t off, int whence) static loff_t mbcs_sram_llseek(struct file * filp, loff_t off, int whence)
{ {
loff_t newpos; loff_t newpos;
...@@ -491,7 +491,7 @@ static void mbcs_gscr_pioaddr_set(struct mbcs_soft *soft) ...@@ -491,7 +491,7 @@ static void mbcs_gscr_pioaddr_set(struct mbcs_soft *soft)
soft->gscr_addr = mbcs_pioaddr(soft, MBCS_GSCR_START); soft->gscr_addr = mbcs_pioaddr(soft, MBCS_GSCR_START);
} }
int mbcs_gscr_mmap(struct file *fp, struct vm_area_struct *vma) static int mbcs_gscr_mmap(struct file *fp, struct vm_area_struct *vma)
{ {
struct cx_dev *cx_dev = fp->private_data; struct cx_dev *cx_dev = fp->private_data;
struct mbcs_soft *soft = cx_dev->soft; struct mbcs_soft *soft = cx_dev->soft;
...@@ -793,7 +793,7 @@ static int mbcs_remove(struct cx_dev *dev) ...@@ -793,7 +793,7 @@ static int mbcs_remove(struct cx_dev *dev)
return 0; return 0;
} }
const struct cx_device_id __devinitdata mbcs_id_table[] = { static const struct cx_device_id __devinitdata mbcs_id_table[] = {
{ {
.part_num = MBCS_PART_NUM, .part_num = MBCS_PART_NUM,
.mfg_num = MBCS_MFG_NUM, .mfg_num = MBCS_MFG_NUM,
...@@ -807,7 +807,7 @@ const struct cx_device_id __devinitdata mbcs_id_table[] = { ...@@ -807,7 +807,7 @@ const struct cx_device_id __devinitdata mbcs_id_table[] = {
MODULE_DEVICE_TABLE(cx, mbcs_id_table); MODULE_DEVICE_TABLE(cx, mbcs_id_table);
struct cx_drv mbcs_driver = { static struct cx_drv mbcs_driver = {
.name = DEVICE_NAME, .name = DEVICE_NAME,
.id_table = mbcs_id_table, .id_table = mbcs_id_table,
.probe = mbcs_probe, .probe = mbcs_probe,
......
...@@ -542,12 +542,12 @@ struct mbcs_soft { ...@@ -542,12 +542,12 @@ struct mbcs_soft {
struct semaphore algolock; struct semaphore algolock;
}; };
extern int mbcs_open(struct inode *ip, struct file *fp); static int mbcs_open(struct inode *ip, struct file *fp);
extern ssize_t mbcs_sram_read(struct file *fp, char __user *buf, size_t len, static ssize_t mbcs_sram_read(struct file *fp, char __user *buf, size_t len,
loff_t * off); loff_t * off);
extern ssize_t mbcs_sram_write(struct file *fp, const char __user *buf, size_t len, static ssize_t mbcs_sram_write(struct file *fp, const char __user *buf, size_t len,
loff_t * off); loff_t * off);
extern loff_t mbcs_sram_llseek(struct file *filp, loff_t off, int whence); static loff_t mbcs_sram_llseek(struct file *filp, loff_t off, int whence);
extern int mbcs_gscr_mmap(struct file *fp, struct vm_area_struct *vma); static int mbcs_gscr_mmap(struct file *fp, struct vm_area_struct *vma);
#endif // __MBCS_H__ #endif // __MBCS_H__
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