* [PATCH 1/2] bonding: drop unused to_dev macro in bond_sysfs.c
@ 2015-12-23 12:42 Geliang Tang
2015-12-23 12:42 ` [PATCH 2/2] bridge: use kobj_to_dev instead of to_dev Geliang Tang
2015-12-24 3:27 ` [PATCH 1/2] bonding: drop unused to_dev macro in bond_sysfs.c David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Geliang Tang @ 2015-12-23 12:42 UTC (permalink / raw)
To: Jay Vosburgh, Veaceslav Falico, Andy Gospodarek
Cc: Geliang Tang, netdev, linux-kernel
to_dev is not used anymore so drop it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
---
drivers/net/bonding/bond_sysfs.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c
index f4ae720..313dbac 100644
--- a/drivers/net/bonding/bond_sysfs.c
+++ b/drivers/net/bonding/bond_sysfs.c
@@ -42,7 +42,6 @@
#include <net/bonding.h>
-#define to_dev(obj) container_of(obj, struct device, kobj)
#define to_bond(cd) ((struct bonding *)(netdev_priv(to_net_dev(cd))))
/* "show" function for the bond_masters attribute.
--
2.5.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] bridge: use kobj_to_dev instead of to_dev
2015-12-23 12:42 [PATCH 1/2] bonding: drop unused to_dev macro in bond_sysfs.c Geliang Tang
@ 2015-12-23 12:42 ` Geliang Tang
2015-12-24 3:27 ` David Miller
2015-12-24 3:27 ` [PATCH 1/2] bonding: drop unused to_dev macro in bond_sysfs.c David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Geliang Tang @ 2015-12-23 12:42 UTC (permalink / raw)
To: Stephen Hemminger, David S. Miller
Cc: Geliang Tang, bridge, netdev, linux-kernel
kobj_to_dev has been defined in linux/device.h, so I replace to_dev
with it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
---
net/bridge/br_sysfs_br.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/bridge/br_sysfs_br.c b/net/bridge/br_sysfs_br.c
index 8365bd5..6b80914 100644
--- a/net/bridge/br_sysfs_br.c
+++ b/net/bridge/br_sysfs_br.c
@@ -22,7 +22,6 @@
#include "br_private.h"
-#define to_dev(obj) container_of(obj, struct device, kobj)
#define to_bridge(cd) ((struct net_bridge *)netdev_priv(to_net_dev(cd)))
/*
@@ -814,7 +813,7 @@ static ssize_t brforward_read(struct file *filp, struct kobject *kobj,
struct bin_attribute *bin_attr,
char *buf, loff_t off, size_t count)
{
- struct device *dev = to_dev(kobj);
+ struct device *dev = kobj_to_dev(kobj);
struct net_bridge *br = to_bridge(dev);
int n;
--
2.5.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] bonding: drop unused to_dev macro in bond_sysfs.c
2015-12-23 12:42 [PATCH 1/2] bonding: drop unused to_dev macro in bond_sysfs.c Geliang Tang
2015-12-23 12:42 ` [PATCH 2/2] bridge: use kobj_to_dev instead of to_dev Geliang Tang
@ 2015-12-24 3:27 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2015-12-24 3:27 UTC (permalink / raw)
To: geliangtang; +Cc: j.vosburgh, vfalico, gospo, netdev, linux-kernel
From: Geliang Tang <geliangtang@163.com>
Date: Wed, 23 Dec 2015 20:42:20 +0800
> to_dev is not used anymore so drop it.
>
> Signed-off-by: Geliang Tang <geliangtang@163.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] bridge: use kobj_to_dev instead of to_dev
2015-12-23 12:42 ` [PATCH 2/2] bridge: use kobj_to_dev instead of to_dev Geliang Tang
@ 2015-12-24 3:27 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2015-12-24 3:27 UTC (permalink / raw)
To: geliangtang; +Cc: netdev, bridge, linux-kernel
From: Geliang Tang <geliangtang@163.com>
Date: Wed, 23 Dec 2015 20:42:21 +0800
> kobj_to_dev has been defined in linux/device.h, so I replace to_dev
> with it.
>
> Signed-off-by: Geliang Tang <geliangtang@163.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-12-24 3:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-23 12:42 [PATCH 1/2] bonding: drop unused to_dev macro in bond_sysfs.c Geliang Tang
2015-12-23 12:42 ` [PATCH 2/2] bridge: use kobj_to_dev instead of to_dev Geliang Tang
2015-12-24 3:27 ` David Miller
2015-12-24 3:27 ` [PATCH 1/2] bonding: drop unused to_dev macro in bond_sysfs.c David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).