public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 04/12] pcc_acpi build fix
@ 2005-02-23  9:53 akpm-3NddpPZAyC0
       [not found] ` <200502230953.j1N9rEUr020699-bipKiLWnuIsyyg0EjBt7GtHuzzzSOjJt@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: akpm-3NddpPZAyC0 @ 2005-02-23  9:53 UTC (permalink / raw)
  To: len.brown-ral2JQCrhuEAvxtiuMwx3w
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, akpm-3NddpPZAyC0



With older gcc's:

drivers/acpi/pcc_acpi.c: In function `acpi_pcc_write_sset':
drivers/acpi/pcc_acpi.c:111: field `integer' already initialized
drivers/acpi/pcc_acpi.c:111: unknown field `value' specified in initializer
drivers/acpi/pcc_acpi.c:111: warning: excess elements in union initializer
drivers/acpi/pcc_acpi.c:111: warning: (near initialization for `in_objs[0]')
drivers/acpi/pcc_acpi.c:113: field `integer' already initialized
drivers/acpi/pcc_acpi.c:113: unknown field `value' specified in initializer
drivers/acpi/pcc_acpi.c:113: warning: excess elements in union initializer
drivers/acpi/pcc_acpi.c:113: warning: (near initialization for `in_objs[1]')


Signed-off-by: Andrew Morton <akpm-3NddpPZAyC0@public.gmane.org>
---

 25-akpm/drivers/acpi/pcc_acpi.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff -puN drivers/acpi/pcc_acpi.c~pcc_acpi-build-fix drivers/acpi/pcc_acpi.c
--- 25/drivers/acpi/pcc_acpi.c~pcc_acpi-build-fix	2005-02-23 01:48:02.000000000 -0800
+++ 25-akpm/drivers/acpi/pcc_acpi.c	2005-02-23 01:48:02.000000000 -0800
@@ -107,10 +107,8 @@ static int acpi_pcc_write_sset(struct ac
 {
 	acpi_status status;
 	union acpi_object in_objs[] = {
-		{ .integer.type  = ACPI_TYPE_INTEGER,
-		  .integer.value = func, },
-		{ .integer.type  = ACPI_TYPE_INTEGER,
-		  .integer.value = val, },
+		{ .integer = { .type  = ACPI_TYPE_INTEGER, .value = func, }},
+		{ .integer = { .type  = ACPI_TYPE_INTEGER, .value = val, }},
 	};
 	struct acpi_object_list params = {
 		.count   = ARRAY_SIZE(in_objs),
_


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

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

* Re: [patch 04/12] pcc_acpi build fix
       [not found] ` <200502230953.j1N9rEUr020699-bipKiLWnuIsyyg0EjBt7GtHuzzzSOjJt@public.gmane.org>
@ 2005-03-02 18:47   ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2005-03-02 18:47 UTC (permalink / raw)
  To: Andrew Morton; +Cc: ACPI Developers, thoenig-l3A5Bk7waGM

ditto.
I'll not apply this patch b/c I don't plan to add this driver.

Timo,
if you maintain ppc_acpi.c out of tree, you should address this.

thanks,
-Len


On Wed, 2005-02-23 at 04:53, akpm-3NddpPZAyC0@public.gmane.org wrote:
> 
> With older gcc's:
> 
> drivers/acpi/pcc_acpi.c: In function `acpi_pcc_write_sset':
> drivers/acpi/pcc_acpi.c:111: field `integer' already initialized
> drivers/acpi/pcc_acpi.c:111: unknown field `value' specified in
> initializer
> drivers/acpi/pcc_acpi.c:111: warning: excess elements in union
> initializer
> drivers/acpi/pcc_acpi.c:111: warning: (near initialization for
> `in_objs[0]')
> drivers/acpi/pcc_acpi.c:113: field `integer' already initialized
> drivers/acpi/pcc_acpi.c:113: unknown field `value' specified in
> initializer
> drivers/acpi/pcc_acpi.c:113: warning: excess elements in union
> initializer
> drivers/acpi/pcc_acpi.c:113: warning: (near initialization for
> `in_objs[1]')
> 
> 
> Signed-off-by: Andrew Morton <akpm-3NddpPZAyC0@public.gmane.org>
> ---
> 
>  25-akpm/drivers/acpi/pcc_acpi.c |    6 ++----
>  1 files changed, 2 insertions(+), 4 deletions(-)
> 
> diff -puN drivers/acpi/pcc_acpi.c~pcc_acpi-build-fix
> drivers/acpi/pcc_acpi.c
> --- 25/drivers/acpi/pcc_acpi.c~pcc_acpi-build-fix       2005-02-23
> 01:48:02.000000000 -0800
> +++ 25-akpm/drivers/acpi/pcc_acpi.c     2005-02-23 01:48:02.000000000
> -0800
> @@ -107,10 +107,8 @@ static int acpi_pcc_write_sset(struct ac
>  {
>         acpi_status status;
>         union acpi_object in_objs[] = {
> -               { .integer.type  = ACPI_TYPE_INTEGER,
> -                 .integer.value = func, },
> -               { .integer.type  = ACPI_TYPE_INTEGER,
> -                 .integer.value = val, },
> +               { .integer = { .type  = ACPI_TYPE_INTEGER, .value =
> func, }},
> +               { .integer = { .type  = ACPI_TYPE_INTEGER, .value =
> val, }},
>         };
>         struct acpi_object_list params = {
>                 .count   = ARRAY_SIZE(in_objs),
> _
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

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

end of thread, other threads:[~2005-03-02 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-23  9:53 [patch 04/12] pcc_acpi build fix akpm-3NddpPZAyC0
     [not found] ` <200502230953.j1N9rEUr020699-bipKiLWnuIsyyg0EjBt7GtHuzzzSOjJt@public.gmane.org>
2005-03-02 18:47   ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox