From: Dirk Behme <dirk.behme@googlemail.com>
To: "Ragner N Magalhães" <ragner@users.sourceforge.net>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: OMAP: small patch fixes "error: field 'gpio_expa' has incomplete type"
Date: Thu, 28 Dec 2006 08:48:36 +0100 [thread overview]
Message-ID: <459376D4.707@gmail.com> (raw)
In-Reply-To: <25c21ceb0612271236ped35f6t65da0e66c86fcd9a@mail.gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2006-12-28 7:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2006-12-28 20:04 ` David Brownell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=459376D4.707@gmail.com \
--to=dirk.behme@googlemail.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=ragner@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox