diff options
-rw-r--r-- | drivers/media/common/saa7146_fops.c | 2 | ||||
-rw-r--r-- | drivers/media/video/tvaudio.c | 22 | ||||
-rw-r--r-- | drivers/scsi/hosts.c | 2 | ||||
-rw-r--r-- | drivers/scsi/scsi.c | 6 | ||||
-rw-r--r-- | drivers/scsi/scsi_debug.c | 2 | ||||
-rw-r--r-- | drivers/scsi/scsi_lib.c | 2 | ||||
-rw-r--r-- | drivers/scsi/scsi_priv.h | 4 | ||||
-rw-r--r-- | drivers/scsi/scsi_sysfs.c | 4 | ||||
-rw-r--r-- | fs/namespace.c | 2 | ||||
-rw-r--r-- | fs/reiserfs/stree.c | 2 | ||||
-rw-r--r-- | include/linux/irq.h | 1 | ||||
-rw-r--r-- | include/linux/namespace.h | 1 | ||||
-rw-r--r-- | include/net/sctp/sm.h | 6 | ||||
-rw-r--r-- | kernel/irq/spurious.c | 2 | ||||
-rw-r--r-- | kernel/module.c | 2 | ||||
-rw-r--r-- | kernel/power/swsusp.c | 2 | ||||
-rw-r--r-- | net/sctp/sm_statefuns.c | 16 |
17 files changed, 40 insertions, 38 deletions
diff --git a/drivers/media/common/saa7146_fops.c b/drivers/media/common/saa7146_fops.c index cb826c9adfe7..c04fd11526e0 100644 --- a/drivers/media/common/saa7146_fops.c +++ b/drivers/media/common/saa7146_fops.c | |||
@@ -403,7 +403,7 @@ static struct file_operations video_fops = | |||
403 | .llseek = no_llseek, | 403 | .llseek = no_llseek, |
404 | }; | 404 | }; |
405 | 405 | ||
406 | void vv_callback(struct saa7146_dev *dev, unsigned long status) | 406 | static void vv_callback(struct saa7146_dev *dev, unsigned long status) |
407 | { | 407 | { |
408 | u32 isr = status; | 408 | u32 isr = status; |
409 | 409 | ||
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c index 5430b25b910d..9a493bea76d8 100644 --- a/drivers/media/video/tvaudio.c +++ b/drivers/media/video/tvaudio.c | |||
@@ -1236,17 +1236,17 @@ static int ta8874z_checkit(struct CHIPSTATE *chip) | |||
1236 | /* audio chip descriptions - struct CHIPDESC */ | 1236 | /* audio chip descriptions - struct CHIPDESC */ |
1237 | 1237 | ||
1238 | /* insmod options to enable/disable individual audio chips */ | 1238 | /* insmod options to enable/disable individual audio chips */ |
1239 | int tda8425 = 1; | 1239 | static int tda8425 = 1; |
1240 | int tda9840 = 1; | 1240 | static int tda9840 = 1; |
1241 | int tda9850 = 1; | 1241 | static int tda9850 = 1; |
1242 | int tda9855 = 1; | 1242 | static int tda9855 = 1; |
1243 | int tda9873 = 1; | 1243 | static int tda9873 = 1; |
1244 | int tda9874a = 1; | 1244 | static int tda9874a = 1; |
1245 | int tea6300 = 0; // address clash with msp34xx | 1245 | static int tea6300 = 0; // address clash with msp34xx |
1246 | int tea6320 = 0; // address clash with msp34xx | 1246 | static int tea6320 = 0; // address clash with msp34xx |
1247 | int tea6420 = 1; | 1247 | static int tea6420 = 1; |
1248 | int pic16c54 = 1; | 1248 | static int pic16c54 = 1; |
1249 | int ta8874z = 0; // address clash with tda9840 | 1249 | static int ta8874z = 0; // address clash with tda9840 |
1250 | 1250 | ||
1251 | module_param(tda8425, int, 0444); | 1251 | module_param(tda8425, int, 0444); |
1252 | module_param(tda9840, int, 0444); | 1252 | module_param(tda9840, int, 0444); |
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index ba347576d99b..d7a38b6713f9 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c | |||
@@ -56,7 +56,7 @@ static struct class shost_class = { | |||
56 | * @shost: pointer to struct Scsi_Host | 56 | * @shost: pointer to struct Scsi_Host |
57 | * recovery: recovery requested to run. | 57 | * recovery: recovery requested to run. |
58 | **/ | 58 | **/ |
59 | void scsi_host_cancel(struct Scsi_Host *shost, int recovery) | 59 | static void scsi_host_cancel(struct Scsi_Host *shost, int recovery) |
60 | { | 60 | { |
61 | struct scsi_device *sdev; | 61 | struct scsi_device *sdev; |
62 | 62 | ||
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 5578ae9a9e45..1cb5f7d4f278 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -68,6 +68,8 @@ | |||
68 | #include "scsi_priv.h" | 68 | #include "scsi_priv.h" |
69 | #include "scsi_logging.h" | 69 | #include "scsi_logging.h" |
70 | 70 | ||
71 | static void scsi_done(struct scsi_cmnd *cmd); | ||
72 | static int scsi_retry_command(struct scsi_cmnd *cmd); | ||
71 | 73 | ||
72 | /* | 74 | /* |
73 | * Definitions and constants. | 75 | * Definitions and constants. |
@@ -741,7 +743,7 @@ static DEFINE_PER_CPU(struct list_head, scsi_done_q); | |||
741 | * | 743 | * |
742 | * This function is interrupt context safe. | 744 | * This function is interrupt context safe. |
743 | */ | 745 | */ |
744 | void scsi_done(struct scsi_cmnd *cmd) | 746 | static void scsi_done(struct scsi_cmnd *cmd) |
745 | { | 747 | { |
746 | /* | 748 | /* |
747 | * We don't have to worry about this one timing out any more. | 749 | * We don't have to worry about this one timing out any more. |
@@ -836,7 +838,7 @@ static void scsi_softirq(struct softirq_action *h) | |||
836 | * level drivers should not become re-entrant as a result of | 838 | * level drivers should not become re-entrant as a result of |
837 | * this. | 839 | * this. |
838 | */ | 840 | */ |
839 | int scsi_retry_command(struct scsi_cmnd *cmd) | 841 | static int scsi_retry_command(struct scsi_cmnd *cmd) |
840 | { | 842 | { |
841 | /* | 843 | /* |
842 | * Restore the SCSI command state. | 844 | * Restore the SCSI command state. |
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index e0208886b45e..322b5a41a36f 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c | |||
@@ -1783,7 +1783,7 @@ static void __exit scsi_debug_exit(void) | |||
1783 | device_initcall(scsi_debug_init); | 1783 | device_initcall(scsi_debug_init); |
1784 | module_exit(scsi_debug_exit); | 1784 | module_exit(scsi_debug_exit); |
1785 | 1785 | ||
1786 | void pseudo_0_release(struct device * dev) | 1786 | static void pseudo_0_release(struct device * dev) |
1787 | { | 1787 | { |
1788 | if (SCSI_DEBUG_OPT_NOISE & scsi_debug_opts) | 1788 | if (SCSI_DEBUG_OPT_NOISE & scsi_debug_opts) |
1789 | printk(KERN_INFO "scsi_debug: pseudo_0_release() called\n"); | 1789 | printk(KERN_INFO "scsi_debug: pseudo_0_release() called\n"); |
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 9f996499fa9d..621dee8b8cb2 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -44,7 +44,7 @@ struct scsi_host_sg_pool { | |||
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #define SP(x) { x, "sgpool-" #x } | 46 | #define SP(x) { x, "sgpool-" #x } |
47 | struct scsi_host_sg_pool scsi_sg_pools[] = { | 47 | static struct scsi_host_sg_pool scsi_sg_pools[] = { |
48 | SP(8), | 48 | SP(8), |
49 | SP(16), | 49 | SP(16), |
50 | SP(32), | 50 | SP(32), |
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h index c01580df4476..96d4f745975c 100644 --- a/drivers/scsi/scsi_priv.h +++ b/drivers/scsi/scsi_priv.h | |||
@@ -61,8 +61,6 @@ extern void scsi_exit_hosts(void); | |||
61 | extern int scsi_dispatch_cmd(struct scsi_cmnd *cmd); | 61 | extern int scsi_dispatch_cmd(struct scsi_cmnd *cmd); |
62 | extern int scsi_setup_command_freelist(struct Scsi_Host *shost); | 62 | extern int scsi_setup_command_freelist(struct Scsi_Host *shost); |
63 | extern void scsi_destroy_command_freelist(struct Scsi_Host *shost); | 63 | extern void scsi_destroy_command_freelist(struct Scsi_Host *shost); |
64 | extern void scsi_done(struct scsi_cmnd *cmd); | ||
65 | extern int scsi_retry_command(struct scsi_cmnd *cmd); | ||
66 | extern int scsi_insert_special_req(struct scsi_request *sreq, int); | 64 | extern int scsi_insert_special_req(struct scsi_request *sreq, int); |
67 | extern void scsi_init_cmd_from_req(struct scsi_cmnd *cmd, | 65 | extern void scsi_init_cmd_from_req(struct scsi_cmnd *cmd, |
68 | struct scsi_request *sreq); | 66 | struct scsi_request *sreq); |
@@ -136,7 +134,6 @@ extern void scsi_exit_sysctl(void); | |||
136 | #endif /* CONFIG_SYSCTL */ | 134 | #endif /* CONFIG_SYSCTL */ |
137 | 135 | ||
138 | /* scsi_sysfs.c */ | 136 | /* scsi_sysfs.c */ |
139 | extern void scsi_device_dev_release(struct device *); | ||
140 | extern int scsi_sysfs_add_sdev(struct scsi_device *); | 137 | extern int scsi_sysfs_add_sdev(struct scsi_device *); |
141 | extern int scsi_sysfs_add_host(struct Scsi_Host *); | 138 | extern int scsi_sysfs_add_host(struct Scsi_Host *); |
142 | extern int scsi_sysfs_register(void); | 139 | extern int scsi_sysfs_register(void); |
@@ -145,7 +142,6 @@ extern void scsi_sysfs_device_initialize(struct scsi_device *); | |||
145 | extern int scsi_sysfs_target_initialize(struct scsi_device *); | 142 | extern int scsi_sysfs_target_initialize(struct scsi_device *); |
146 | extern struct scsi_transport_template blank_transport_template; | 143 | extern struct scsi_transport_template blank_transport_template; |
147 | 144 | ||
148 | extern struct class sdev_class; | ||
149 | extern struct bus_type scsi_bus_type; | 145 | extern struct bus_type scsi_bus_type; |
150 | 146 | ||
151 | /* | 147 | /* |
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 93b41100a6d8..beed7fbe1cbe 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c | |||
@@ -150,7 +150,7 @@ static void scsi_device_cls_release(struct class_device *class_dev) | |||
150 | put_device(&sdev->sdev_gendev); | 150 | put_device(&sdev->sdev_gendev); |
151 | } | 151 | } |
152 | 152 | ||
153 | void scsi_device_dev_release(struct device *dev) | 153 | static void scsi_device_dev_release(struct device *dev) |
154 | { | 154 | { |
155 | struct scsi_device *sdev; | 155 | struct scsi_device *sdev; |
156 | struct device *parent; | 156 | struct device *parent; |
@@ -185,7 +185,7 @@ void scsi_device_dev_release(struct device *dev) | |||
185 | put_device(parent); | 185 | put_device(parent); |
186 | } | 186 | } |
187 | 187 | ||
188 | struct class sdev_class = { | 188 | static struct class sdev_class = { |
189 | .name = "scsi_device", | 189 | .name = "scsi_device", |
190 | .release = scsi_device_cls_release, | 190 | .release = scsi_device_cls_release, |
191 | }; | 191 | }; |
diff --git a/fs/namespace.c b/fs/namespace.c index 3b93e5d750eb..208c079e9fdb 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -337,7 +337,7 @@ int may_umount(struct vfsmount *mnt) | |||
337 | 337 | ||
338 | EXPORT_SYMBOL(may_umount); | 338 | EXPORT_SYMBOL(may_umount); |
339 | 339 | ||
340 | void umount_tree(struct vfsmount *mnt) | 340 | static void umount_tree(struct vfsmount *mnt) |
341 | { | 341 | { |
342 | struct vfsmount *p; | 342 | struct vfsmount *p; |
343 | LIST_HEAD(kill); | 343 | LIST_HEAD(kill); |
diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c index c47f8fd31a2d..63158491e152 100644 --- a/fs/reiserfs/stree.c +++ b/fs/reiserfs/stree.c | |||
@@ -223,7 +223,7 @@ extern struct tree_balance * cur_tb; | |||
223 | const struct reiserfs_key MIN_KEY = {0, 0, {{0, 0},}}; | 223 | const struct reiserfs_key MIN_KEY = {0, 0, {{0, 0},}}; |
224 | 224 | ||
225 | /* Maximal possible key. It is never in the tree. */ | 225 | /* Maximal possible key. It is never in the tree. */ |
226 | const struct reiserfs_key MAX_KEY = { | 226 | static const struct reiserfs_key MAX_KEY = { |
227 | __constant_cpu_to_le32(0xffffffff), | 227 | __constant_cpu_to_le32(0xffffffff), |
228 | __constant_cpu_to_le32(0xffffffff), | 228 | __constant_cpu_to_le32(0xffffffff), |
229 | {{__constant_cpu_to_le32(0xffffffff), | 229 | {{__constant_cpu_to_le32(0xffffffff), |
diff --git a/include/linux/irq.h b/include/linux/irq.h index 7fc1022be9ee..12277799c007 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -88,7 +88,6 @@ extern fastcall int handle_IRQ_event(unsigned int irq, struct pt_regs *regs, | |||
88 | struct irqaction *action); | 88 | struct irqaction *action); |
89 | extern fastcall unsigned int __do_IRQ(unsigned int irq, struct pt_regs *regs); | 89 | extern fastcall unsigned int __do_IRQ(unsigned int irq, struct pt_regs *regs); |
90 | extern void note_interrupt(unsigned int irq, irq_desc_t *desc, int action_ret); | 90 | extern void note_interrupt(unsigned int irq, irq_desc_t *desc, int action_ret); |
91 | extern void report_bad_irq(unsigned int irq, irq_desc_t *desc, int action_ret); | ||
92 | extern int can_request_irq(unsigned int irq, unsigned long irqflags); | 91 | extern int can_request_irq(unsigned int irq, unsigned long irqflags); |
93 | 92 | ||
94 | extern void init_irq_proc(void); | 93 | extern void init_irq_proc(void); |
diff --git a/include/linux/namespace.h b/include/linux/namespace.h index 9eca1558d72f..697991b69f9b 100644 --- a/include/linux/namespace.h +++ b/include/linux/namespace.h | |||
@@ -12,7 +12,6 @@ struct namespace { | |||
12 | struct rw_semaphore sem; | 12 | struct rw_semaphore sem; |
13 | }; | 13 | }; |
14 | 14 | ||
15 | extern void umount_tree(struct vfsmount *); | ||
16 | extern int copy_namespace(int, struct task_struct *); | 15 | extern int copy_namespace(int, struct task_struct *); |
17 | extern void __put_namespace(struct namespace *namespace); | 16 | extern void __put_namespace(struct namespace *namespace); |
18 | 17 | ||
diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h index a53e08a45e32..88d9fe5975d5 100644 --- a/include/net/sctp/sm.h +++ b/include/net/sctp/sm.h | |||
@@ -131,7 +131,6 @@ sctp_state_fn_t sctp_sf_do_ecne; | |||
131 | sctp_state_fn_t sctp_sf_ootb; | 131 | sctp_state_fn_t sctp_sf_ootb; |
132 | sctp_state_fn_t sctp_sf_pdiscard; | 132 | sctp_state_fn_t sctp_sf_pdiscard; |
133 | sctp_state_fn_t sctp_sf_violation; | 133 | sctp_state_fn_t sctp_sf_violation; |
134 | sctp_state_fn_t sctp_sf_violation_chunklen; | ||
135 | sctp_state_fn_t sctp_sf_discard_chunk; | 134 | sctp_state_fn_t sctp_sf_discard_chunk; |
136 | sctp_state_fn_t sctp_sf_do_5_2_1_siminit; | 135 | sctp_state_fn_t sctp_sf_do_5_2_1_siminit; |
137 | sctp_state_fn_t sctp_sf_do_5_2_2_dupinit; | 136 | sctp_state_fn_t sctp_sf_do_5_2_2_dupinit; |
@@ -259,11 +258,6 @@ struct sctp_chunk *sctp_make_fwdtsn(const struct sctp_association *asoc, | |||
259 | void sctp_chunk_assign_tsn(struct sctp_chunk *); | 258 | void sctp_chunk_assign_tsn(struct sctp_chunk *); |
260 | void sctp_chunk_assign_ssn(struct sctp_chunk *); | 259 | void sctp_chunk_assign_ssn(struct sctp_chunk *); |
261 | 260 | ||
262 | sctp_disposition_t sctp_stop_t1_and_abort(sctp_cmd_seq_t *commands, | ||
263 | __u16 error, | ||
264 | const struct sctp_association *asoc, | ||
265 | struct sctp_transport *transport); | ||
266 | |||
267 | /* Prototypes for statetable processing. */ | 261 | /* Prototypes for statetable processing. */ |
268 | 262 | ||
269 | int sctp_do_sm(sctp_event_t event_type, sctp_subtype_t subtype, | 263 | int sctp_do_sm(sctp_event_t event_type, sctp_subtype_t subtype, |
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c index f6297c306905..ba039e827d58 100644 --- a/kernel/irq/spurious.c +++ b/kernel/irq/spurious.c | |||
@@ -45,7 +45,7 @@ __report_bad_irq(unsigned int irq, irq_desc_t *desc, irqreturn_t action_ret) | |||
45 | } | 45 | } |
46 | } | 46 | } |
47 | 47 | ||
48 | void report_bad_irq(unsigned int irq, irq_desc_t *desc, irqreturn_t action_ret) | 48 | static void report_bad_irq(unsigned int irq, irq_desc_t *desc, irqreturn_t action_ret) |
49 | { | 49 | { |
50 | static int count = 100; | 50 | static int count = 100; |
51 | 51 | ||
diff --git a/kernel/module.c b/kernel/module.c index 0494c89a0d26..068e271ab3a5 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -730,7 +730,7 @@ static int obsparm_copy_string(const char *val, struct kernel_param *kp) | |||
730 | return 0; | 730 | return 0; |
731 | } | 731 | } |
732 | 732 | ||
733 | int set_obsolete(const char *val, struct kernel_param *kp) | 733 | static int set_obsolete(const char *val, struct kernel_param *kp) |
734 | { | 734 | { |
735 | unsigned int min, max; | 735 | unsigned int min, max; |
736 | unsigned int size, maxsize; | 736 | unsigned int size, maxsize; |
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c index 90b3b68dee3f..53f9f8720ee4 100644 --- a/kernel/power/swsusp.c +++ b/kernel/power/swsusp.c | |||
@@ -81,7 +81,7 @@ static int nr_copy_pages_check; | |||
81 | extern char resume_file[]; | 81 | extern char resume_file[]; |
82 | 82 | ||
83 | /* Local variables that should not be affected by save */ | 83 | /* Local variables that should not be affected by save */ |
84 | unsigned int nr_copy_pages __nosavedata = 0; | 84 | static unsigned int nr_copy_pages __nosavedata = 0; |
85 | 85 | ||
86 | /* Suspend pagedir is allocated before final copy, therefore it | 86 | /* Suspend pagedir is allocated before final copy, therefore it |
87 | must be freed after resume | 87 | must be freed after resume |
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index 058189684c7c..86073df418f5 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -92,6 +92,17 @@ static sctp_disposition_t sctp_sf_shut_8_4_5(const struct sctp_endpoint *ep, | |||
92 | sctp_cmd_seq_t *commands); | 92 | sctp_cmd_seq_t *commands); |
93 | static struct sctp_sackhdr *sctp_sm_pull_sack(struct sctp_chunk *chunk); | 93 | static struct sctp_sackhdr *sctp_sm_pull_sack(struct sctp_chunk *chunk); |
94 | 94 | ||
95 | static sctp_disposition_t sctp_stop_t1_and_abort(sctp_cmd_seq_t *commands, | ||
96 | __u16 error, | ||
97 | const struct sctp_association *asoc, | ||
98 | struct sctp_transport *transport); | ||
99 | |||
100 | static sctp_disposition_t sctp_sf_violation_chunklen( | ||
101 | const struct sctp_endpoint *ep, | ||
102 | const struct sctp_association *asoc, | ||
103 | const sctp_subtype_t type, | ||
104 | void *arg, | ||
105 | sctp_cmd_seq_t *commands); | ||
95 | 106 | ||
96 | /* Small helper function that checks if the chunk length | 107 | /* Small helper function that checks if the chunk length |
97 | * is of the appropriate length. The 'required_length' argument | 108 | * is of the appropriate length. The 'required_length' argument |
@@ -2328,7 +2339,7 @@ sctp_disposition_t sctp_sf_cookie_echoed_abort(const struct sctp_endpoint *ep, | |||
2328 | * | 2339 | * |
2329 | * This is common code called by several sctp_sf_*_abort() functions above. | 2340 | * This is common code called by several sctp_sf_*_abort() functions above. |
2330 | */ | 2341 | */ |
2331 | sctp_disposition_t sctp_stop_t1_and_abort(sctp_cmd_seq_t *commands, | 2342 | static sctp_disposition_t sctp_stop_t1_and_abort(sctp_cmd_seq_t *commands, |
2332 | __u16 error, | 2343 | __u16 error, |
2333 | const struct sctp_association *asoc, | 2344 | const struct sctp_association *asoc, |
2334 | struct sctp_transport *transport) | 2345 | struct sctp_transport *transport) |
@@ -3687,7 +3698,8 @@ sctp_disposition_t sctp_sf_violation(const struct sctp_endpoint *ep, | |||
3687 | * | 3698 | * |
3688 | * Generate an ABORT chunk and terminate the association. | 3699 | * Generate an ABORT chunk and terminate the association. |
3689 | */ | 3700 | */ |
3690 | sctp_disposition_t sctp_sf_violation_chunklen(const struct sctp_endpoint *ep, | 3701 | static sctp_disposition_t sctp_sf_violation_chunklen( |
3702 | const struct sctp_endpoint *ep, | ||
3691 | const struct sctp_association *asoc, | 3703 | const struct sctp_association *asoc, |
3692 | const sctp_subtype_t type, | 3704 | const sctp_subtype_t type, |
3693 | void *arg, | 3705 | void *arg, |