diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-10-27 15:53:42 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-10-27 15:53:42 +0000 |
commit | b50e5115b88a2cf02503b0684d6eeecf0c4807c8 (patch) | |
tree | 3f630390d7c54f91351256db1c94e34926b66d8c /drivers/dahdi/xpp | |
parent | 0bcecd62480492f36775bc90ed6e86389264c7f3 (diff) |
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
Diffstat (limited to 'drivers/dahdi/xpp')
-rw-r--r-- | drivers/dahdi/xpp/xbus-sysfs.c | 4 | ||||
-rw-r--r-- | drivers/dahdi/xpp/xpp_dahdi.c | 2 |
2 files changed, 3 insertions, 3 deletions
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; |