diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:40:20 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 16:40:20 -0400 |
| commit | dc690d8ef842b464f1c429a376ca16cb8dbee6ae (patch) | |
| tree | 77955849af5a15755f5e55e24ae4b9c520583a72 /net/bridge | |
| parent | 57399ec9077a4b962b81037aaa279fab52f5e989 (diff) | |
| parent | 91a6902958f052358899f58683d44e36228d85c2 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (61 commits)
sysfs: add parameter "struct bin_attribute *" in .read/.write methods for sysfs binary attributes
sysfs: make directory dentries and inodes reclaimable
sysfs: implement sysfs_get_dentry()
sysfs: move sysfs_drop_dentry() to dir.c and make it static
sysfs: restructure add/remove paths and fix inode update
sysfs: use sysfs_mutex to protect the sysfs_dirent tree
sysfs: consolidate sysfs spinlocks
sysfs: make kobj point to sysfs_dirent instead of dentry
sysfs: implement sysfs_find_dirent() and sysfs_get_dirent()
sysfs: implement SYSFS_FLAG_REMOVED flag
sysfs: rename sysfs_dirent->s_type to s_flags and make room for flags
sysfs: make sysfs_drop_dentry() access inodes using ilookup()
sysfs: Fix oops in sysfs_drop_dentry on x86_64
sysfs: use singly-linked list for sysfs_dirent tree
sysfs: slim down sysfs_dirent->s_active
sysfs: move s_active functions to fs/sysfs/dir.c
sysfs: fix root sysfs_dirent -> root dentry association
sysfs: use iget_locked() instead of new_inode()
sysfs: reorganize sysfs_new_indoe() and sysfs_create()
sysfs: fix parent refcounting during rename and move
...
Diffstat (limited to 'net/bridge')
| -rw-r--r-- | net/bridge/br_sysfs_br.c | 8 | ||||
| -rw-r--r-- | net/bridge/br_sysfs_if.c | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/net/bridge/br_sysfs_br.c b/net/bridge/br_sysfs_br.c index 33c6c4a7c689..4f42263e0a8a 100644 --- a/net/bridge/br_sysfs_br.c +++ b/net/bridge/br_sysfs_br.c | |||
| @@ -360,8 +360,9 @@ static struct attribute_group bridge_group = { | |||
| 360 | * | 360 | * |
| 361 | * Returns the number of bytes read. | 361 | * Returns the number of bytes read. |
| 362 | */ | 362 | */ |
| 363 | static ssize_t brforward_read(struct kobject *kobj, char *buf, | 363 | static ssize_t brforward_read(struct kobject *kobj, |
| 364 | loff_t off, size_t count) | 364 | struct bin_attribute *bin_attr, |
| 365 | char *buf, loff_t off, size_t count) | ||
| 365 | { | 366 | { |
| 366 | struct device *dev = to_dev(kobj); | 367 | struct device *dev = to_dev(kobj); |
| 367 | struct net_bridge *br = to_bridge(dev); | 368 | struct net_bridge *br = to_bridge(dev); |
| @@ -383,8 +384,7 @@ static ssize_t brforward_read(struct kobject *kobj, char *buf, | |||
| 383 | 384 | ||
| 384 | static struct bin_attribute bridge_forward = { | 385 | static struct bin_attribute bridge_forward = { |
| 385 | .attr = { .name = SYSFS_BRIDGE_FDB, | 386 | .attr = { .name = SYSFS_BRIDGE_FDB, |
| 386 | .mode = S_IRUGO, | 387 | .mode = S_IRUGO, }, |
| 387 | .owner = THIS_MODULE, }, | ||
| 388 | .read = brforward_read, | 388 | .read = brforward_read, |
| 389 | }; | 389 | }; |
| 390 | 390 | ||
diff --git a/net/bridge/br_sysfs_if.c b/net/bridge/br_sysfs_if.c index 2da22927d8dd..79db51fcb476 100644 --- a/net/bridge/br_sysfs_if.c +++ b/net/bridge/br_sysfs_if.c | |||
| @@ -29,8 +29,7 @@ struct brport_attribute { | |||
| 29 | #define BRPORT_ATTR(_name,_mode,_show,_store) \ | 29 | #define BRPORT_ATTR(_name,_mode,_show,_store) \ |
| 30 | struct brport_attribute brport_attr_##_name = { \ | 30 | struct brport_attribute brport_attr_##_name = { \ |
| 31 | .attr = {.name = __stringify(_name), \ | 31 | .attr = {.name = __stringify(_name), \ |
| 32 | .mode = _mode, \ | 32 | .mode = _mode }, \ |
| 33 | .owner = THIS_MODULE, }, \ | ||
| 34 | .show = _show, \ | 33 | .show = _show, \ |
| 35 | .store = _store, \ | 34 | .store = _store, \ |
| 36 | }; | 35 | }; |
