diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-05-05 19:16:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-05 19:36:47 -0400 |
commit | 75c96f85845a6707b0f9916cb263cb3584f7d48f (patch) | |
tree | 45a64d1c9bb71d7093db3a11e0f21465c2e3dec6 | |
parent | 5e198d94dd0c3ec7f6138229e2e412c2c6268c38 (diff) |
[PATCH] make some things static
This patch makes some needlessly global identifiers static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Arjan van de Ven <arjanv@infradead.org>
Acked-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
38 files changed, 93 insertions, 86 deletions
diff --git a/drivers/block/rd.c b/drivers/block/rd.c index 145c1fbffe01..f8a8b68dced0 100644 --- a/drivers/block/rd.c +++ b/drivers/block/rd.c | |||
@@ -74,7 +74,7 @@ static struct request_queue *rd_queue[CONFIG_BLK_DEV_RAM_COUNT]; | |||
74 | * architecture-specific setup routine (from the stored boot sector | 74 | * architecture-specific setup routine (from the stored boot sector |
75 | * information). | 75 | * information). |
76 | */ | 76 | */ |
77 | int rd_size = CONFIG_BLK_DEV_RAM_SIZE; /* Size of the RAM disks */ | 77 | static int rd_size = CONFIG_BLK_DEV_RAM_SIZE; /* Size of the RAM disks */ |
78 | /* | 78 | /* |
79 | * It would be very desirable to have a soft-blocksize (that in the case | 79 | * It would be very desirable to have a soft-blocksize (that in the case |
80 | * of the ramdisk driver is also the hardblocksize ;) of PAGE_SIZE because | 80 | * of the ramdisk driver is also the hardblocksize ;) of PAGE_SIZE because |
diff --git a/drivers/cdrom/cdu31a.c b/drivers/cdrom/cdu31a.c index 647a71b12a2a..ac96de15d833 100644 --- a/drivers/cdrom/cdu31a.c +++ b/drivers/cdrom/cdu31a.c | |||
@@ -292,7 +292,7 @@ module_param(cdu31a_irq, int, 0); | |||
292 | 292 | ||
293 | /* The interrupt handler will wake this queue up when it gets an | 293 | /* The interrupt handler will wake this queue up when it gets an |
294 | interrupts. */ | 294 | interrupts. */ |
295 | DECLARE_WAIT_QUEUE_HEAD(cdu31a_irq_wait); | 295 | static DECLARE_WAIT_QUEUE_HEAD(cdu31a_irq_wait); |
296 | static int irq_flag = 0; | 296 | static int irq_flag = 0; |
297 | 297 | ||
298 | static int curr_control_reg = 0; /* Current value of the control register */ | 298 | static int curr_control_reg = 0; /* Current value of the control register */ |
@@ -2947,7 +2947,7 @@ static int scd_block_media_changed(struct gendisk *disk) | |||
2947 | return cdrom_media_changed(&scd_info); | 2947 | return cdrom_media_changed(&scd_info); |
2948 | } | 2948 | } |
2949 | 2949 | ||
2950 | struct block_device_operations scd_bdops = | 2950 | static struct block_device_operations scd_bdops = |
2951 | { | 2951 | { |
2952 | .owner = THIS_MODULE, | 2952 | .owner = THIS_MODULE, |
2953 | .open = scd_block_open, | 2953 | .open = scd_block_open, |
@@ -3216,7 +3216,7 @@ errout3: | |||
3216 | } | 3216 | } |
3217 | 3217 | ||
3218 | 3218 | ||
3219 | void __exit cdu31a_exit(void) | 3219 | static void __exit cdu31a_exit(void) |
3220 | { | 3220 | { |
3221 | del_gendisk(scd_gendisk); | 3221 | del_gendisk(scd_gendisk); |
3222 | put_disk(scd_gendisk); | 3222 | put_disk(scd_gendisk); |
diff --git a/drivers/cdrom/mcdx.c b/drivers/cdrom/mcdx.c index ccde7ab491d4..07bbd24e3c18 100644 --- a/drivers/cdrom/mcdx.c +++ b/drivers/cdrom/mcdx.c | |||
@@ -107,20 +107,20 @@ static const char *mcdx_c_version | |||
107 | The _direct_ size is the number of sectors we're allowed to skip | 107 | The _direct_ size is the number of sectors we're allowed to skip |
108 | directly (performing a read instead of requesting the new sector | 108 | directly (performing a read instead of requesting the new sector |
109 | needed */ | 109 | needed */ |
110 | const int REQUEST_SIZE = 800; /* should be less then 255 * 4 */ | 110 | static const int REQUEST_SIZE = 800; /* should be less then 255 * 4 */ |
111 | const int DIRECT_SIZE = 400; /* should be less then REQUEST_SIZE */ | 111 | static const int DIRECT_SIZE = 400; /* should be less then REQUEST_SIZE */ |
112 | 112 | ||
113 | enum drivemodes { TOC, DATA, RAW, COOKED }; | 113 | enum drivemodes { TOC, DATA, RAW, COOKED }; |
114 | enum datamodes { MODE0, MODE1, MODE2 }; | 114 | enum datamodes { MODE0, MODE1, MODE2 }; |
115 | enum resetmodes { SOFT, HARD }; | 115 | enum resetmodes { SOFT, HARD }; |
116 | 116 | ||
117 | const int SINGLE = 0x01; /* single speed drive (FX001S, LU) */ | 117 | static const int SINGLE = 0x01; /* single speed drive (FX001S, LU) */ |
118 | const int DOUBLE = 0x02; /* double speed drive (FX001D, ..? */ | 118 | static const int DOUBLE = 0x02; /* double speed drive (FX001D, ..? */ |
119 | const int DOOR = 0x04; /* door locking capability */ | 119 | static const int DOOR = 0x04; /* door locking capability */ |
120 | const int MULTI = 0x08; /* multi session capability */ | 120 | static const int MULTI = 0x08; /* multi session capability */ |
121 | 121 | ||
122 | const unsigned char READ1X = 0xc0; | 122 | static const unsigned char READ1X = 0xc0; |
123 | const unsigned char READ2X = 0xc1; | 123 | static const unsigned char READ2X = 0xc1; |
124 | 124 | ||
125 | 125 | ||
126 | /* DECLARATIONS ****************************************************/ | 126 | /* DECLARATIONS ****************************************************/ |
@@ -210,9 +210,7 @@ struct s_drive_stuff { | |||
210 | repeated here to show what's going on. And to sense, if they're | 210 | repeated here to show what's going on. And to sense, if they're |
211 | changed elsewhere. */ | 211 | changed elsewhere. */ |
212 | 212 | ||
213 | /* declared in blk.h */ | 213 | static int mcdx_init(void); |
214 | int mcdx_init(void); | ||
215 | void do_mcdx_request(request_queue_t * q); | ||
216 | 214 | ||
217 | static int mcdx_block_open(struct inode *inode, struct file *file) | 215 | static int mcdx_block_open(struct inode *inode, struct file *file) |
218 | { | 216 | { |
@@ -569,7 +567,7 @@ static int mcdx_audio_ioctl(struct cdrom_device_info *cdi, | |||
569 | } | 567 | } |
570 | } | 568 | } |
571 | 569 | ||
572 | void do_mcdx_request(request_queue_t * q) | 570 | static void do_mcdx_request(request_queue_t * q) |
573 | { | 571 | { |
574 | struct s_drive_stuff *stuffp; | 572 | struct s_drive_stuff *stuffp; |
575 | struct request *req; | 573 | struct request *req; |
@@ -1028,7 +1026,7 @@ int __mcdx_init(void) | |||
1028 | return 0; | 1026 | return 0; |
1029 | } | 1027 | } |
1030 | 1028 | ||
1031 | void __exit mcdx_exit(void) | 1029 | static void __exit mcdx_exit(void) |
1032 | { | 1030 | { |
1033 | int i; | 1031 | int i; |
1034 | 1032 | ||
@@ -1075,7 +1073,7 @@ module_exit(mcdx_exit); | |||
1075 | 1073 | ||
1076 | /* Support functions ************************************************/ | 1074 | /* Support functions ************************************************/ |
1077 | 1075 | ||
1078 | int __init mcdx_init_drive(int drive) | 1076 | static int __init mcdx_init_drive(int drive) |
1079 | { | 1077 | { |
1080 | struct s_version version; | 1078 | struct s_version version; |
1081 | struct gendisk *disk; | 1079 | struct gendisk *disk; |
@@ -1261,7 +1259,7 @@ int __init mcdx_init_drive(int drive) | |||
1261 | return 0; | 1259 | return 0; |
1262 | } | 1260 | } |
1263 | 1261 | ||
1264 | int __init mcdx_init(void) | 1262 | static int __init mcdx_init(void) |
1265 | { | 1263 | { |
1266 | int drive; | 1264 | int drive; |
1267 | xwarn("Version 2.14(hs) \n"); | 1265 | xwarn("Version 2.14(hs) \n"); |
diff --git a/drivers/cdrom/sbpcd.c b/drivers/cdrom/sbpcd.c index fc2c433f6a29..452d34675159 100644 --- a/drivers/cdrom/sbpcd.c +++ b/drivers/cdrom/sbpcd.c | |||
@@ -5895,7 +5895,7 @@ int __init sbpcd_init(void) | |||
5895 | } | 5895 | } |
5896 | /*==========================================================================*/ | 5896 | /*==========================================================================*/ |
5897 | #ifdef MODULE | 5897 | #ifdef MODULE |
5898 | void sbpcd_exit(void) | 5898 | static void sbpcd_exit(void) |
5899 | { | 5899 | { |
5900 | int j; | 5900 | int j; |
5901 | 5901 | ||
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c index 3ce51c6a1b18..7b19e02f112f 100644 --- a/drivers/char/keyboard.c +++ b/drivers/char/keyboard.c | |||
@@ -1026,7 +1026,8 @@ static void kbd_rawcode(unsigned char data) | |||
1026 | put_queue(vc, data); | 1026 | put_queue(vc, data); |
1027 | } | 1027 | } |
1028 | 1028 | ||
1029 | void kbd_keycode(unsigned int keycode, int down, int hw_raw, struct pt_regs *regs) | 1029 | static void kbd_keycode(unsigned int keycode, int down, |
1030 | int hw_raw, struct pt_regs *regs) | ||
1030 | { | 1031 | { |
1031 | struct vc_data *vc = vc_cons[fg_console].d; | 1032 | struct vc_data *vc = vc_cons[fg_console].d; |
1032 | unsigned short keysym, *key_map; | 1033 | unsigned short keysym, *key_map; |
diff --git a/drivers/md/md.c b/drivers/md/md.c index 97af857d8a88..d899204d3743 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -957,7 +957,7 @@ static void super_1_sync(mddev_t *mddev, mdk_rdev_t *rdev) | |||
957 | } | 957 | } |
958 | 958 | ||
959 | 959 | ||
960 | struct super_type super_types[] = { | 960 | static struct super_type super_types[] = { |
961 | [0] = { | 961 | [0] = { |
962 | .name = "0.90.0", | 962 | .name = "0.90.0", |
963 | .owner = THIS_MODULE, | 963 | .owner = THIS_MODULE, |
@@ -2740,7 +2740,7 @@ static struct block_device_operations md_fops = | |||
2740 | .revalidate_disk= md_revalidate, | 2740 | .revalidate_disk= md_revalidate, |
2741 | }; | 2741 | }; |
2742 | 2742 | ||
2743 | int md_thread(void * arg) | 2743 | static int md_thread(void * arg) |
2744 | { | 2744 | { |
2745 | mdk_thread_t *thread = arg; | 2745 | mdk_thread_t *thread = arg; |
2746 | 2746 | ||
@@ -3232,7 +3232,7 @@ void md_handle_safemode(mddev_t *mddev) | |||
3232 | } | 3232 | } |
3233 | 3233 | ||
3234 | 3234 | ||
3235 | DECLARE_WAIT_QUEUE_HEAD(resync_wait); | 3235 | static DECLARE_WAIT_QUEUE_HEAD(resync_wait); |
3236 | 3236 | ||
3237 | #define SYNC_MARKS 10 | 3237 | #define SYNC_MARKS 10 |
3238 | #define SYNC_MARK_STEP (3*HZ) | 3238 | #define SYNC_MARK_STEP (3*HZ) |
@@ -3575,8 +3575,8 @@ void md_check_recovery(mddev_t *mddev) | |||
3575 | } | 3575 | } |
3576 | } | 3576 | } |
3577 | 3577 | ||
3578 | int md_notify_reboot(struct notifier_block *this, | 3578 | static int md_notify_reboot(struct notifier_block *this, |
3579 | unsigned long code, void *x) | 3579 | unsigned long code, void *x) |
3580 | { | 3580 | { |
3581 | struct list_head *tmp; | 3581 | struct list_head *tmp; |
3582 | mddev_t *mddev; | 3582 | mddev_t *mddev; |
@@ -3599,7 +3599,7 @@ int md_notify_reboot(struct notifier_block *this, | |||
3599 | return NOTIFY_DONE; | 3599 | return NOTIFY_DONE; |
3600 | } | 3600 | } |
3601 | 3601 | ||
3602 | struct notifier_block md_notifier = { | 3602 | static struct notifier_block md_notifier = { |
3603 | .notifier_call = md_notify_reboot, | 3603 | .notifier_call = md_notify_reboot, |
3604 | .next = NULL, | 3604 | .next = NULL, |
3605 | .priority = INT_MAX, /* before any real devices */ | 3605 | .priority = INT_MAX, /* before any real devices */ |
@@ -3616,7 +3616,7 @@ static void md_geninit(void) | |||
3616 | p->proc_fops = &md_seq_fops; | 3616 | p->proc_fops = &md_seq_fops; |
3617 | } | 3617 | } |
3618 | 3618 | ||
3619 | int __init md_init(void) | 3619 | static int __init md_init(void) |
3620 | { | 3620 | { |
3621 | int minor; | 3621 | int minor; |
3622 | 3622 | ||
diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c index 1891e4930dcc..4e4bfde3db5d 100644 --- a/drivers/md/multipath.c +++ b/drivers/md/multipath.c | |||
@@ -103,7 +103,8 @@ static void multipath_end_bh_io (struct multipath_bh *mp_bh, int err) | |||
103 | mempool_free(mp_bh, conf->pool); | 103 | mempool_free(mp_bh, conf->pool); |
104 | } | 104 | } |
105 | 105 | ||
106 | int multipath_end_request(struct bio *bio, unsigned int bytes_done, int error) | 106 | static int multipath_end_request(struct bio *bio, unsigned int bytes_done, |
107 | int error) | ||
107 | { | 108 | { |
108 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 109 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
109 | struct multipath_bh * mp_bh = (struct multipath_bh *)(bio->bi_private); | 110 | struct multipath_bh * mp_bh = (struct multipath_bh *)(bio->bi_private); |
diff --git a/drivers/net/appletalk/cops_ffdrv.h b/drivers/net/appletalk/cops_ffdrv.h index 4131b4a7a65b..31cf8c9c947f 100644 --- a/drivers/net/appletalk/cops_ffdrv.h +++ b/drivers/net/appletalk/cops_ffdrv.h | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #ifdef CONFIG_COPS_DAYNA | 29 | #ifdef CONFIG_COPS_DAYNA |
30 | 30 | ||
31 | unsigned char ffdrv_code[] = { | 31 | static const unsigned char ffdrv_code[] = { |
32 | 58,3,0,50,228,149,33,255,255,34,226,149, | 32 | 58,3,0,50,228,149,33,255,255,34,226,149, |
33 | 249,17,40,152,33,202,154,183,237,82,77,68, | 33 | 249,17,40,152,33,202,154,183,237,82,77,68, |
34 | 11,107,98,19,54,0,237,176,175,50,80,0, | 34 | 11,107,98,19,54,0,237,176,175,50,80,0, |
diff --git a/drivers/net/appletalk/cops_ltdrv.h b/drivers/net/appletalk/cops_ltdrv.h index 05de66dd9206..4afb8e18ba65 100644 --- a/drivers/net/appletalk/cops_ltdrv.h +++ b/drivers/net/appletalk/cops_ltdrv.h | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #ifdef CONFIG_COPS_TANGENT | 28 | #ifdef CONFIG_COPS_TANGENT |
29 | 29 | ||
30 | unsigned char ltdrv_code[] = { | 30 | static const unsigned char ltdrv_code[] = { |
31 | 58,3,0,50,148,10,33,143,15,62,85,119, | 31 | 58,3,0,50,148,10,33,143,15,62,85,119, |
32 | 190,32,9,62,170,119,190,32,3,35,24,241, | 32 | 190,32,9,62,170,119,190,32,3,35,24,241, |
33 | 34,146,10,249,17,150,10,33,143,15,183,237, | 33 | 34,146,10,249,17,150,10,33,143,15,183,237, |
diff --git a/drivers/net/arcnet/capmode.c b/drivers/net/arcnet/capmode.c index 16e155b04129..66485585ab39 100644 --- a/drivers/net/arcnet/capmode.c +++ b/drivers/net/arcnet/capmode.c | |||
@@ -48,7 +48,7 @@ static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, | |||
48 | static int ack_tx(struct net_device *dev, int acked); | 48 | static int ack_tx(struct net_device *dev, int acked); |
49 | 49 | ||
50 | 50 | ||
51 | struct ArcProto capmode_proto = | 51 | static struct ArcProto capmode_proto = |
52 | { | 52 | { |
53 | 'r', | 53 | 'r', |
54 | XMTU, | 54 | XMTU, |
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index 208a68ceb63b..7705070191d9 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -1312,7 +1312,7 @@ int fb_get_options(char *name, char **option) | |||
1312 | * Returns zero. | 1312 | * Returns zero. |
1313 | * | 1313 | * |
1314 | */ | 1314 | */ |
1315 | int __init video_setup(char *options) | 1315 | static int __init video_setup(char *options) |
1316 | { | 1316 | { |
1317 | int i, global = 0; | 1317 | int i, global = 0; |
1318 | 1318 | ||
diff --git a/drivers/video/fbsysfs.c b/drivers/video/fbsysfs.c index 2bdda4010b81..c78a2c5961d3 100644 --- a/drivers/video/fbsysfs.c +++ b/drivers/video/fbsysfs.c | |||
@@ -354,7 +354,7 @@ static ssize_t show_pan(struct class_device *class_device, char *buf) | |||
354 | fb_info->var.xoffset); | 354 | fb_info->var.xoffset); |
355 | } | 355 | } |
356 | 356 | ||
357 | struct class_device_attribute class_device_attrs[] = { | 357 | static struct class_device_attribute class_device_attrs[] = { |
358 | __ATTR(bits_per_pixel, S_IRUGO|S_IWUSR, show_bpp, store_bpp), | 358 | __ATTR(bits_per_pixel, S_IRUGO|S_IWUSR, show_bpp, store_bpp), |
359 | __ATTR(blank, S_IRUGO|S_IWUSR, show_blank, store_blank), | 359 | __ATTR(blank, S_IRUGO|S_IWUSR, show_blank, store_blank), |
360 | __ATTR(color_map, S_IRUGO|S_IWUSR, show_cmap, store_cmap), | 360 | __ATTR(color_map, S_IRUGO|S_IWUSR, show_cmap, store_cmap), |
diff --git a/drivers/video/sis/init.c b/drivers/video/sis/init.c index 1994054d45ff..ecfd72178dbb 100644 --- a/drivers/video/sis/init.c +++ b/drivers/video/sis/init.c | |||
@@ -1384,7 +1384,7 @@ SiSInitPCIetc(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) | |||
1384 | /* HELPER: SetLVDSetc */ | 1384 | /* HELPER: SetLVDSetc */ |
1385 | /*********************************************/ | 1385 | /*********************************************/ |
1386 | 1386 | ||
1387 | void | 1387 | static void |
1388 | SiSSetLVDSetc(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) | 1388 | SiSSetLVDSetc(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) |
1389 | { | 1389 | { |
1390 | USHORT temp; | 1390 | USHORT temp; |
@@ -1625,7 +1625,7 @@ SiS_ResetSegmentRegisters(SiS_Private *SiS_Pr,PSIS_HW_INFO HwInfo) | |||
1625 | /* HELPER: GetVBType */ | 1625 | /* HELPER: GetVBType */ |
1626 | /*********************************************/ | 1626 | /*********************************************/ |
1627 | 1627 | ||
1628 | void | 1628 | static void |
1629 | SiS_GetVBType(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) | 1629 | SiS_GetVBType(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) |
1630 | { | 1630 | { |
1631 | USHORT flag=0, rev=0, nolcd=0, p4_0f, p4_25, p4_27; | 1631 | USHORT flag=0, rev=0, nolcd=0, p4_0f, p4_25, p4_27; |
diff --git a/drivers/video/sis/init.h b/drivers/video/sis/init.h index 35030d300431..7e36b7ac1470 100644 --- a/drivers/video/sis/init.h +++ b/drivers/video/sis/init.h | |||
@@ -2394,11 +2394,9 @@ void SiS_SetRegOR(SISIOADDRESS Port,USHORT Index, USHORT DataOR); | |||
2394 | void SiS_DisplayOn(SiS_Private *SiS_Pr); | 2394 | void SiS_DisplayOn(SiS_Private *SiS_Pr); |
2395 | void SiS_DisplayOff(SiS_Private *SiS_Pr); | 2395 | void SiS_DisplayOff(SiS_Private *SiS_Pr); |
2396 | void SiSRegInit(SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr); | 2396 | void SiSRegInit(SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr); |
2397 | void SiSSetLVDSetc(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | ||
2398 | BOOLEAN SiSDetermineROMLayout661(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | 2397 | BOOLEAN SiSDetermineROMLayout661(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); |
2399 | void SiS_SetEnableDstn(SiS_Private *SiS_Pr, int enable); | 2398 | void SiS_SetEnableDstn(SiS_Private *SiS_Pr, int enable); |
2400 | void SiS_SetEnableFstn(SiS_Private *SiS_Pr, int enable); | 2399 | void SiS_SetEnableFstn(SiS_Private *SiS_Pr, int enable); |
2401 | void SiS_GetVBType(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | ||
2402 | BOOLEAN SiS_SearchModeID(SiS_Private *SiS_Pr, USHORT *ModeNo, USHORT *ModeIdIndex); | 2400 | BOOLEAN SiS_SearchModeID(SiS_Private *SiS_Pr, USHORT *ModeNo, USHORT *ModeIdIndex); |
2403 | UCHAR SiS_GetModePtr(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex); | 2401 | UCHAR SiS_GetModePtr(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex); |
2404 | USHORT SiS_GetColorDepth(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex); | 2402 | USHORT SiS_GetColorDepth(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex); |
@@ -2444,7 +2442,6 @@ extern void SiS_GetLCDResInfo(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT Mod | |||
2444 | extern void SiS_SetYPbPr(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | 2442 | extern void SiS_SetYPbPr(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); |
2445 | extern void SiS_SetTVMode(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex, PSIS_HW_INFO HwInfo); | 2443 | extern void SiS_SetTVMode(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex, PSIS_HW_INFO HwInfo); |
2446 | extern void SiS_UnLockCRT2(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | 2444 | extern void SiS_UnLockCRT2(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); |
2447 | extern void SiS_LockCRT2(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | ||
2448 | extern void SiS_DisableBridge(SiS_Private *, PSIS_HW_INFO); | 2445 | extern void SiS_DisableBridge(SiS_Private *, PSIS_HW_INFO); |
2449 | extern BOOLEAN SiS_SetCRT2Group(SiS_Private *, PSIS_HW_INFO, USHORT); | 2446 | extern BOOLEAN SiS_SetCRT2Group(SiS_Private *, PSIS_HW_INFO, USHORT); |
2450 | extern USHORT SiS_GetRatePtr(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex, | 2447 | extern USHORT SiS_GetRatePtr(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex, |
diff --git a/drivers/video/sis/init301.c b/drivers/video/sis/init301.c index 2bc5b8097910..274dacd54bb8 100644 --- a/drivers/video/sis/init301.c +++ b/drivers/video/sis/init301.c | |||
@@ -86,6 +86,7 @@ | |||
86 | #define SiS_I2CDELAYSHORT 150 | 86 | #define SiS_I2CDELAYSHORT 150 |
87 | 87 | ||
88 | static USHORT SiS_GetBIOSLCDResInfo(SiS_Private *SiS_Pr); | 88 | static USHORT SiS_GetBIOSLCDResInfo(SiS_Private *SiS_Pr); |
89 | static void SiS_SetCH70xx(SiS_Private *SiS_Pr, USHORT tempbx); | ||
89 | 90 | ||
90 | /*********************************************/ | 91 | /*********************************************/ |
91 | /* HELPER: Lock/Unlock CRT2 */ | 92 | /* HELPER: Lock/Unlock CRT2 */ |
@@ -100,7 +101,7 @@ SiS_UnLockCRT2(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) | |||
100 | SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x24,0x01); | 101 | SiS_SetRegOR(SiS_Pr->SiS_Part1Port,0x24,0x01); |
101 | } | 102 | } |
102 | 103 | ||
103 | void | 104 | static void |
104 | SiS_LockCRT2(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) | 105 | SiS_LockCRT2(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) |
105 | { | 106 | { |
106 | if(HwInfo->jChipType >= SIS_315H) | 107 | if(HwInfo->jChipType >= SIS_315H) |
@@ -4236,7 +4237,7 @@ SiS_DisableBridge(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) | |||
4236 | * from outside the context of a mode switch! | 4237 | * from outside the context of a mode switch! |
4237 | * MUST call getVBType before calling this | 4238 | * MUST call getVBType before calling this |
4238 | */ | 4239 | */ |
4239 | void | 4240 | static void |
4240 | SiS_EnableBridge(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) | 4241 | SiS_EnableBridge(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo) |
4241 | { | 4242 | { |
4242 | USHORT temp=0,tempah; | 4243 | USHORT temp=0,tempah; |
@@ -9219,7 +9220,7 @@ SiS_SetCH701x(SiS_Private *SiS_Pr, USHORT tempbx) | |||
9219 | SiS_SetChReg(SiS_Pr, tempbx, 0); | 9220 | SiS_SetChReg(SiS_Pr, tempbx, 0); |
9220 | } | 9221 | } |
9221 | 9222 | ||
9222 | void | 9223 | static void |
9223 | SiS_SetCH70xx(SiS_Private *SiS_Pr, USHORT tempbx) | 9224 | SiS_SetCH70xx(SiS_Private *SiS_Pr, USHORT tempbx) |
9224 | { | 9225 | { |
9225 | if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) | 9226 | if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) |
@@ -9323,7 +9324,7 @@ SiS_GetCH701x(SiS_Private *SiS_Pr, USHORT tempbx) | |||
9323 | 9324 | ||
9324 | /* Read from Chrontel 70xx */ | 9325 | /* Read from Chrontel 70xx */ |
9325 | /* Parameter is [Register no (S7-S0)] */ | 9326 | /* Parameter is [Register no (S7-S0)] */ |
9326 | USHORT | 9327 | static USHORT |
9327 | SiS_GetCH70xx(SiS_Private *SiS_Pr, USHORT tempbx) | 9328 | SiS_GetCH70xx(SiS_Private *SiS_Pr, USHORT tempbx) |
9328 | { | 9329 | { |
9329 | if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) | 9330 | if(SiS_Pr->SiS_IF_DEF_CH70xx == 1) |
diff --git a/drivers/video/sis/init301.h b/drivers/video/sis/init301.h index f05aebc994b4..f84eb54164a5 100644 --- a/drivers/video/sis/init301.h +++ b/drivers/video/sis/init301.h | |||
@@ -293,7 +293,6 @@ static UCHAR SiS300_TrumpionData[7][80] = { | |||
293 | #endif | 293 | #endif |
294 | 294 | ||
295 | void SiS_UnLockCRT2(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | 295 | void SiS_UnLockCRT2(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); |
296 | void SiS_LockCRT2(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | ||
297 | void SiS_EnableCRT2(SiS_Private *SiS_Pr); | 296 | void SiS_EnableCRT2(SiS_Private *SiS_Pr); |
298 | USHORT SiS_GetRatePtr(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex, PSIS_HW_INFO HwInfo); | 297 | USHORT SiS_GetRatePtr(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex, PSIS_HW_INFO HwInfo); |
299 | void SiS_WaitRetrace1(SiS_Private *SiS_Pr); | 298 | void SiS_WaitRetrace1(SiS_Private *SiS_Pr); |
@@ -310,7 +309,6 @@ USHORT SiS_GetVCLK2Ptr(SiS_Private *SiS_Pr, USHORT ModeNo, USHORT ModeIdIndex, | |||
310 | USHORT RefreshRateTableIndex, PSIS_HW_INFO HwInfo); | 309 | USHORT RefreshRateTableIndex, PSIS_HW_INFO HwInfo); |
311 | USHORT SiS_GetResInfo(SiS_Private *SiS_Pr,USHORT ModeNo,USHORT ModeIdIndex); | 310 | USHORT SiS_GetResInfo(SiS_Private *SiS_Pr,USHORT ModeNo,USHORT ModeIdIndex); |
312 | void SiS_DisableBridge(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | 311 | void SiS_DisableBridge(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); |
313 | void SiS_EnableBridge(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | ||
314 | BOOLEAN SiS_SetCRT2Group(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo, USHORT ModeNo); | 312 | BOOLEAN SiS_SetCRT2Group(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo, USHORT ModeNo); |
315 | void SiS_SiS30xBLOn(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | 313 | void SiS_SiS30xBLOn(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); |
316 | void SiS_SiS30xBLOff(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | 314 | void SiS_SiS30xBLOff(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); |
@@ -319,8 +317,6 @@ void SiS_SetCH700x(SiS_Private *SiS_Pr, USHORT tempax); | |||
319 | USHORT SiS_GetCH700x(SiS_Private *SiS_Pr, USHORT tempax); | 317 | USHORT SiS_GetCH700x(SiS_Private *SiS_Pr, USHORT tempax); |
320 | void SiS_SetCH701x(SiS_Private *SiS_Pr, USHORT tempax); | 318 | void SiS_SetCH701x(SiS_Private *SiS_Pr, USHORT tempax); |
321 | USHORT SiS_GetCH701x(SiS_Private *SiS_Pr, USHORT tempax); | 319 | USHORT SiS_GetCH701x(SiS_Private *SiS_Pr, USHORT tempax); |
322 | void SiS_SetCH70xx(SiS_Private *SiS_Pr, USHORT tempax); | ||
323 | USHORT SiS_GetCH70xx(SiS_Private *SiS_Pr, USHORT tempax); | ||
324 | void SiS_SetCH70xxANDOR(SiS_Private *SiS_Pr, USHORT tempax,USHORT tempbh); | 320 | void SiS_SetCH70xxANDOR(SiS_Private *SiS_Pr, USHORT tempax,USHORT tempbh); |
325 | #ifdef SIS315H | 321 | #ifdef SIS315H |
326 | static void SiS_Chrontel701xOn(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); | 322 | static void SiS_Chrontel701xOn(SiS_Private *SiS_Pr, PSIS_HW_INFO HwInfo); |
diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c index b773c98f6513..698266036819 100644 --- a/drivers/video/sis/sis_main.c +++ b/drivers/video/sis/sis_main.c | |||
@@ -4762,7 +4762,8 @@ static void __devinit sisfb_post_sis315330(struct pci_dev *pdev) | |||
4762 | #endif | 4762 | #endif |
4763 | 4763 | ||
4764 | 4764 | ||
4765 | int __devinit sisfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 4765 | static int __devinit sisfb_probe(struct pci_dev *pdev, |
4766 | const struct pci_device_id *ent) | ||
4766 | { | 4767 | { |
4767 | struct sisfb_chip_info *chipinfo = &sisfb_chip_info[ent->driver_data]; | 4768 | struct sisfb_chip_info *chipinfo = &sisfb_chip_info[ent->driver_data]; |
4768 | struct sis_video_info *ivideo = NULL; | 4769 | struct sis_video_info *ivideo = NULL; |
@@ -5940,7 +5941,7 @@ MODULE_PARM_DESC(videoram, | |||
5940 | #endif | 5941 | #endif |
5941 | #endif | 5942 | #endif |
5942 | 5943 | ||
5943 | int __devinit sisfb_init_module(void) | 5944 | static int __devinit sisfb_init_module(void) |
5944 | { | 5945 | { |
5945 | sisfb_setdefaultparms(); | 5946 | sisfb_setdefaultparms(); |
5946 | 5947 | ||
diff --git a/fs/bad_inode.c b/fs/bad_inode.c index 672a31924f3c..e172180a1d8c 100644 --- a/fs/bad_inode.c +++ b/fs/bad_inode.c | |||
@@ -47,7 +47,7 @@ static struct file_operations bad_file_ops = | |||
47 | .get_unmapped_area = EIO_ERROR, | 47 | .get_unmapped_area = EIO_ERROR, |
48 | }; | 48 | }; |
49 | 49 | ||
50 | struct inode_operations bad_inode_ops = | 50 | static struct inode_operations bad_inode_ops = |
51 | { | 51 | { |
52 | .create = EIO_ERROR, | 52 | .create = EIO_ERROR, |
53 | .lookup = EIO_ERROR, | 53 | .lookup = EIO_ERROR, |
diff --git a/fs/buffer.c b/fs/buffer.c index 91ace8034bf7..6f88dcc6d002 100644 --- a/fs/buffer.c +++ b/fs/buffer.c | |||
@@ -1210,7 +1210,7 @@ grow_buffers(struct block_device *bdev, sector_t block, int size) | |||
1210 | return 1; | 1210 | return 1; |
1211 | } | 1211 | } |
1212 | 1212 | ||
1213 | struct buffer_head * | 1213 | static struct buffer_head * |
1214 | __getblk_slow(struct block_device *bdev, sector_t block, int size) | 1214 | __getblk_slow(struct block_device *bdev, sector_t block, int size) |
1215 | { | 1215 | { |
1216 | /* Size must be multiple of hard sectorsize */ | 1216 | /* Size must be multiple of hard sectorsize */ |
diff --git a/fs/char_dev.c b/fs/char_dev.c index a745b1d9e545..c1e3537909fc 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c | |||
@@ -328,7 +328,7 @@ void cd_forget(struct inode *inode) | |||
328 | spin_unlock(&cdev_lock); | 328 | spin_unlock(&cdev_lock); |
329 | } | 329 | } |
330 | 330 | ||
331 | void cdev_purge(struct cdev *cdev) | 331 | static void cdev_purge(struct cdev *cdev) |
332 | { | 332 | { |
333 | spin_lock(&cdev_lock); | 333 | spin_lock(&cdev_lock); |
334 | while (!list_empty(&cdev->list)) { | 334 | while (!list_empty(&cdev->list)) { |
diff --git a/fs/dcache.c b/fs/dcache.c index 496a4e08369c..3aa8a7e980d8 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
@@ -39,7 +39,7 @@ int sysctl_vfs_cache_pressure = 100; | |||
39 | EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); | 39 | EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure); |
40 | 40 | ||
41 | __cacheline_aligned_in_smp DEFINE_SPINLOCK(dcache_lock); | 41 | __cacheline_aligned_in_smp DEFINE_SPINLOCK(dcache_lock); |
42 | seqlock_t rename_lock __cacheline_aligned_in_smp = SEQLOCK_UNLOCKED; | 42 | static seqlock_t rename_lock __cacheline_aligned_in_smp = SEQLOCK_UNLOCKED; |
43 | 43 | ||
44 | EXPORT_SYMBOL(dcache_lock); | 44 | EXPORT_SYMBOL(dcache_lock); |
45 | 45 | ||
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 05b966cd6f76..9900e333655a 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c | |||
@@ -320,7 +320,7 @@ static struct super_block *eventpollfs_get_sb(struct file_system_type *fs_type, | |||
320 | /* | 320 | /* |
321 | * This semaphore is used to serialize ep_free() and eventpoll_release_file(). | 321 | * This semaphore is used to serialize ep_free() and eventpoll_release_file(). |
322 | */ | 322 | */ |
323 | struct semaphore epsem; | 323 | static struct semaphore epsem; |
324 | 324 | ||
325 | /* Safe wake up implementation */ | 325 | /* Safe wake up implementation */ |
326 | static struct poll_safewake psw; | 326 | static struct poll_safewake psw; |
@@ -197,7 +197,8 @@ static int count(char __user * __user * argv, int max) | |||
197 | * memory to free pages in kernel mem. These are in a format ready | 197 | * memory to free pages in kernel mem. These are in a format ready |
198 | * to be put directly into the top of new user memory. | 198 | * to be put directly into the top of new user memory. |
199 | */ | 199 | */ |
200 | int copy_strings(int argc,char __user * __user * argv, struct linux_binprm *bprm) | 200 | static int copy_strings(int argc, char __user * __user * argv, |
201 | struct linux_binprm *bprm) | ||
201 | { | 202 | { |
202 | struct page *kmapped_page = NULL; | 203 | struct page *kmapped_page = NULL; |
203 | char *kaddr = NULL; | 204 | char *kaddr = NULL; |
diff --git a/fs/jffs2/compr_rubin.c b/fs/jffs2/compr_rubin.c index 450d6624181f..09422388fb96 100644 --- a/fs/jffs2/compr_rubin.c +++ b/fs/jffs2/compr_rubin.c | |||
@@ -228,8 +228,10 @@ int jffs2_rubinmips_compress(unsigned char *data_in, unsigned char *cpage_out, | |||
228 | return rubin_do_compress(BIT_DIVIDER_MIPS, bits_mips, data_in, cpage_out, sourcelen, dstlen); | 228 | return rubin_do_compress(BIT_DIVIDER_MIPS, bits_mips, data_in, cpage_out, sourcelen, dstlen); |
229 | } | 229 | } |
230 | #endif | 230 | #endif |
231 | int jffs2_dynrubin_compress(unsigned char *data_in, unsigned char *cpage_out, | 231 | static int jffs2_dynrubin_compress(unsigned char *data_in, |
232 | uint32_t *sourcelen, uint32_t *dstlen, void *model) | 232 | unsigned char *cpage_out, |
233 | uint32_t *sourcelen, uint32_t *dstlen, | ||
234 | void *model) | ||
233 | { | 235 | { |
234 | int bits[8]; | 236 | int bits[8]; |
235 | unsigned char histo[256]; | 237 | unsigned char histo[256]; |
@@ -306,15 +308,19 @@ static void rubin_do_decompress(int bit_divider, int *bits, unsigned char *cdata | |||
306 | } | 308 | } |
307 | 309 | ||
308 | 310 | ||
309 | int jffs2_rubinmips_decompress(unsigned char *data_in, unsigned char *cpage_out, | 311 | static int jffs2_rubinmips_decompress(unsigned char *data_in, |
310 | uint32_t sourcelen, uint32_t dstlen, void *model) | 312 | unsigned char *cpage_out, |
313 | uint32_t sourcelen, uint32_t dstlen, | ||
314 | void *model) | ||
311 | { | 315 | { |
312 | rubin_do_decompress(BIT_DIVIDER_MIPS, bits_mips, data_in, cpage_out, sourcelen, dstlen); | 316 | rubin_do_decompress(BIT_DIVIDER_MIPS, bits_mips, data_in, cpage_out, sourcelen, dstlen); |
313 | return 0; | 317 | return 0; |
314 | } | 318 | } |
315 | 319 | ||
316 | int jffs2_dynrubin_decompress(unsigned char *data_in, unsigned char *cpage_out, | 320 | static int jffs2_dynrubin_decompress(unsigned char *data_in, |
317 | uint32_t sourcelen, uint32_t dstlen, void *model) | 321 | unsigned char *cpage_out, |
322 | uint32_t sourcelen, uint32_t dstlen, | ||
323 | void *model) | ||
318 | { | 324 | { |
319 | int bits[8]; | 325 | int bits[8]; |
320 | int c; | 326 | int c; |
diff --git a/fs/jffs2/compr_zlib.c b/fs/jffs2/compr_zlib.c index 9f9932c22adb..078a30e406b5 100644 --- a/fs/jffs2/compr_zlib.c +++ b/fs/jffs2/compr_zlib.c | |||
@@ -69,8 +69,10 @@ static void free_workspaces(void) | |||
69 | #define free_workspaces() do { } while(0) | 69 | #define free_workspaces() do { } while(0) |
70 | #endif /* __KERNEL__ */ | 70 | #endif /* __KERNEL__ */ |
71 | 71 | ||
72 | int jffs2_zlib_compress(unsigned char *data_in, unsigned char *cpage_out, | 72 | static int jffs2_zlib_compress(unsigned char *data_in, |
73 | uint32_t *sourcelen, uint32_t *dstlen, void *model) | 73 | unsigned char *cpage_out, |
74 | uint32_t *sourcelen, uint32_t *dstlen, | ||
75 | void *model) | ||
74 | { | 76 | { |
75 | int ret; | 77 | int ret; |
76 | 78 | ||
@@ -135,8 +137,10 @@ int jffs2_zlib_compress(unsigned char *data_in, unsigned char *cpage_out, | |||
135 | return ret; | 137 | return ret; |
136 | } | 138 | } |
137 | 139 | ||
138 | int jffs2_zlib_decompress(unsigned char *data_in, unsigned char *cpage_out, | 140 | static int jffs2_zlib_decompress(unsigned char *data_in, |
139 | uint32_t srclen, uint32_t destlen, void *model) | 141 | unsigned char *cpage_out, |
142 | uint32_t srclen, uint32_t destlen, | ||
143 | void *model) | ||
140 | { | 144 | { |
141 | int ret; | 145 | int ret; |
142 | int wbits = MAX_WBITS; | 146 | int wbits = MAX_WBITS; |
diff --git a/fs/locks.c b/fs/locks.c index 1792ce547af7..3fa6a7ce57a7 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -406,12 +406,12 @@ static void lease_release_private_callback(struct file_lock *fl) | |||
406 | fl->fl_file->f_owner.signum = 0; | 406 | fl->fl_file->f_owner.signum = 0; |
407 | } | 407 | } |
408 | 408 | ||
409 | int lease_mylease_callback(struct file_lock *fl, struct file_lock *try) | 409 | static int lease_mylease_callback(struct file_lock *fl, struct file_lock *try) |
410 | { | 410 | { |
411 | return fl->fl_file == try->fl_file; | 411 | return fl->fl_file == try->fl_file; |
412 | } | 412 | } |
413 | 413 | ||
414 | struct lock_manager_operations lease_manager_ops = { | 414 | static struct lock_manager_operations lease_manager_ops = { |
415 | .fl_break = lease_break_callback, | 415 | .fl_break = lease_break_callback, |
416 | .fl_release_private = lease_release_private_callback, | 416 | .fl_release_private = lease_release_private_callback, |
417 | .fl_mylease = lease_mylease_callback, | 417 | .fl_mylease = lease_mylease_callback, |
@@ -1274,7 +1274,7 @@ int fcntl_getlease(struct file *filp) | |||
1274 | * | 1274 | * |
1275 | * Called with kernel lock held. | 1275 | * Called with kernel lock held. |
1276 | */ | 1276 | */ |
1277 | int __setlease(struct file *filp, long arg, struct file_lock **flp) | 1277 | static int __setlease(struct file *filp, long arg, struct file_lock **flp) |
1278 | { | 1278 | { |
1279 | struct file_lock *fl, **before, **my_before = NULL, *lease = *flp; | 1279 | struct file_lock *fl, **before, **my_before = NULL, *lease = *flp; |
1280 | struct dentry *dentry = filp->f_dentry; | 1280 | struct dentry *dentry = filp->f_dentry; |
diff --git a/fs/mbcache.c b/fs/mbcache.c index f9e4d2700cd8..c7170b9221a3 100644 --- a/fs/mbcache.c +++ b/fs/mbcache.c | |||
@@ -57,7 +57,7 @@ | |||
57 | 57 | ||
58 | #define MB_CACHE_WRITER ((unsigned short)~0U >> 1) | 58 | #define MB_CACHE_WRITER ((unsigned short)~0U >> 1) |
59 | 59 | ||
60 | DECLARE_WAIT_QUEUE_HEAD(mb_cache_queue); | 60 | static DECLARE_WAIT_QUEUE_HEAD(mb_cache_queue); |
61 | 61 | ||
62 | MODULE_AUTHOR("Andreas Gruenbacher <a.gruenbacher@computer.org>"); | 62 | MODULE_AUTHOR("Andreas Gruenbacher <a.gruenbacher@computer.org>"); |
63 | MODULE_DESCRIPTION("Meta block cache (for extended attributes)"); | 63 | MODULE_DESCRIPTION("Meta block cache (for extended attributes)"); |
diff --git a/fs/mpage.c b/fs/mpage.c index 68db5256a727..b92c0e64aefa 100644 --- a/fs/mpage.c +++ b/fs/mpage.c | |||
@@ -87,7 +87,7 @@ static int mpage_end_io_write(struct bio *bio, unsigned int bytes_done, int err) | |||
87 | return 0; | 87 | return 0; |
88 | } | 88 | } |
89 | 89 | ||
90 | struct bio *mpage_bio_submit(int rw, struct bio *bio) | 90 | static struct bio *mpage_bio_submit(int rw, struct bio *bio) |
91 | { | 91 | { |
92 | bio->bi_end_io = mpage_end_io_read; | 92 | bio->bi_end_io = mpage_end_io_read; |
93 | if (rw == WRITE) | 93 | if (rw == WRITE) |
diff --git a/fs/namei.c b/fs/namei.c index 0f76fd75591b..defe6781e003 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -2071,8 +2071,8 @@ exit: | |||
2071 | * ->i_sem on parents, which works but leads to some truely excessive | 2071 | * ->i_sem on parents, which works but leads to some truely excessive |
2072 | * locking]. | 2072 | * locking]. |
2073 | */ | 2073 | */ |
2074 | int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry, | 2074 | static int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry, |
2075 | struct inode *new_dir, struct dentry *new_dentry) | 2075 | struct inode *new_dir, struct dentry *new_dentry) |
2076 | { | 2076 | { |
2077 | int error = 0; | 2077 | int error = 0; |
2078 | struct inode *target; | 2078 | struct inode *target; |
@@ -2116,8 +2116,8 @@ int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry, | |||
2116 | return error; | 2116 | return error; |
2117 | } | 2117 | } |
2118 | 2118 | ||
2119 | int vfs_rename_other(struct inode *old_dir, struct dentry *old_dentry, | 2119 | static int vfs_rename_other(struct inode *old_dir, struct dentry *old_dentry, |
2120 | struct inode *new_dir, struct dentry *new_dentry) | 2120 | struct inode *new_dir, struct dentry *new_dentry) |
2121 | { | 2121 | { |
2122 | struct inode *target; | 2122 | struct inode *target; |
2123 | int error; | 2123 | int error; |
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c index b74c4e3a64e2..87f4f9aeac86 100644 --- a/fs/nfs/idmap.c +++ b/fs/nfs/idmap.c | |||
@@ -79,7 +79,7 @@ static ssize_t idmap_pipe_upcall(struct file *, struct rpc_pipe_msg *, | |||
79 | char __user *, size_t); | 79 | char __user *, size_t); |
80 | static ssize_t idmap_pipe_downcall(struct file *, const char __user *, | 80 | static ssize_t idmap_pipe_downcall(struct file *, const char __user *, |
81 | size_t); | 81 | size_t); |
82 | void idmap_pipe_destroy_msg(struct rpc_pipe_msg *); | 82 | static void idmap_pipe_destroy_msg(struct rpc_pipe_msg *); |
83 | 83 | ||
84 | static unsigned int fnvhash32(const void *, size_t); | 84 | static unsigned int fnvhash32(const void *, size_t); |
85 | 85 | ||
@@ -434,7 +434,7 @@ out: | |||
434 | return ret; | 434 | return ret; |
435 | } | 435 | } |
436 | 436 | ||
437 | void | 437 | static void |
438 | idmap_pipe_destroy_msg(struct rpc_pipe_msg *msg) | 438 | idmap_pipe_destroy_msg(struct rpc_pipe_msg *msg) |
439 | { | 439 | { |
440 | struct idmap_msg *im = msg->data; | 440 | struct idmap_msg *im = msg->data; |
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 6345f26e87ee..f2317f3e29f9 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1904,7 +1904,7 @@ static void init_once(void * foo, kmem_cache_t * cachep, unsigned long flags) | |||
1904 | } | 1904 | } |
1905 | } | 1905 | } |
1906 | 1906 | ||
1907 | int nfs_init_inodecache(void) | 1907 | static int nfs_init_inodecache(void) |
1908 | { | 1908 | { |
1909 | nfs_inode_cachep = kmem_cache_create("nfs_inode_cache", | 1909 | nfs_inode_cachep = kmem_cache_create("nfs_inode_cache", |
1910 | sizeof(struct nfs_inode), | 1910 | sizeof(struct nfs_inode), |
@@ -1916,7 +1916,7 @@ int nfs_init_inodecache(void) | |||
1916 | return 0; | 1916 | return 0; |
1917 | } | 1917 | } |
1918 | 1918 | ||
1919 | void nfs_destroy_inodecache(void) | 1919 | static void nfs_destroy_inodecache(void) |
1920 | { | 1920 | { |
1921 | if (kmem_cache_destroy(nfs_inode_cachep)) | 1921 | if (kmem_cache_destroy(nfs_inode_cachep)) |
1922 | printk(KERN_INFO "nfs_inode_cache: not all structures were freed\n"); | 1922 | printk(KERN_INFO "nfs_inode_cache: not all structures were freed\n"); |
diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c index 897512796edb..a912debcd20b 100644 --- a/fs/nls/nls_base.c +++ b/fs/nls/nls_base.c | |||
@@ -243,7 +243,7 @@ void unload_nls(struct nls_table *nls) | |||
243 | module_put(nls->owner); | 243 | module_put(nls->owner); |
244 | } | 244 | } |
245 | 245 | ||
246 | wchar_t charset2uni[256] = { | 246 | static wchar_t charset2uni[256] = { |
247 | /* 0x00*/ | 247 | /* 0x00*/ |
248 | 0x0000, 0x0001, 0x0002, 0x0003, | 248 | 0x0000, 0x0001, 0x0002, 0x0003, |
249 | 0x0004, 0x0005, 0x0006, 0x0007, | 249 | 0x0004, 0x0005, 0x0006, 0x0007, |
diff --git a/fs/select.c b/fs/select.c index 25b1ccac2f2c..b80e7eb0ac0d 100644 --- a/fs/select.c +++ b/fs/select.c | |||
@@ -55,7 +55,8 @@ struct poll_table_page { | |||
55 | * as all select/poll functions have to call it to add an entry to the | 55 | * as all select/poll functions have to call it to add an entry to the |
56 | * poll table. | 56 | * poll table. |
57 | */ | 57 | */ |
58 | void __pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *p); | 58 | static void __pollwait(struct file *filp, wait_queue_head_t *wait_address, |
59 | poll_table *p); | ||
59 | 60 | ||
60 | void poll_initwait(struct poll_wqueues *pwq) | 61 | void poll_initwait(struct poll_wqueues *pwq) |
61 | { | 62 | { |
@@ -87,7 +88,8 @@ void poll_freewait(struct poll_wqueues *pwq) | |||
87 | 88 | ||
88 | EXPORT_SYMBOL(poll_freewait); | 89 | EXPORT_SYMBOL(poll_freewait); |
89 | 90 | ||
90 | void __pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *_p) | 91 | static void __pollwait(struct file *filp, wait_queue_head_t *wait_address, |
92 | poll_table *_p) | ||
91 | { | 93 | { |
92 | struct poll_wqueues *p = container_of(_p, struct poll_wqueues, pt); | 94 | struct poll_wqueues *p = container_of(_p, struct poll_wqueues, pt); |
93 | struct poll_table_page *table = p->table; | 95 | struct poll_table_page *table = p->table; |
diff --git a/include/asm-i386/floppy.h b/include/asm-i386/floppy.h index f4782284807a..79727afb94c9 100644 --- a/include/asm-i386/floppy.h +++ b/include/asm-i386/floppy.h | |||
@@ -257,7 +257,7 @@ static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) | |||
257 | return 0; | 257 | return 0; |
258 | } | 258 | } |
259 | 259 | ||
260 | struct fd_routine_l { | 260 | static struct fd_routine_l { |
261 | int (*_request_dma)(unsigned int dmanr, const char * device_id); | 261 | int (*_request_dma)(unsigned int dmanr, const char * device_id); |
262 | void (*_free_dma)(unsigned int dmanr); | 262 | void (*_free_dma)(unsigned int dmanr); |
263 | int (*_get_dma_residue)(unsigned int dummy); | 263 | int (*_get_dma_residue)(unsigned int dummy); |
diff --git a/include/asm-parisc/floppy.h b/include/asm-parisc/floppy.h index 47f53df2cef5..ca3aed768cdc 100644 --- a/include/asm-parisc/floppy.h +++ b/include/asm-parisc/floppy.h | |||
@@ -235,7 +235,7 @@ static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) | |||
235 | return 0; | 235 | return 0; |
236 | } | 236 | } |
237 | 237 | ||
238 | struct fd_routine_l { | 238 | static struct fd_routine_l { |
239 | int (*_request_dma)(unsigned int dmanr, const char * device_id); | 239 | int (*_request_dma)(unsigned int dmanr, const char * device_id); |
240 | void (*_free_dma)(unsigned int dmanr); | 240 | void (*_free_dma)(unsigned int dmanr); |
241 | int (*_get_dma_residue)(unsigned int dummy); | 241 | int (*_get_dma_residue)(unsigned int dummy); |
diff --git a/include/asm-sh/floppy.h b/include/asm-sh/floppy.h index f030ca08052b..38d7a2942476 100644 --- a/include/asm-sh/floppy.h +++ b/include/asm-sh/floppy.h | |||
@@ -227,7 +227,7 @@ static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) | |||
227 | return 0; | 227 | return 0; |
228 | } | 228 | } |
229 | 229 | ||
230 | struct fd_routine_l { | 230 | static struct fd_routine_l { |
231 | int (*_request_dma)(unsigned int dmanr, const char * device_id); | 231 | int (*_request_dma)(unsigned int dmanr, const char * device_id); |
232 | void (*_free_dma)(unsigned int dmanr); | 232 | void (*_free_dma)(unsigned int dmanr); |
233 | int (*_get_dma_residue)(unsigned int dummy); | 233 | int (*_get_dma_residue)(unsigned int dummy); |
diff --git a/include/asm-x86_64/floppy.h b/include/asm-x86_64/floppy.h index bca9b28a1a0a..af7ded63b517 100644 --- a/include/asm-x86_64/floppy.h +++ b/include/asm-x86_64/floppy.h | |||
@@ -223,7 +223,7 @@ static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) | |||
223 | return 0; | 223 | return 0; |
224 | } | 224 | } |
225 | 225 | ||
226 | struct fd_routine_l { | 226 | static struct fd_routine_l { |
227 | int (*_request_dma)(unsigned int dmanr, const char * device_id); | 227 | int (*_request_dma)(unsigned int dmanr, const char * device_id); |
228 | void (*_free_dma)(unsigned int dmanr); | 228 | void (*_free_dma)(unsigned int dmanr); |
229 | int (*_get_dma_residue)(unsigned int dummy); | 229 | int (*_get_dma_residue)(unsigned int dummy); |
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index 54f820832c73..7e736e201c46 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h | |||
@@ -77,7 +77,6 @@ extern int flush_old_exec(struct linux_binprm * bprm); | |||
77 | extern int setup_arg_pages(struct linux_binprm * bprm, | 77 | extern int setup_arg_pages(struct linux_binprm * bprm, |
78 | unsigned long stack_top, | 78 | unsigned long stack_top, |
79 | int executable_stack); | 79 | int executable_stack); |
80 | extern int copy_strings(int argc,char __user * __user * argv,struct linux_binprm *bprm); | ||
81 | extern int copy_strings_kernel(int argc,char ** argv,struct linux_binprm *bprm); | 80 | extern int copy_strings_kernel(int argc,char ** argv,struct linux_binprm *bprm); |
82 | extern void compute_creds(struct linux_binprm *binprm); | 81 | extern void compute_creds(struct linux_binprm *binprm); |
83 | extern int do_coredump(long signr, int exit_code, struct pt_regs * regs); | 82 | extern int do_coredump(long signr, int exit_code, struct pt_regs * regs); |