summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-04-08 08:43:59 +0200
committerRusty Russell <rusty@rustcorp.com.au>2013-04-08 15:30:26 +0200
commit3826835ab8bb7eac47f14f279df2bd58ec2bb279 (patch)
tree79e4f25b5c6140cfd043ffc6a5124b9a10b227e9 /drivers/char
parentcaif_virtio: fix error return code in cfv_create_genpool() (diff)
downloadlinux-3826835ab8bb7eac47f14f279df2bd58ec2bb279.tar.xz
linux-3826835ab8bb7eac47f14f279df2bd58ec2bb279.zip
virtio_console: make local symbols static
Those symbols only used within this file, and should be static. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/virtio_console.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 6d59f166e0e9..f4f31fe88902 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -78,8 +78,8 @@ struct ports_driver_data {
};
static struct ports_driver_data pdrvdata;
-DEFINE_SPINLOCK(pdrvdata_lock);
-DECLARE_COMPLETION(early_console_added);
+static DEFINE_SPINLOCK(pdrvdata_lock);
+static DECLARE_COMPLETION(early_console_added);
/* This struct holds information that's relevant only for console ports */
struct console {
@@ -1198,7 +1198,7 @@ int __init virtio_cons_early_init(int (*put_chars)(u32, const char *, int))
return hvc_instantiate(0, 0, &hv_ops);
}
-int init_port_console(struct port *port)
+static int init_port_console(struct port *port)
{
int ret;