All of lore.kernel.org
 help / color / mirror / Atom feed
* OMAP: small patch fixes "error: field 'gpio_expa' has incomplete type"
@ 2006-12-27 20:36 Ragner N Magalhães
  2006-12-28  7:48 ` Dirk Behme
  0 siblings, 1 reply; 3+ messages in thread
From: Ragner N Magalhães @ 2006-12-27 20:36 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 297 bytes --]

Hi,
this small patch fixes this error below

In file included from arch/arm/mach-omap1/board-h2.c:40:
include/asm/arch/irda.h:27: error: field 'gpio_expa' has incomplete type

Best regards,

-- 
Ragner N Magalhães
Instituto Nokia de Tecnologia (INdT) - OSMRC
E-mail: ragner.magalhaes@indt.org.br

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-irda_h-incomplete_type.diff --]
[-- Type: text/x-patch; name=patch-irda_h-incomplete_type.diff; charset=ANSI_X3.4-1968, Size: 608 bytes --]

This patch fixes "error: field 'gpio_expa' has incomplete type" at include/asm/arch/irda.h
Signed-off-by: Ragner Magalhães <ragner.magalhes@indt.org.br>
---
Index: 2.6-dev/include/asm/arch/irda.h
===================================================================
--- 2.6-dev.orig/include/asm/arch/irda.h	2006-12-27 10:28:09.000000000 -0400
+++ 2.6-dev/include/asm/arch/irda.h	2006-12-27 10:29:07.000000000 -0400
@@ -10,6 +10,8 @@
 #ifndef ASMARM_ARCH_IRDA_H
 #define ASMARM_ARCH_IRDA_H
 
+#include <linux/workqueue.h>
+
 /* board specific transceiver capabilities */
 
 #define IR_SEL		1	/* Selects IrDA */

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



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

* Re: OMAP: small patch fixes "error: field 'gpio_expa' has incomplete type"
  2006-12-27 20:36 OMAP: small patch fixes "error: field 'gpio_expa' has incomplete type" Ragner N Magalhães
@ 2006-12-28  7:48 ` Dirk Behme
  2006-12-28 20:04   ` David Brownell
  0 siblings, 1 reply; 3+ messages in thread
From: Dirk Behme @ 2006-12-28  7:48 UTC (permalink / raw)
  To: Ragner N Magalhães; +Cc: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

Ragner N Magalhães wrote:
> In file included from arch/arm/mach-omap1/board-h2.c:40:
> include/asm/arch/irda.h:27: error: field 'gpio_expa' has incomplete type
...
> --- 2.6-dev.orig/include/asm/arch/irda.h	2006-12-27 10:28:09.000000000 -0400
> +++ 2.6-dev/include/asm/arch/irda.h	2006-12-27 10:29:07.000000000 -0400
> @@ -10,6 +10,8 @@
>  #ifndef ASMARM_ARCH_IRDA_H
>  #define ASMARM_ARCH_IRDA_H
>  
> +#include <linux/workqueue.h>
> +
>  /* board specific transceiver capabilities */

Can you test patch in attachment?

I think the issue is in drivers/net/irda/omap-ir.c. So I 
think touching global irda.h isn't a good idea.

With this patch, drivers/net/irda/omap-ir.c and 
arch/arm/mach-omap1/board-h2.c compiles for me.

Dirk

[-- Attachment #2: irda_workqueue_patch.txt --]
[-- Type: text/plain, Size: 809 bytes --]


Make drivers/net/irda/omap-ir.c compile again.

Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>
Index: linux-osk/drivers/net/irda/omap-ir.c
===================================================================
--- linux-osk.orig/drivers/net/irda/omap-ir.c
+++ linux-osk/drivers/net/irda/omap-ir.c
@@ -54,6 +54,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/platform_device.h>
 #include <linux/i2c.h>
+#include <linux/workqueue.h>
 
 #include <net/irda/irda.h>
 #include <net/irda/irmod.h>
@@ -849,7 +850,7 @@ static int omap_irda_probe(struct platfo
 
 	/* Any better way to avoid this? No. */
 	if (machine_is_omap_h3() || machine_is_omap_h4())
-		INIT_WORK(&omap_ir->pdata->gpio_expa, NULL, NULL);
+		INIT_WORK(&(omap_ir->pdata->gpio_expa.work), NULL);
 
 	err = register_netdev(dev);
 	if (!err)

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



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

* Re: OMAP: small patch fixes "error: field 'gpio_expa' has incomplete type"
  2006-12-28  7:48 ` Dirk Behme
@ 2006-12-28 20:04   ` David Brownell
  0 siblings, 0 replies; 3+ messages in thread
From: David Brownell @ 2006-12-28 20:04 UTC (permalink / raw)
  To: linux-omap-open-source

On Wednesday 27 December 2006 11:48 pm, Dirk Behme wrote:
> +               INIT_WORK(&(omap_ir->pdata->gpio_expa.work), NULL);

All of these patches need to be paired with code making callback
function use container_of() to convert the pointer though ... right?

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

end of thread, other threads:[~2006-12-28 20:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-27 20:36 OMAP: small patch fixes "error: field 'gpio_expa' has incomplete type" Ragner N Magalhães
2006-12-28  7:48 ` Dirk Behme
2006-12-28 20:04   ` David Brownell

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.