From b50e5115b88a2cf02503b0684d6eeecf0c4807c8 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 27 Oct 2008 15:53:42 +0000 Subject: xpp: Make some definitions static, as per sparse. Fixes the xpp warnings of #13763 (except some false alarms). git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5131 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/xbus-sysfs.c | 4 ++-- drivers/dahdi/xpp/xpp_dahdi.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/dahdi/xpp') diff --git a/drivers/dahdi/xpp/xbus-sysfs.c b/drivers/dahdi/xpp/xbus-sysfs.c index 86e22e0..449b4ea 100644 --- a/drivers/dahdi/xpp/xbus-sysfs.c +++ b/drivers/dahdi/xpp/xbus-sysfs.c @@ -215,7 +215,7 @@ field##_show(struct device *dev, char *buf) \ xbus_attr(connector, "%s\n"); xbus_attr(label, "%s\n"); -struct device_attribute xbus_dev_attrs[] = { +static struct device_attribute xbus_dev_attrs[] = { __ATTR_RO(connector), __ATTR_RO(label), __ATTR_RO(status), @@ -574,7 +574,7 @@ static int xpd_match(struct device *dev, struct device_driver *driver) return 1; } -struct device_attribute xpd_dev_attrs[] = { +static struct device_attribute xpd_dev_attrs[] = { __ATTR(chipregs, S_IRUGO | S_IWUSR, chipregs_show, chipregs_store), __ATTR(blink, S_IRUGO | S_IWUSR, blink_show, blink_store), __ATTR(span, S_IRUGO | S_IWUSR, span_show, span_store), diff --git a/drivers/dahdi/xpp/xpp_dahdi.c b/drivers/dahdi/xpp/xpp_dahdi.c index f778f48..b1a7121 100644 --- a/drivers/dahdi/xpp/xpp_dahdi.c +++ b/drivers/dahdi/xpp/xpp_dahdi.c @@ -119,7 +119,7 @@ static int proc_xpd_blink_write(struct file *file, const char __user *buffer, un /*------------------------- XPD Management -------------------------*/ -atomic_t *refcount_xpd(xpd_t *xpd) +static atomic_t *refcount_xpd(xpd_t *xpd) { struct kref *kref = &xpd->xpd_dev.kobj.kref; -- cgit v1.2.3