sparc64: Fix sparse warnings in vio.c
authorDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 07:04:33 +0000 (00:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Sep 2008 07:04:33 +0000 (00:04 -0700)
Several variables should be marked static.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/vio.c

index a490077891a4c532e399e062830d3e932269af65..92b1f8ec01de3837572175f5062c28394327ea67 100644 (file)
@@ -152,7 +152,7 @@ show_pciobppath_attr(struct device *dev, struct device_attribute *attr,
 static DEVICE_ATTR(obppath, S_IRUSR | S_IRGRP | S_IROTH,
                   show_pciobppath_attr, NULL);
 
-struct device_node *cdev_node;
+static struct device_node *cdev_node;
 
 static struct vio_dev *root_vdev;
 static u64 cdev_cfg_handle;
@@ -371,9 +371,9 @@ static struct mdesc_notifier_client vio_ds_notifier = {
        .node_name      = "domain-services-port",
 };
 
-const char *channel_devices_node = "channel-devices";
-const char *channel_devices_compat = "SUNW,sun4v-channel-devices";
-const char *cfg_handle_prop = "cfg-handle";
+static const char *channel_devices_node = "channel-devices";
+static const char *channel_devices_compat = "SUNW,sun4v-channel-devices";
+static const char *cfg_handle_prop = "cfg-handle";
 
 static int __init vio_init(void)
 {