linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [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; 18+ 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 Mackerras
  Cc: Guenter Roeck, Nick Cheng, Linus Walleij, James Smart,
	linuxppc-dev, Eric W. Biederman, Dmitry Torokhov, Mark Brown,
	linux-kernel, Chris Wright, Tejun Heo, Alex Iannicelli,
	Jani Nikula, Jean Delvare, Benjamin Thery, linux-scsi,
	Liam Girdwood

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] 18+ 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; 18+ 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 Mackerras
  Cc: Guenter Roeck, Nick Cheng, Linus Walleij, James Smart,
	linuxppc-dev, Eric W. Biederman, Dmitry Torokhov, Mark Brown,
	linux-kernel, Chris Wright, Tejun Heo, Alex Iannicelli,
	Jani Nikula, Jean Delvare, Benjamin Thery, linux-scsi,
	Liam Girdwood

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] 18+ 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; 18+ 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 Mackerras
  Cc: Guenter Roeck, Nick Cheng, Linus Walleij, James Smart,
	linuxppc-dev, Eric W. Biederman, Dmitry Torokhov, Mark Brown,
	linux-kernel, Chris Wright, Tejun Heo, Alex Iannicelli,
	Jani Nikula, Jean Delvare, Benjamin Thery, linux-scsi,
	Liam Girdwood

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] 18+ 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 5/6] powerpc/pci: Remove owner field from attribute initialization in PCI bridge init Guenter Roeck
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 18+ 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 Mackerras
  Cc: Guenter Roeck, Nick Cheng, Linus Walleij, James Smart,
	linuxppc-dev, Eric W. Biederman, Dmitry Torokhov, Mark Brown,
	linux-kernel, Chris Wright, Tejun Heo, Alex Iannicelli,
	Jani Nikula, Jean Delvare, Benjamin Thery, linux-scsi,
	Liam Girdwood

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] 18+ 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
                   ` (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  5:09 ` [PATCH 6/6] Remove owner field from sysfs struct attribute Guenter Roeck
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 18+ 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 Mackerras
  Cc: Guenter Roeck, Nick Cheng, Linus Walleij, James Smart,
	linuxppc-dev, Eric W. Biederman, Dmitry Torokhov, Mark Brown,
	linux-kernel, Chris Wright, Tejun Heo, Alex Iannicelli,
	Jani Nikula, Jean Delvare, Benjamin Thery, linux-scsi,
	Liam Girdwood

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] 18+ 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
                   ` (3 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
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 18+ 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 Mackerras
  Cc: Guenter Roeck, Nick Cheng, Linus Walleij, James Smart,
	linuxppc-dev, Eric W. Biederman, Dmitry Torokhov, Mark Brown,
	linux-kernel, Chris Wright, Tejun Heo, Alex Iannicelli,
	Jani Nikula, Jean Delvare, Benjamin Thery, linux-scsi,
	Liam Girdwood

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] 18+ 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
                   ` (4 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
       [not found] ` <1280380166-29196-5-git-send-email-guenter.roeck@ericsson.com>
  2010-07-30  8:45 ` [PATCH 0/6] Remove owner field from sysfs attribute structure Tejun Heo
  7 siblings, 1 reply; 18+ messages in thread
From: Eric Biederman @ 2010-07-29  6:16 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Mark Brown, Jani Nikula, Linus Walleij, James Smart,
	linuxppc-dev, Greg Kroah-Hartman, linux-kernel, Chris Wright,
	Tejun Heo, James E.J. Bottomley, Richard Purdie, Nick Cheng,
	Dmitry Torokhov, Jean Delvare, Paul Mackerras, Benjamin Thery,
	linux-scsi, Alex Iannicelli, Liam Girdwood

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:
>
> =A0 /* FIXME
> =A0 =A0* The *owner field is no longer used.
> =A0 =A0* x86 tree has been cleaned up. The owner
> =A0 =A0* attribute is still left for other arches.
> =A0 =A0*/
>
> As it turns out, the *owner field is (again?) initialized in several modu=
les,
> suggesting that such initialization may be creeping back into the code.
>
> This patch set removes the above comment, the *owner field, and each inst=
ance
> in the code where it was found to be initialized.
>
> Compiled with x86 allmodconfig as well as with all alpha, arm, mips, powe=
rpc,
> and sparc defconfig builds.

This seems reasonable to me.  Can we get this in linux-next?

Eric

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [PATCH 4/6] regulator: Remove owner field from attribute initialization in regulator core driver
       [not found] ` <1280380166-29196-5-git-send-email-guenter.roeck@ericsson.com>
@ 2010-07-29 17:15   ` Mark Brown
  0 siblings, 0 replies; 18+ messages in thread
From: Mark Brown @ 2010-07-29 17:15 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Nick Cheng, Jani Nikula, Linus Walleij, James Smart,
	linuxppc-dev, Eric W. Biederman, Greg Kroah-Hartman,
	linux-kernel, Chris Wright, Tejun Heo, James E.J. Bottomley,
	Richard Purdie, Alex Iannicelli, Dmitry Torokhov, Jean Delvare,
	Paul Mackerras, Benjamin Thery, linux-scsi, Liam Girdwood

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] 18+ 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 ...)
       [not found] ` <1280380166-29196-5-git-send-email-guenter.roeck@ericsson.com>
@ 2010-07-30  8:45 ` Tejun Heo
  2010-07-30 10:28   ` Benjamin Herrenschmidt
  7 siblings, 1 reply; 18+ 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] 18+ messages in thread

* Re: [PATCH 0/6] Remove owner field from sysfs attribute structure
  2010-07-30  8:45 ` [PATCH 0/6] Remove owner field from sysfs attribute structure Tejun Heo
@ 2010-07-30 10:28   ` Benjamin Herrenschmidt
  2010-07-30 14:36     ` Greg KH
  0 siblings, 1 reply; 18+ 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] 18+ 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; 18+ messages in thread
From: Greg KH @ 2010-07-30 14:36 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: Nick Cheng, Linus Walleij, James Smart, linuxppc-dev,
	Eric W. Biederman, Dmitry Torokhov, Benjamin Thery, Mark Brown,
	linux-kernel, Chris Wright, Jean Delvare, James E.J. Bottomley,
	Paul Mackerras, Alex Iannicelli, Jani Nikula, Tejun Heo,
	Richard Purdie, Liam Girdwood, linux-scsi, Guenter Roeck

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] 18+ 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; 18+ messages in thread
From: Guenter Roeck @ 2010-08-02 16:15 UTC (permalink / raw)
  To: Greg KH
  Cc: Nick Cheng, Jani Nikula, Linus Walleij, James Smart,
	linuxppc-dev, Eric W. Biederman, Mark Brown, linux-kernel,
	Chris Wright, Jean Delvare, James E.J. Bottomley, Richard Purdie,
	Alex Iannicelli, Dmitry Torokhov, Tejun Heo, Paul Mackerras,
	Benjamin Thery, linux-scsi, Liam Girdwood

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] 18+ 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; 18+ messages in thread
From: Greg KH @ 2010-08-02 16:53 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Nick Cheng, Jani Nikula, Linus Walleij, James Smart,
	linuxppc-dev, Eric W. Biederman, Mark Brown, linux-kernel,
	Chris Wright, Jean Delvare, James E.J. Bottomley, Richard Purdie,
	Alex Iannicelli, Dmitry Torokhov, Tejun Heo, Paul Mackerras,
	Benjamin Thery, linux-scsi, Liam Girdwood

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] 18+ 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; 18+ messages in thread
From: Greg KH @ 2010-08-02 23:31 UTC (permalink / raw)
  To: Eric Biederman
  Cc: Mark Brown, Jani Nikula, Linus Walleij, James Smart,
	linuxppc-dev, Benjamin Thery, Greg Kroah-Hartman, linux-kernel,
	Chris Wright, Tejun Heo, James E.J. Bottomley, Richard Purdie,
	Nick Cheng, Dmitry Torokhov, Jean Delvare, Paul Mackerras,
	Liam Girdwood, linux-scsi, Alex Iannicelli, Guenter Roeck

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] 18+ 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; 18+ messages in thread
From: Jean Delvare @ 2010-08-10 13:43 UTC (permalink / raw)
  To: Greg KH
  Cc: 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

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:
> > >
> > > =C2=A0 /* FIXME
> > > =C2=A0 =C2=A0* The *owner field is no longer used.
> > > =C2=A0 =C2=A0* x86 tree has been cleaned up. The owner
> > > =C2=A0 =C2=A0* attribute is still left for other arches.
> > > =C2=A0 =C2=A0*/
> > >
> > > As it turns out, the *owner field is (again?) initialized in several =
modules,
> > > suggesting that such initialization may be creeping back into the cod=
e.
> > >
> > > 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.
> >=20
> > This seems reasonable to me.  Can we get this in linux-next?
>=20
> It will show up in linux-next tomorrow.

Related bug?

https://bugzilla.kernel.org/show_bug.cgi?id=3D16544

--=20
Jean Delvare

^ permalink raw reply	[flat|nested] 18+ 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; 18+ messages in thread
From: Stephen Rothwell @ 2010-08-10 15:17 UTC (permalink / raw)
  To: Jean Delvare
  Cc: Guenter Roeck, Greg Kroah-Hartman, Dmitry Torokhov,
	Linus Walleij, James Smart, Eric Biederman, Greg KH, Mark Brown,
	linux-kernel, Chris Wright, linuxppc-dev, James E.J. Bottomley,
	Richard Purdie, Nick Cheng, Jani Nikula, Tejun Heo,
	Paul Mackerras, Liam Girdwood, linux-scsi, Alex Iannicelli,
	Benjamin Thery

[-- 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] 18+ 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; 18+ messages in thread
From: Stephen Rothwell @ 2010-08-10 15:20 UTC (permalink / raw)
  To: Jean Delvare
  Cc: Mark Brown, David Woodhouse, James Smart, Greg KH, linuxppc-dev,
	James E.J. Bottomley, Paul Mackerras, Guenter Roeck, Nick Cheng,
	linux-scsi, Eric Biederman, Alex Iannicelli, Benjamin Thery,
	Chris Wright, Liam Girdwood, Linus Walleij, Dmitry Torokhov,
	Greg Kroah-Hartman, linux-kernel, Richard Purdie, Jani Nikula,
	Tejun Heo

[-- 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] 18+ 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; 18+ 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,
	James E.J. Bottomley, Paul Mackerras, Nick Cheng, linux-scsi,
	Eric Biederman, Alex Iannicelli, Benjamin Thery, Chris Wright,
	Tejun Heo, Liam Girdwood, Linus Walleij, Dmitry Torokhov,
	Greg Kroah-Hartman, linux-kernel, Richard Purdie, Jani Nikula,
	Jean Delvare

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] 18+ messages in thread

end of thread, other threads:[~2010-08-10 16:46 UTC | newest]

Thread overview: 18+ 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 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
     [not found] ` <1280380166-29196-5-git-send-email-guenter.roeck@ericsson.com>
2010-07-29 17:15   ` [PATCH 4/6] regulator: Remove owner field from attribute initialization in regulator core driver Mark Brown
2010-07-30  8:45 ` [PATCH 0/6] Remove owner field from sysfs attribute structure 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).