* [PATCH 0/6] Remove owner field from sysfs attribute structure
@ 2010-07-29 5:09 Guenter Roeck
2010-07-29 5:09 ` [PATCH 1/6] scsi: Remove owner field from attribute initialization in LPFC driver Guenter Roeck
` (7 more replies)
0 siblings, 8 replies; 19+ messages in thread
From: Guenter Roeck @ 2010-07-29 5:09 UTC (permalink / raw)
To: James E.J. Bottomley, Richard Purdie, Greg Kroah-Hartman,
Benjamin Herrenschmidt, Paul
Cc: Jean Delvare, Dmitry Torokhov, Liam Girdwood, Mark Brown,
Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Eric W. Biederman, Benjamin Thery, Tejun Heo,
linux-kernel, linux-scsi, linuxppc-dev, Guenter Roeck
The following comment is found in include/linux/sysfs.h:
/* FIXME
* The *owner field is no longer used.
* x86 tree has been cleaned up. The owner
* attribute is still left for other arches.
*/
As it turns out, the *owner field is (again?) initialized in several modules,
suggesting that such initialization may be creeping back into the code.
This patch set removes the above comment, the *owner field, and each instance
in the code where it was found to be initialized.
Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powerpc,
and sparc defconfig builds.
^ permalink raw reply [flat|nested] 19+ messages in thread
* [PATCH 1/6] scsi: Remove owner field from attribute initialization in LPFC driver
2010-07-29 5:09 [PATCH 0/6] Remove owner field from sysfs attribute structure Guenter Roeck
@ 2010-07-29 5:09 ` Guenter Roeck
2010-07-29 5:09 ` [PATCH 2/6] scsi: Remove owner field from attribute initialization in ARCMSR driver Guenter Roeck
` (6 subsequent siblings)
7 siblings, 0 replies; 19+ messages in thread
From: Guenter Roeck @ 2010-07-29 5:09 UTC (permalink / raw)
To: James E.J. Bottomley, Richard Purdie, Greg Kroah-Hartman,
Benjamin Herrenschmidt, Paul
Cc: Jean Delvare, Dmitry Torokhov, Liam Girdwood, Mark Brown,
Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Eric W. Biederman, Benjamin Thery, Tejun Heo,
linux-kernel, linux-scsi, linuxppc-dev, Guenter Roeck
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
drivers/scsi/lpfc/lpfc_attr.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c
index bf33b31..8f89edf 100644
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -2720,7 +2720,6 @@ static struct bin_attribute sysfs_drvr_stat_data_attr = {
.attr = {
.name = "lpfc_drvr_stat_data",
.mode = S_IRUSR,
- .owner = THIS_MODULE,
},
.size = LPFC_MAX_TARGET * MAX_STAT_DATA_SIZE_PER_TARGET,
.read = sysfs_drvr_stat_data_read,
--
1.7.0.87.g0901d
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 2/6] scsi: Remove owner field from attribute initialization in ARCMSR driver
2010-07-29 5:09 [PATCH 0/6] Remove owner field from sysfs attribute structure Guenter Roeck
2010-07-29 5:09 ` [PATCH 1/6] scsi: Remove owner field from attribute initialization in LPFC driver Guenter Roeck
@ 2010-07-29 5:09 ` Guenter Roeck
2010-07-29 5:09 ` [PATCH 3/6] leds: Remove owner field from attribute initialization in bd2802 driver Guenter Roeck
` (5 subsequent siblings)
7 siblings, 0 replies; 19+ messages in thread
From: Guenter Roeck @ 2010-07-29 5:09 UTC (permalink / raw)
To: James E.J. Bottomley, Richard Purdie, Greg Kroah-Hartman,
Benjamin Herrenschmidt, Paul
Cc: Jean Delvare, Dmitry Torokhov, Liam Girdwood, Mark Brown,
Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Eric W. Biederman, Benjamin Thery, Tejun Heo,
linux-kernel, linux-scsi, linuxppc-dev, Guenter Roeck
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
drivers/scsi/arcmsr/arcmsr_attr.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/arcmsr/arcmsr_attr.c b/drivers/scsi/arcmsr/arcmsr_attr.c
index 07fdfe5..a4e04c5 100644
--- a/drivers/scsi/arcmsr/arcmsr_attr.c
+++ b/drivers/scsi/arcmsr/arcmsr_attr.c
@@ -192,7 +192,6 @@ static struct bin_attribute arcmsr_sysfs_message_read_attr = {
.attr = {
.name = "mu_read",
.mode = S_IRUSR ,
- .owner = THIS_MODULE,
},
.size = 1032,
.read = arcmsr_sysfs_iop_message_read,
@@ -202,7 +201,6 @@ static struct bin_attribute arcmsr_sysfs_message_write_attr = {
.attr = {
.name = "mu_write",
.mode = S_IWUSR,
- .owner = THIS_MODULE,
},
.size = 1032,
.write = arcmsr_sysfs_iop_message_write,
@@ -212,7 +210,6 @@ static struct bin_attribute arcmsr_sysfs_message_clear_attr = {
.attr = {
.name = "mu_clear",
.mode = S_IWUSR,
- .owner = THIS_MODULE,
},
.size = 1,
.write = arcmsr_sysfs_iop_message_clear,
--
1.7.0.87.g0901d
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 3/6] leds: Remove owner field from attribute initialization in bd2802 driver
2010-07-29 5:09 [PATCH 0/6] Remove owner field from sysfs attribute structure Guenter Roeck
2010-07-29 5:09 ` [PATCH 1/6] scsi: Remove owner field from attribute initialization in LPFC driver Guenter Roeck
2010-07-29 5:09 ` [PATCH 2/6] scsi: Remove owner field from attribute initialization in ARCMSR driver Guenter Roeck
@ 2010-07-29 5:09 ` Guenter Roeck
2010-07-29 5:09 ` [PATCH 4/6] regulator: Remove owner field from attribute initialization in regulator core driver Guenter Roeck
` (4 subsequent siblings)
7 siblings, 0 replies; 19+ messages in thread
From: Guenter Roeck @ 2010-07-29 5:09 UTC (permalink / raw)
To: James E.J. Bottomley, Richard Purdie, Greg Kroah-Hartman,
Benjamin Herrenschmidt, Paul
Cc: Jean Delvare, Dmitry Torokhov, Liam Girdwood, Mark Brown,
Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Eric W. Biederman, Benjamin Thery, Tejun Heo,
linux-kernel, linux-scsi, linuxppc-dev, Guenter Roeck
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
drivers/leds/leds-bd2802.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/drivers/leds/leds-bd2802.c b/drivers/leds/leds-bd2802.c
index 5dcdf9d..19dc4b6 100644
--- a/drivers/leds/leds-bd2802.c
+++ b/drivers/leds/leds-bd2802.c
@@ -351,7 +351,7 @@ static ssize_t bd2802_store_reg##reg_addr(struct device *dev, \
return count; \
} \
static struct device_attribute bd2802_reg##reg_addr##_attr = { \
- .attr = {.name = reg_name, .mode = 0644, .owner = THIS_MODULE}, \
+ .attr = {.name = reg_name, .mode = 0644}, \
.store = bd2802_store_reg##reg_addr, \
};
@@ -482,7 +482,6 @@ static struct device_attribute bd2802_adv_conf_attr = {
.attr = {
.name = "advanced_configuration",
.mode = 0644,
- .owner = THIS_MODULE
},
.show = bd2802_show_adv_conf,
.store = bd2802_store_adv_conf,
@@ -519,7 +518,6 @@ static struct device_attribute bd2802_##attr_name##_attr = { \
.attr = { \
.name = name_str, \
.mode = 0644, \
- .owner = THIS_MODULE \
}, \
.show = bd2802_show_##attr_name, \
.store = bd2802_store_##attr_name, \
--
1.7.0.87.g0901d
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 4/6] regulator: Remove owner field from attribute initialization in regulator core driver
2010-07-29 5:09 [PATCH 0/6] Remove owner field from sysfs attribute structure Guenter Roeck
` (2 preceding siblings ...)
2010-07-29 5:09 ` [PATCH 3/6] leds: Remove owner field from attribute initialization in bd2802 driver Guenter Roeck
@ 2010-07-29 5:09 ` Guenter Roeck
2010-07-29 17:15 ` Mark Brown
2010-07-29 5:09 ` [PATCH 5/6] powerpc/pci: Remove owner field from attribute initialization in PCI bridge init Guenter Roeck
` (3 subsequent siblings)
7 siblings, 1 reply; 19+ messages in thread
From: Guenter Roeck @ 2010-07-29 5:09 UTC (permalink / raw)
To: James E.J. Bottomley, Richard Purdie, Greg Kroah-Hartman,
Benjamin Herrenschmidt, Paul
Cc: Jean Delvare, Dmitry Torokhov, Liam Girdwood, Mark Brown,
Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Eric W. Biederman, Benjamin Thery, Tejun Heo,
linux-kernel, linux-scsi, linuxppc-dev, Guenter Roeck
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
drivers/regulator/core.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 2248087..422a709 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1025,7 +1025,6 @@ static struct regulator *create_regulator(struct regulator_dev *rdev,
if (regulator->dev_attr.attr.name == NULL)
goto attr_name_err;
- regulator->dev_attr.attr.owner = THIS_MODULE;
regulator->dev_attr.attr.mode = 0444;
regulator->dev_attr.show = device_requested_uA_show;
err = device_create_file(dev, ®ulator->dev_attr);
--
1.7.0.87.g0901d
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 5/6] powerpc/pci: Remove owner field from attribute initialization in PCI bridge init
2010-07-29 5:09 [PATCH 0/6] Remove owner field from sysfs attribute structure Guenter Roeck
` (3 preceding siblings ...)
2010-07-29 5:09 ` [PATCH 4/6] regulator: Remove owner field from attribute initialization in regulator core driver Guenter Roeck
@ 2010-07-29 5:09 ` Guenter Roeck
2010-07-29 5:09 ` [PATCH 6/6] Remove owner field from sysfs struct attribute Guenter Roeck
` (2 subsequent siblings)
7 siblings, 0 replies; 19+ messages in thread
From: Guenter Roeck @ 2010-07-29 5:09 UTC (permalink / raw)
To: James E.J. Bottomley, Richard Purdie, Greg Kroah-Hartman,
Benjamin Herrenschmidt, Paul
Cc: Jean Delvare, Dmitry Torokhov, Liam Girdwood, Mark Brown,
Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Eric W. Biederman, Benjamin Thery, Tejun Heo,
linux-kernel, linux-scsi, linuxppc-dev, Guenter Roeck
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
arch/powerpc/sysdev/mv64x60_pci.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/sysdev/mv64x60_pci.c b/arch/powerpc/sysdev/mv64x60_pci.c
index 198f288..77bb3f4 100644
--- a/arch/powerpc/sysdev/mv64x60_pci.c
+++ b/arch/powerpc/sysdev/mv64x60_pci.c
@@ -73,7 +73,6 @@ static struct bin_attribute mv64x60_hs_reg_attr = { /* Hotswap register */
.attr = {
.name = "hs_reg",
.mode = S_IRUGO | S_IWUSR,
- .owner = THIS_MODULE,
},
.size = MV64X60_VAL_LEN_MAX,
.read = mv64x60_hs_reg_read,
--
1.7.0.87.g0901d
^ permalink raw reply related [flat|nested] 19+ messages in thread
* [PATCH 6/6] Remove owner field from sysfs struct attribute
2010-07-29 5:09 [PATCH 0/6] Remove owner field from sysfs attribute structure Guenter Roeck
` (4 preceding siblings ...)
2010-07-29 5:09 ` [PATCH 5/6] powerpc/pci: Remove owner field from attribute initialization in PCI bridge init Guenter Roeck
@ 2010-07-29 5:09 ` Guenter Roeck
2010-07-29 6:16 ` [PATCH 0/6] Remove owner field from sysfs attribute structure Eric Biederman
2010-07-30 8:45 ` Tejun Heo
7 siblings, 0 replies; 19+ messages in thread
From: Guenter Roeck @ 2010-07-29 5:09 UTC (permalink / raw)
To: James E.J. Bottomley, Richard Purdie, Greg Kroah-Hartman,
Benjamin Herrenschmidt, Paul
Cc: Jean Delvare, Dmitry Torokhov, Liam Girdwood, Mark Brown,
Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Eric W. Biederman, Benjamin Thery, Tejun Heo,
linux-kernel, linux-scsi, linuxppc-dev, Guenter Roeck
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
include/linux/sysfs.h | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
index f2694eb..880fa1a 100644
--- a/include/linux/sysfs.h
+++ b/include/linux/sysfs.h
@@ -22,14 +22,8 @@ struct kobject;
struct module;
enum kobj_ns_type;
-/* FIXME
- * The *owner field is no longer used.
- * x86 tree has been cleaned up. The owner
- * attribute is still left for other arches.
- */
struct attribute {
const char *name;
- struct module *owner;
mode_t mode;
#ifdef CONFIG_DEBUG_LOCK_ALLOC
struct lock_class_key *key;
--
1.7.0.87.g0901d
^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-07-29 5:09 [PATCH 0/6] Remove owner field from sysfs attribute structure Guenter Roeck
` (5 preceding siblings ...)
2010-07-29 5:09 ` [PATCH 6/6] Remove owner field from sysfs struct attribute Guenter Roeck
@ 2010-07-29 6:16 ` Eric Biederman
2010-08-02 23:31 ` Greg KH
2010-07-30 8:45 ` Tejun Heo
7 siblings, 1 reply; 19+ messages in thread
From: Eric Biederman @ 2010-07-29 6:16 UTC (permalink / raw)
To: Guenter Roeck
Cc: James E.J. Bottomley, Richard Purdie, Greg Kroah-Hartman,
Benjamin Herrenschmidt, Paul Mackerras, Jean Delvare,
Dmitry Torokhov, Liam Girdwood, Mark Brown, Jani Nikula,
Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Benjamin Thery, Tejun Heo, linux-kernel,
linux-scsi, linuxppc-dev
On Wed, Jul 28, 2010 at 10:09 PM, Guenter Roeck
<guenter.roeck@ericsson.com> wrote:
> The following comment is found in include/linux/sysfs.h:
>
> /* FIXME
> * The *owner field is no longer used.
> * x86 tree has been cleaned up. The owner
> * attribute is still left for other arches.
> */
>
> As it turns out, the *owner field is (again?) initialized in several modules,
> suggesting that such initialization may be creeping back into the code.
>
> This patch set removes the above comment, the *owner field, and each instance
> in the code where it was found to be initialized.
>
> Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powerpc,
> and sparc defconfig builds.
This seems reasonable to me. Can we get this in linux-next?
Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 4/6] regulator: Remove owner field from attribute initialization in regulator core driver
2010-07-29 5:09 ` [PATCH 4/6] regulator: Remove owner field from attribute initialization in regulator core driver Guenter Roeck
@ 2010-07-29 17:15 ` Mark Brown
0 siblings, 0 replies; 19+ messages in thread
From: Mark Brown @ 2010-07-29 17:15 UTC (permalink / raw)
To: Guenter Roeck
Cc: James E.J. Bottomley, Richard Purdie, Greg Kroah-Hartman,
Benjamin Herrenschmidt, Paul Mackerras, Jean Delvare,
Dmitry Torokhov, Liam Girdwood, Jani Nikula, Linus Walleij,
Chris Wright, Nick Cheng, James Smart, Alex Iannicelli,
Eric W. Biederman, Benjamin Thery, Tejun Heo, linux-kernel,
linux-scsi, linuxppc-dev
On Wed, Jul 28, 2010 at 10:09:24PM -0700, Guenter Roeck wrote:
> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-07-29 5:09 [PATCH 0/6] Remove owner field from sysfs attribute structure Guenter Roeck
` (6 preceding siblings ...)
2010-07-29 6:16 ` [PATCH 0/6] Remove owner field from sysfs attribute structure Eric Biederman
@ 2010-07-30 8:45 ` Tejun Heo
2010-07-30 10:28 ` Benjamin Herrenschmidt
7 siblings, 1 reply; 19+ messages in thread
From: Tejun Heo @ 2010-07-30 8:45 UTC (permalink / raw)
To: Guenter Roeck
Cc: Mark Brown, Jani Nikula, Linus Walleij, James Smart,
Eric W. Biederman, Greg Kroah-Hartman, linux-kernel, Chris Wright,
linuxppc-dev, James E.J. Bottomley, Richard Purdie, Nick Cheng,
Dmitry Torokhov, Jean Delvare, Paul Mackerras, Benjamin Thery,
linux-scsi, Alex Iannicelli, Liam Girdwood
On 07/29/2010 07:09 AM, Guenter Roeck wrote:
> The following comment is found in include/linux/sysfs.h:
>
> /* FIXME
> * The *owner field is no longer used.
> * x86 tree has been cleaned up. The owner
> * attribute is still left for other arches.
> */
>
> As it turns out, the *owner field is (again?) initialized in several modules,
> suggesting that such initialization may be creeping back into the code.
>
> This patch set removes the above comment, the *owner field, and each instance
> in the code where it was found to be initialized.
>
> Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powerpc,
> and sparc defconfig builds.
Yeah, the change is way overdue. Maybe we should have just removed
them back then.
Acked-by: Tejun Heo <tj@kernel.org>
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-07-30 8:45 ` Tejun Heo
@ 2010-07-30 10:28 ` Benjamin Herrenschmidt
2010-07-30 14:36 ` Greg KH
0 siblings, 1 reply; 19+ messages in thread
From: Benjamin Herrenschmidt @ 2010-07-30 10:28 UTC (permalink / raw)
To: Tejun Heo
Cc: Mark Brown, Linus Walleij, James Smart, Eric W. Biederman,
Dmitry Torokhov, Benjamin Thery, Greg Kroah-Hartman, linux-kernel,
Chris Wright, linuxppc-dev, James E.J. Bottomley, Paul Mackerras,
Nick Cheng, Jani Nikula, Jean Delvare, Richard Purdie,
Liam Girdwood, linux-scsi, Alex Iannicelli, Guenter Roeck
On Fri, 2010-07-30 at 10:45 +0200, Tejun Heo wrote:
> On 07/29/2010 07:09 AM, Guenter Roeck wrote:
> > The following comment is found in include/linux/sysfs.h:
> >
> > /* FIXME
> > * The *owner field is no longer used.
> > * x86 tree has been cleaned up. The owner
> > * attribute is still left for other arches.
> > */
> >
> > As it turns out, the *owner field is (again?) initialized in several modules,
> > suggesting that such initialization may be creeping back into the code.
> >
> > This patch set removes the above comment, the *owner field, and each instance
> > in the code where it was found to be initialized.
> >
> > Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powerpc,
> > and sparc defconfig builds.
>
> Yeah, the change is way overdue. Maybe we should have just removed
> them back then.
I'm happy with the powerpc related patches as long as we all agree that
needs to go. Do you need me to put some of this in powerpc.git or are
you carrying them all to Linus ?
Cheers,
Ben.
> Acked-by: Tejun Heo <tj@kernel.org>
>
> Thanks.
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-07-30 10:28 ` Benjamin Herrenschmidt
@ 2010-07-30 14:36 ` Greg KH
2010-08-02 16:15 ` Guenter Roeck
0 siblings, 1 reply; 19+ messages in thread
From: Greg KH @ 2010-07-30 14:36 UTC (permalink / raw)
To: Benjamin Herrenschmidt
Cc: Tejun Heo, Guenter Roeck, James E.J. Bottomley, Richard Purdie,
Paul Mackerras, Jean Delvare, Dmitry Torokhov, Liam Girdwood,
Mark Brown, Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng,
James Smart, Alex Iannicelli, Eric W. Biederman, Benjamin Thery,
linux-kernel, linux-scsi, linuxppc-dev
On Fri, Jul 30, 2010 at 08:28:10PM +1000, Benjamin Herrenschmidt wrote:
> On Fri, 2010-07-30 at 10:45 +0200, Tejun Heo wrote:
> > On 07/29/2010 07:09 AM, Guenter Roeck wrote:
> > > The following comment is found in include/linux/sysfs.h:
> > >
> > > /* FIXME
> > > * The *owner field is no longer used.
> > > * x86 tree has been cleaned up. The owner
> > > * attribute is still left for other arches.
> > > */
> > >
> > > As it turns out, the *owner field is (again?) initialized in several modules,
> > > suggesting that such initialization may be creeping back into the code.
> > >
> > > This patch set removes the above comment, the *owner field, and each instance
> > > in the code where it was found to be initialized.
> > >
> > > Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powerpc,
> > > and sparc defconfig builds.
> >
> > Yeah, the change is way overdue. Maybe we should have just removed
> > them back then.
>
> I'm happy with the powerpc related patches as long as we all agree that
> needs to go. Do you need me to put some of this in powerpc.git or are
> you carrying them all to Linus ?
I can carry them all in my driver-core tree if you don't object.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-07-30 14:36 ` Greg KH
@ 2010-08-02 16:15 ` Guenter Roeck
2010-08-02 16:53 ` Greg KH
0 siblings, 1 reply; 19+ messages in thread
From: Guenter Roeck @ 2010-08-02 16:15 UTC (permalink / raw)
To: Greg KH
Cc: Benjamin Herrenschmidt, Tejun Heo, James E.J. Bottomley,
Richard Purdie, Paul Mackerras, Jean Delvare, Dmitry Torokhov,
Liam Girdwood, Mark Brown, Jani Nikula, Linus Walleij,
Chris Wright, Nick Cheng, James Smart, Alex Iannicelli,
Eric W. Biederman, Benjamin Thery, linux-kernel@vger.kernel.org,
linux-scsi@vger.kernel.org, linuxppc-dev@ozlabs.org
On Fri, 2010-07-30 at 10:36 -0400, Greg KH wrote:
> On Fri, Jul 30, 2010 at 08:28:10PM +1000, Benjamin Herrenschmidt wrote:
> > On Fri, 2010-07-30 at 10:45 +0200, Tejun Heo wrote:
> > > On 07/29/2010 07:09 AM, Guenter Roeck wrote:
> > > > The following comment is found in include/linux/sysfs.h:
> > > >
> > > > /* FIXME
> > > > * The *owner field is no longer used.
> > > > * x86 tree has been cleaned up. The owner
> > > > * attribute is still left for other arches.
> > > > */
> > > >
> > > > As it turns out, the *owner field is (again?) initialized in several modules,
> > > > suggesting that such initialization may be creeping back into the code.
> > > >
> > > > This patch set removes the above comment, the *owner field, and each instance
> > > > in the code where it was found to be initialized.
> > > >
> > > > Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powerpc,
> > > > and sparc defconfig builds.
> > >
> > > Yeah, the change is way overdue. Maybe we should have just removed
> > > them back then.
> >
> > I'm happy with the powerpc related patches as long as we all agree that
> > needs to go. Do you need me to put some of this in powerpc.git or are
> > you carrying them all to Linus ?
>
> I can carry them all in my driver-core tree if you don't object.
>
Any final verdict ?
Not that it is my decision to make, but I think it would be better to
have it all in one tree. Otherwise the timing for the last patch would
get a bit complicated.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-08-02 16:15 ` Guenter Roeck
@ 2010-08-02 16:53 ` Greg KH
0 siblings, 0 replies; 19+ messages in thread
From: Greg KH @ 2010-08-02 16:53 UTC (permalink / raw)
To: Guenter Roeck
Cc: Benjamin Herrenschmidt, Tejun Heo, James E.J. Bottomley,
Richard Purdie, Paul Mackerras, Jean Delvare, Dmitry Torokhov,
Liam Girdwood, Mark Brown, Jani Nikula, Linus Walleij,
Chris Wright, Nick Cheng, James Smart, Alex Iannicelli,
Eric W. Biederman, Benjamin Thery, linux-kernel@vger.kernel.org,
linux-scsi@vger.kernel.org, linuxppc-dev@ozlabs.org
On Mon, Aug 02, 2010 at 09:15:24AM -0700, Guenter Roeck wrote:
> On Fri, 2010-07-30 at 10:36 -0400, Greg KH wrote:
> > On Fri, Jul 30, 2010 at 08:28:10PM +1000, Benjamin Herrenschmidt wrote:
> > > On Fri, 2010-07-30 at 10:45 +0200, Tejun Heo wrote:
> > > > On 07/29/2010 07:09 AM, Guenter Roeck wrote:
> > > > > The following comment is found in include/linux/sysfs.h:
> > > > >
> > > > > /* FIXME
> > > > > * The *owner field is no longer used.
> > > > > * x86 tree has been cleaned up. The owner
> > > > > * attribute is still left for other arches.
> > > > > */
> > > > >
> > > > > As it turns out, the *owner field is (again?) initialized in several modules,
> > > > > suggesting that such initialization may be creeping back into the code.
> > > > >
> > > > > This patch set removes the above comment, the *owner field, and each instance
> > > > > in the code where it was found to be initialized.
> > > > >
> > > > > Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powerpc,
> > > > > and sparc defconfig builds.
> > > >
> > > > Yeah, the change is way overdue. Maybe we should have just removed
> > > > them back then.
> > >
> > > I'm happy with the powerpc related patches as long as we all agree that
> > > needs to go. Do you need me to put some of this in powerpc.git or are
> > > you carrying them all to Linus ?
> >
> > I can carry them all in my driver-core tree if you don't object.
> >
> Any final verdict ?
>
> Not that it is my decision to make, but I think it would be better to
> have it all in one tree. Otherwise the timing for the last patch would
> get a bit complicated.
I'll take it.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-07-29 6:16 ` [PATCH 0/6] Remove owner field from sysfs attribute structure Eric Biederman
@ 2010-08-02 23:31 ` Greg KH
2010-08-10 13:43 ` Jean Delvare
0 siblings, 1 reply; 19+ messages in thread
From: Greg KH @ 2010-08-02 23:31 UTC (permalink / raw)
To: Eric Biederman
Cc: Guenter Roeck, James E.J. Bottomley, Richard Purdie,
Greg Kroah-Hartman, Benjamin Herrenschmidt, Paul Mackerras,
Jean Delvare, Dmitry Torokhov, Liam Girdwood, Mark Brown,
Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Benjamin Thery, Tejun Heo, linux-kernel,
linux-scsi, linuxppc-dev
On Wed, Jul 28, 2010 at 11:16:35PM -0700, Eric Biederman wrote:
> On Wed, Jul 28, 2010 at 10:09 PM, Guenter Roeck
> <guenter.roeck@ericsson.com> wrote:
> > The following comment is found in include/linux/sysfs.h:
> >
> > /* FIXME
> > * The *owner field is no longer used.
> > * x86 tree has been cleaned up. The owner
> > * attribute is still left for other arches.
> > */
> >
> > As it turns out, the *owner field is (again?) initialized in several modules,
> > suggesting that such initialization may be creeping back into the code.
> >
> > This patch set removes the above comment, the *owner field, and each instance
> > in the code where it was found to be initialized.
> >
> > Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powerpc,
> > and sparc defconfig builds.
>
> This seems reasonable to me. Can we get this in linux-next?
It will show up in linux-next tomorrow.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-08-02 23:31 ` Greg KH
@ 2010-08-10 13:43 ` Jean Delvare
2010-08-10 15:17 ` Stephen Rothwell
0 siblings, 1 reply; 19+ messages in thread
From: Jean Delvare @ 2010-08-10 13:43 UTC (permalink / raw)
To: Greg KH
Cc: Eric Biederman, Guenter Roeck, James E.J. Bottomley,
Richard Purdie, Greg Kroah-Hartman, Benjamin Herrenschmidt,
Paul Mackerras, Dmitry Torokhov, Liam Girdwood, Mark Brown,
Jani Nikula, Linus Walleij, Chris Wright, Nick Cheng, James Smart,
Alex Iannicelli, Benjamin Thery, Tejun Heo, linux-kernel,
linux-scsi, linuxppc-dev
On Mon, 2 Aug 2010 16:31:28 -0700, Greg KH wrote:
> On Wed, Jul 28, 2010 at 11:16:35PM -0700, Eric Biederman wrote:
> > On Wed, Jul 28, 2010 at 10:09 PM, Guenter Roeck
> > <guenter.roeck@ericsson.com> wrote:
> > > The following comment is found in include/linux/sysfs.h:
> > >
> > > /* FIXME
> > > * The *owner field is no longer used.
> > > * x86 tree has been cleaned up. The owner
> > > * attribute is still left for other arches.
> > > */
> > >
> > > As it turns out, the *owner field is (again?) initialized in several modules,
> > > suggesting that such initialization may be creeping back into the code.
> > >
> > > This patch set removes the above comment, the *owner field, and each instance
> > > in the code where it was found to be initialized.
> > >
> > > Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powerpc,
> > > and sparc defconfig builds.
> >
> > This seems reasonable to me. Can we get this in linux-next?
>
> It will show up in linux-next tomorrow.
Related bug?
https://bugzilla.kernel.org/show_bug.cgi?id=16544
--
Jean Delvare
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-08-10 13:43 ` Jean Delvare
@ 2010-08-10 15:17 ` Stephen Rothwell
2010-08-10 15:20 ` Stephen Rothwell
0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2010-08-10 15:17 UTC (permalink / raw)
To: Jean Delvare
Cc: Greg KH, Mark Brown, Jani Nikula, Linus Walleij, James Smart,
Eric Biederman, Benjamin Thery, Greg Kroah-Hartman, linux-kernel,
Chris Wright, linuxppc-dev, James E.J. Bottomley, Richard Purdie,
Nick Cheng, Dmitry Torokhov, Tejun Heo, Paul Mackerras,
Liam Girdwood, linux-scsi, Alex Iannicelli, Guenter Roeck
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
Hi Jean,
On Tue, 10 Aug 2010 15:43:37 +0200 Jean Delvare <khali@linux-fr.org> wrote:
>
> Related bug?
>
> https://bugzilla.kernel.org/show_bug.cgi?id=16544
Yep, fixed in linux-next today - hopefully the fix is on its way to Linus.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-08-10 15:17 ` Stephen Rothwell
@ 2010-08-10 15:20 ` Stephen Rothwell
2010-08-10 16:43 ` Guenter Roeck
0 siblings, 1 reply; 19+ messages in thread
From: Stephen Rothwell @ 2010-08-10 15:20 UTC (permalink / raw)
To: Jean Delvare
Cc: Greg KH, Mark Brown, Jani Nikula, Linus Walleij, James Smart,
Eric Biederman, Benjamin Thery, Greg Kroah-Hartman, linux-kernel,
Chris Wright, linuxppc-dev, James E.J. Bottomley, Richard Purdie,
Nick Cheng, Dmitry Torokhov, Tejun Heo, Paul Mackerras,
Liam Girdwood, linux-scsi, Alex Iannicelli, Guenter Roeck,
David Woodhouse
[-- Attachment #1: Type: text/plain, Size: 615 bytes --]
Hi Jean,
On Wed, 11 Aug 2010 01:17:33 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> On Tue, 10 Aug 2010 15:43:37 +0200 Jean Delvare <khali@linux-fr.org> wrote:
> >
> > Related bug?
> >
> > https://bugzilla.kernel.org/show_bug.cgi?id=16544
>
> Yep, fixed in linux-next today - hopefully the fix is on its way to Linus.
Sorry, more info:
Fixed by commit 690e85a3957291f4cfe0cac22d97994ec7e5ee45 ("olpc_battery:
Fix build failure caused by sysfs changes") from the battery tree.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
2010-08-10 15:20 ` Stephen Rothwell
@ 2010-08-10 16:43 ` Guenter Roeck
0 siblings, 0 replies; 19+ messages in thread
From: Guenter Roeck @ 2010-08-10 16:43 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Mark Brown, David Woodhouse, James Smart, Greg KH,
linuxppc-dev@ozlabs.org, James E.J. Bottomley, Paul Mackerras,
Nick Cheng, linux-scsi@vger.kernel.org, Eric Biederman,
Alex Iannicelli, Benjamin Thery, Chris Wright, Tejun Heo,
Liam Girdwood, Linus Walleij, Dmitry Torokhov, Greg Kroah-Hartman,
linux-kernel@vger.kernel.org, Richard Purdie, Jani Nikula
On Tue, 2010-08-10 at 11:20 -0400, Stephen Rothwell wrote:
> Hi Jean,
>
> On Wed, 11 Aug 2010 01:17:33 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > On Tue, 10 Aug 2010 15:43:37 +0200 Jean Delvare <khali@linux-fr.org> wrote:
> > >
> > > Related bug?
> > >
> > > https://bugzilla.kernel.org/show_bug.cgi?id=16544
> >
> > Yep, fixed in linux-next today - hopefully the fix is on its way to Linus.
>
> Sorry, more info:
>
> Fixed by commit 690e85a3957291f4cfe0cac22d97994ec7e5ee45 ("olpc_battery:
> Fix build failure caused by sysfs changes") from the battery tree.
Excellent. Guess the patch I sent out earlier today to fix the problem
wasn't needed then.
Guenter
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2010-08-10 16:43 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-29 5:09 [PATCH 0/6] Remove owner field from sysfs attribute structure Guenter Roeck
2010-07-29 5:09 ` [PATCH 1/6] scsi: Remove owner field from attribute initialization in LPFC driver Guenter Roeck
2010-07-29 5:09 ` [PATCH 2/6] scsi: Remove owner field from attribute initialization in ARCMSR driver Guenter Roeck
2010-07-29 5:09 ` [PATCH 3/6] leds: Remove owner field from attribute initialization in bd2802 driver Guenter Roeck
2010-07-29 5:09 ` [PATCH 4/6] regulator: Remove owner field from attribute initialization in regulator core driver Guenter Roeck
2010-07-29 17:15 ` Mark Brown
2010-07-29 5:09 ` [PATCH 5/6] powerpc/pci: Remove owner field from attribute initialization in PCI bridge init Guenter Roeck
2010-07-29 5:09 ` [PATCH 6/6] Remove owner field from sysfs struct attribute Guenter Roeck
2010-07-29 6:16 ` [PATCH 0/6] Remove owner field from sysfs attribute structure Eric Biederman
2010-08-02 23:31 ` Greg KH
2010-08-10 13:43 ` Jean Delvare
2010-08-10 15:17 ` Stephen Rothwell
2010-08-10 15:20 ` Stephen Rothwell
2010-08-10 16:43 ` Guenter Roeck
2010-07-30 8:45 ` Tejun Heo
2010-07-30 10:28 ` Benjamin Herrenschmidt
2010-07-30 14:36 ` Greg KH
2010-08-02 16:15 ` Guenter Roeck
2010-08-02 16:53 ` Greg KH
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).