All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [patch 05/10] acpi: use __init* on everything intables/tbfadt.c
@ 2008-05-02 19:43 Jan Beulich
  2008-05-03  7:03 ` [patch 05/10] acpi: use __init* on everythingintables/tbfadt.c Moore, Robert
  2008-05-09 20:04 ` Moore, Robert
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Beulich @ 2008-05-02 19:43 UTC (permalink / raw)
  To: trenn; +Cc: robert.moore, lenb, akpm, linux-acpi

>>> Thomas Renninger <trenn@suse.de> 05/01/08 8:55 PM >>>
>Andrew, IMO you can drop this and the const cleanups from -mm tree.
>
>Jan, nearly all code in:
>drivers/acpi/*/*.[hc]
>is part of ACPICA. This currently still is (may change) an Intel
>internal repository which gets synced to several OS implementations,
>also Linux. __init does not exist there (yet).

I'm fairly sure I saw __init used elsewhere in ACPI CA code, so I
didn't think adding mode stuff like this would cause problems (as
long as the changes were correct of course).

>Also the const changes may be a bit of a pain -> this is what Robert
>meant with as long as it won't end in a chain of const cleanups :)

Of course they're a pain now. But see below.

>The whole code gets style cleaned up through Lindent and manually to
>half way fit to the Linux kernel style when things get merged.
>
>Currently Robert has to readjust this to ACPICA coding style by hand
>and merge it into the internal Intel repository. Len has to pick it up
>somewhat later and merge it back to the Linux kernel...
>
>Therefore I expect for cleanup patches (this one is on the edge, but I
>could understand Intel if they hold it off) the best is to wait until
>Intel publishs ACPICA as CVS or whatever repository on their
>lesswatts.org site.

That's brave to say - I've been seeing this kind of significant cleanup
potential about seven years ago (when I wasn't dealing with ACPI CA
on Linux, yet), so I have to admit I find it a little odd (at least) to defer
this even further - the code should have been written const-correct
and __init-ready (iirc Windows also has a concept of init code) from
the beginning in my opinion. ANyway, the purpose of both patches
was to try and get this cleanup started in Linux or at least turn
attention to this on the ACPI CA side.

Jan

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

* RE: [patch 05/10] acpi: use __init* on everythingintables/tbfadt.c
  2008-05-02 19:43 [patch 05/10] acpi: use __init* on everything intables/tbfadt.c Jan Beulich
@ 2008-05-03  7:03 ` Moore, Robert
  2008-05-09 20:04 ` Moore, Robert
  1 sibling, 0 replies; 5+ messages in thread
From: Moore, Robert @ 2008-05-03  7:03 UTC (permalink / raw)
  To: Jan Beulich, trenn; +Cc: lenb, akpm, linux-acpi


>this even further - the code should have been written const-correct
>and __init-ready (iirc Windows also has a concept of init code) from
>the beginning in my opinion

It's often tough to do these kinds of things because ACPICA runs on over
at least a dozen different operating systems. No, the base code does not
use __init anywhere.

And of course the use of const seems to be one of those religious
issues, so we can't make everyone happy.

Bob


>-----Original Message-----
>From: Jan Beulich [mailto:jbeulich@novell.com]
>Sent: Friday, May 02, 2008 12:43 PM
>To: trenn@suse.de
>Cc: Moore, Robert; lenb@kernel.org; akpm@linux-foundation.org; linux-
>acpi@vger.kernel.org
>Subject: Re: [patch 05/10] acpi: use __init* on
everythingintables/tbfadt.c
>
>>>> Thomas Renninger <trenn@suse.de> 05/01/08 8:55 PM >>>
>>Andrew, IMO you can drop this and the const cleanups from -mm tree.
>>
>>Jan, nearly all code in:
>>drivers/acpi/*/*.[hc]
>>is part of ACPICA. This currently still is (may change) an Intel
>>internal repository which gets synced to several OS implementations,
>>also Linux. __init does not exist there (yet).
>
>I'm fairly sure I saw __init used elsewhere in ACPI CA code, so I
>didn't think adding mode stuff like this would cause problems (as
>long as the changes were correct of course).
>
>>Also the const changes may be a bit of a pain -> this is what Robert
>>meant with as long as it won't end in a chain of const cleanups :)
>
>Of course they're a pain now. But see below.
>
>>The whole code gets style cleaned up through Lindent and manually to
>>half way fit to the Linux kernel style when things get merged.
>>
>>Currently Robert has to readjust this to ACPICA coding style by hand
>>and merge it into the internal Intel repository. Len has to pick it up
>>somewhat later and merge it back to the Linux kernel...
>>
>>Therefore I expect for cleanup patches (this one is on the edge, but I
>>could understand Intel if they hold it off) the best is to wait until
>>Intel publishs ACPICA as CVS or whatever repository on their
>>lesswatts.org site.
>
>That's brave to say - I've been seeing this kind of significant cleanup
>potential about seven years ago (when I wasn't dealing with ACPI CA
>on Linux, yet), so I have to admit I find it a little odd (at least) to
>defer
>this even further - the code should have been written const-correct
>and __init-ready (iirc Windows also has a concept of init code) from
>the beginning in my opinion. ANyway, the purpose of both patches
>was to try and get this cleanup started in Linux or at least turn
>attention to this on the ACPI CA side.
>
>Jan

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

* RE: [patch 05/10] acpi: use __init* on everythingintables/tbfadt.c
  2008-05-02 19:43 [patch 05/10] acpi: use __init* on everything intables/tbfadt.c Jan Beulich
  2008-05-03  7:03 ` [patch 05/10] acpi: use __init* on everythingintables/tbfadt.c Moore, Robert
@ 2008-05-09 20:04 ` Moore, Robert
  2008-05-13  6:57   ` Jan Beulich
  1 sibling, 1 reply; 5+ messages in thread
From: Moore, Robert @ 2008-05-09 20:04 UTC (permalink / raw)
  To: Jan Beulich, trenn; +Cc: lenb, akpm, linux-acpi

Jan,

I've integrated your const and macro changes into the acpica source.

Thanks for your help,
Bob


>-----Original Message-----
>From: Jan Beulich [mailto:jbeulich@novell.com]
>Sent: Friday, May 02, 2008 12:43 PM
>To: trenn@suse.de
>Cc: Moore, Robert; lenb@kernel.org; akpm@linux-foundation.org; linux-
>acpi@vger.kernel.org
>Subject: Re: [patch 05/10] acpi: use __init* on
everythingintables/tbfadt.c
>
>>>> Thomas Renninger <trenn@suse.de> 05/01/08 8:55 PM >>>
>>Andrew, IMO you can drop this and the const cleanups from -mm tree.
>>
>>Jan, nearly all code in:
>>drivers/acpi/*/*.[hc]
>>is part of ACPICA. This currently still is (may change) an Intel
>>internal repository which gets synced to several OS implementations,
>>also Linux. __init does not exist there (yet).
>
>I'm fairly sure I saw __init used elsewhere in ACPI CA code, so I
>didn't think adding mode stuff like this would cause problems (as
>long as the changes were correct of course).
>
>>Also the const changes may be a bit of a pain -> this is what Robert
>>meant with as long as it won't end in a chain of const cleanups :)
>
>Of course they're a pain now. But see below.
>
>>The whole code gets style cleaned up through Lindent and manually to
>>half way fit to the Linux kernel style when things get merged.
>>
>>Currently Robert has to readjust this to ACPICA coding style by hand
>>and merge it into the internal Intel repository. Len has to pick it up
>>somewhat later and merge it back to the Linux kernel...
>>
>>Therefore I expect for cleanup patches (this one is on the edge, but I
>>could understand Intel if they hold it off) the best is to wait until
>>Intel publishs ACPICA as CVS or whatever repository on their
>>lesswatts.org site.
>
>That's brave to say - I've been seeing this kind of significant cleanup
>potential about seven years ago (when I wasn't dealing with ACPI CA
>on Linux, yet), so I have to admit I find it a little odd (at least) to
>defer
>this even further - the code should have been written const-correct
>and __init-ready (iirc Windows also has a concept of init code) from
>the beginning in my opinion. ANyway, the purpose of both patches
>was to try and get this cleanup started in Linux or at least turn
>attention to this on the ACPI CA side.
>
>Jan

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

* RE: [patch 05/10] acpi: use __init* on everythingintables/tbfadt.c
  2008-05-09 20:04 ` Moore, Robert
@ 2008-05-13  6:57   ` Jan Beulich
  2008-05-13 15:06     ` [patch 05/10] acpi: use __init* oneverythingintables/tbfadt.c Moore, Robert
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2008-05-13  6:57 UTC (permalink / raw)
  To: Robert Moore; +Cc: lenb, akpm, trenn, linux-acpi

Thanks, Robert! So for future changes like this (if any) I suppose they would
be preferred to be directly against acpica? What mailing list would they go to? Jan

>>> "Moore, Robert" <robert.moore@intel.com> 09.05.08 22:04 >>>
Jan,

I've integrated your const and macro changes into the acpica source.

Thanks for your help,
Bob


>-----Original Message-----
>From: Jan Beulich [mailto:jbeulich@novell.com] 
>Sent: Friday, May 02, 2008 12:43 PM
>To: trenn@suse.de 
>Cc: Moore, Robert; lenb@kernel.org; akpm@linux-foundation.org; linux-
>acpi@vger.kernel.org 
>Subject: Re: [patch 05/10] acpi: use __init* on
everythingintables/tbfadt.c
>
>>>> Thomas Renninger <trenn@suse.de> 05/01/08 8:55 PM >>>
>>Andrew, IMO you can drop this and the const cleanups from -mm tree.
>>
>>Jan, nearly all code in:
>>drivers/acpi/*/*.[hc]
>>is part of ACPICA. This currently still is (may change) an Intel
>>internal repository which gets synced to several OS implementations,
>>also Linux. __init does not exist there (yet).
>
>I'm fairly sure I saw __init used elsewhere in ACPI CA code, so I
>didn't think adding mode stuff like this would cause problems (as
>long as the changes were correct of course).
>
>>Also the const changes may be a bit of a pain -> this is what Robert
>>meant with as long as it won't end in a chain of const cleanups :)
>
>Of course they're a pain now. But see below.
>
>>The whole code gets style cleaned up through Lindent and manually to
>>half way fit to the Linux kernel style when things get merged.
>>
>>Currently Robert has to readjust this to ACPICA coding style by hand
>>and merge it into the internal Intel repository. Len has to pick it up
>>somewhat later and merge it back to the Linux kernel...
>>
>>Therefore I expect for cleanup patches (this one is on the edge, but I
>>could understand Intel if they hold it off) the best is to wait until
>>Intel publishs ACPICA as CVS or whatever repository on their
>>lesswatts.org site.
>
>That's brave to say - I've been seeing this kind of significant cleanup
>potential about seven years ago (when I wasn't dealing with ACPI CA
>on Linux, yet), so I have to admit I find it a little odd (at least) to
>defer
>this even further - the code should have been written const-correct
>and __init-ready (iirc Windows also has a concept of init code) from
>the beginning in my opinion. ANyway, the purpose of both patches
>was to try and get this cleanup started in Linux or at least turn
>attention to this on the ACPI CA side.
>
>Jan


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

* RE: [patch 05/10] acpi: use __init* oneverythingintables/tbfadt.c
  2008-05-13  6:57   ` Jan Beulich
@ 2008-05-13 15:06     ` Moore, Robert
  0 siblings, 0 replies; 5+ messages in thread
From: Moore, Robert @ 2008-05-13 15:06 UTC (permalink / raw)
  To: Jan Beulich; +Cc: lenb, akpm, trenn, linux-acpi

devel@acpica.org



>-----Original Message-----
>From: Jan Beulich [mailto:jbeulich@novell.com]
>Sent: Monday, May 12, 2008 11:57 PM
>To: Moore, Robert
>Cc: lenb@kernel.org; akpm@linux-foundation.org; trenn@suse.de; linux-
>acpi@vger.kernel.org
>Subject: RE: [patch 05/10] acpi: use __init*
oneverythingintables/tbfadt.c
>
>Thanks, Robert! So for future changes like this (if any) I suppose they
>would
>be preferred to be directly against acpica? What mailing list would
they go
>to? Jan
>
>>>> "Moore, Robert" <robert.moore@intel.com> 09.05.08 22:04 >>>
>Jan,
>
>I've integrated your const and macro changes into the acpica source.
>
>Thanks for your help,
>Bob
>
>
>>-----Original Message-----
>>From: Jan Beulich [mailto:jbeulich@novell.com]
>>Sent: Friday, May 02, 2008 12:43 PM
>>To: trenn@suse.de
>>Cc: Moore, Robert; lenb@kernel.org; akpm@linux-foundation.org; linux-
>>acpi@vger.kernel.org
>>Subject: Re: [patch 05/10] acpi: use __init* on
>everythingintables/tbfadt.c
>>
>>>>> Thomas Renninger <trenn@suse.de> 05/01/08 8:55 PM >>>
>>>Andrew, IMO you can drop this and the const cleanups from -mm tree.
>>>
>>>Jan, nearly all code in:
>>>drivers/acpi/*/*.[hc]
>>>is part of ACPICA. This currently still is (may change) an Intel
>>>internal repository which gets synced to several OS implementations,
>>>also Linux. __init does not exist there (yet).
>>
>>I'm fairly sure I saw __init used elsewhere in ACPI CA code, so I
>>didn't think adding mode stuff like this would cause problems (as
>>long as the changes were correct of course).
>>
>>>Also the const changes may be a bit of a pain -> this is what Robert
>>>meant with as long as it won't end in a chain of const cleanups :)
>>
>>Of course they're a pain now. But see below.
>>
>>>The whole code gets style cleaned up through Lindent and manually to
>>>half way fit to the Linux kernel style when things get merged.
>>>
>>>Currently Robert has to readjust this to ACPICA coding style by hand
>>>and merge it into the internal Intel repository. Len has to pick it
up
>>>somewhat later and merge it back to the Linux kernel...
>>>
>>>Therefore I expect for cleanup patches (this one is on the edge, but
I
>>>could understand Intel if they hold it off) the best is to wait until
>>>Intel publishs ACPICA as CVS or whatever repository on their
>>>lesswatts.org site.
>>
>>That's brave to say - I've been seeing this kind of significant
cleanup
>>potential about seven years ago (when I wasn't dealing with ACPI CA
>>on Linux, yet), so I have to admit I find it a little odd (at least)
to
>>defer
>>this even further - the code should have been written const-correct
>>and __init-ready (iirc Windows also has a concept of init code) from
>>the beginning in my opinion. ANyway, the purpose of both patches
>>was to try and get this cleanup started in Linux or at least turn
>>attention to this on the ACPI CA side.
>>
>>Jan


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

end of thread, other threads:[~2008-05-13 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 19:43 [patch 05/10] acpi: use __init* on everything intables/tbfadt.c Jan Beulich
2008-05-03  7:03 ` [patch 05/10] acpi: use __init* on everythingintables/tbfadt.c Moore, Robert
2008-05-09 20:04 ` Moore, Robert
2008-05-13  6:57   ` Jan Beulich
2008-05-13 15:06     ` [patch 05/10] acpi: use __init* oneverythingintables/tbfadt.c Moore, Robert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.