From: Ralf Baechle <ralf@linux-mips.org>
To: Thierry Reding <thierry.reding@avionic-design.de>,
Michal Marek <mmarek@suse.cz>,
linux-kbuild@vger.kernel.org
Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org,
Antony Pavlov <antonynpavlov@gmail.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Maarten ter Huurne <maarten@treewalker.org>
Subject: Re: [PATCH v2 0/3] MIPS: JZ4740: Move PWM driver to PWM framework
Date: Sun, 23 Sep 2012 15:56:35 +0200 [thread overview]
Message-ID: <20120923135635.GB13842@linux-mips.org> (raw)
In-Reply-To: <20120922074144.GC2538@avionic-0098.mockup.avionic-design.de>
On Sat, Sep 22, 2012 at 09:41:45AM +0200, Thierry Reding wrote:
> Have you had a chance to look at this? It is the last remaining PWM
> driver that isn't moved to the PWM framework yet. All the others are
> either in linux-next already and queued for 3.7 or have recently got
> Acked-by the respective maintainers (Unicore32). Patches 2 and 3 were
> already acked and tested by Lars-Peter who did the initial porting.
> Patch 1 can probably be dropped since I seem to be the only one running
> into that issue.
>
> I really want to take this in for 3.7 so I can use the 3.7 cycle to
> transition from the legacy API to the new API and possibly even get rid
> of the legacy parts altogether. However I don't want to do this without
> the Acked-by from the MIPS maintainer.
Acked-by: Ralf Baechle <ralf@linux-mips.org>
for 2/3 and 3/3.
I now can reproduce the build error that 1/3 is supposed to fix. The issue
is not as first suspected an odd bug in just your compiler. The tree
(I was testing on today's -next) is building fine when compiling in-tree
but fails out of tree:
CC arch/mips/jz4740/irq.o
In file included from /home/ralf/src/linux/linux-jz4740/arch/mips/include/asm/irq.h:18:0,
from /home/ralf/src/linux/linux-jz4740/include/linux/irq.h:27,
from /home/ralf/src/linux/linux-jz4740/include/asm-generic/hardirq.h:12,
from /home/ralf/src/linux/linux-jz4740/arch/mips/include/asm/hardirq.h:16,
from /home/ralf/src/linux/linux-jz4740/include/linux/hardirq.h:7,
from /home/ralf/src/linux/linux-jz4740/include/linux/interrupt.h:12,
from /home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c:19:
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.h:20:39: error: ‘struct irq_data’ declared inside parameter list [-Werror]
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.h:20:39: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.h:21:38: error: ‘struct irq_data’ declared inside parameter list [-Werror]
In file included from /home/ralf/src/linux/linux-jz4740/include/linux/irq.h:356:0,
from /home/ralf/src/linux/linux-jz4740/include/asm-generic/hardirq.h:12,
from /home/ralf/src/linux/linux-jz4740/arch/mips/include/asm/hardirq.h:16,
from /home/ralf/src/linux/linux-jz4740/include/linux/hardirq.h:7,
from /home/ralf/src/linux/linux-jz4740/include/linux/interrupt.h:12,
from /home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c:19:
/home/ralf/src/linux/linux-jz4740/include/linux/irqdesc.h:73:33: error: ‘NR_IRQS’ undeclared here (not in a function)
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c: In function ‘jz4740_cascade’:
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c:49:39: error: ‘JZ4740_IRQ_BASE’ undeclared (first use in this function)
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c:49:39: note: each undeclared identifier is reported only once for each function it appears in
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c: At top level:
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c:62:6: error: conflicting types for ‘jz4740_irq_suspend’
In file included from /home/ralf/src/linux/linux-jz4740/arch/mips/include/asm/irq.h:18:0,
from /home/ralf/src/linux/linux-jz4740/include/linux/irq.h:27,
from /home/ralf/src/linux/linux-jz4740/include/asm-generic/hardirq.h:12,
from /home/ralf/src/linux/linux-jz4740/arch/mips/include/asm/hardirq.h:16,
from /home/ralf/src/linux/linux-jz4740/include/linux/hardirq.h:7,
from /home/ralf/src/linux/linux-jz4740/include/linux/interrupt.h:12,
from /home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c:19:
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.h:20:13: note: previous declaration of ‘jz4740_irq_suspend’ was here
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c:68:6: error: conflicting types for ‘jz4740_irq_resume’
In file included from /home/ralf/src/linux/linux-jz4740/arch/mips/include/asm/irq.h:18:0,
from /home/ralf/src/linux/linux-jz4740/include/linux/irq.h:27,
from /home/ralf/src/linux/linux-jz4740/include/asm-generic/hardirq.h:12,
from /home/ralf/src/linux/linux-jz4740/arch/mips/include/asm/hardirq.h:16,
from /home/ralf/src/linux/linux-jz4740/include/linux/hardirq.h:7,
from /home/ralf/src/linux/linux-jz4740/include/linux/interrupt.h:12,
from /home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c:19:
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.h:21:13: note: previous declaration of ‘jz4740_irq_resume’ was here
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c: In function ‘arch_init_irq’:
/home/ralf/src/linux/linux-jz4740/arch/mips/jz4740/irq.c:91:41: error: ‘JZ4740_IRQ_BASE’ undeclared (first use in this function)
Which (while your patch is probably fine, I haven't tested) this seems to
be a build system issue, so should be preferably be fixed there.
Marek, the whole email exchange is archived at
http://www.linux-mips.org/archives/linux-mips/2012-09/threads.html
Ralf
next prev parent reply other threads:[~2012-09-23 13:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-10 12:05 [PATCH v2 0/3] MIPS: JZ4740: Move PWM driver to PWM framework Thierry Reding
2012-09-10 12:05 ` [PATCH v2 1/3] MIPS: JZ4740: Break circular header dependency Thierry Reding
2012-09-10 12:05 ` [PATCH v2 2/3] MIPS: JZ4740: Export timer API Thierry Reding
2012-09-10 12:05 ` [PATCH v2 3/3] pwm: Add Ingenic JZ4740 support Thierry Reding
2012-09-10 21:51 ` Lars-Peter Clausen
2012-09-11 5:02 ` Thierry Reding
2012-09-11 17:54 ` Lars-Peter Clausen
2012-09-10 15:20 ` [PATCH v2 0/3] MIPS: JZ4740: Move PWM driver to PWM framework Lars-Peter Clausen
2012-09-10 17:30 ` Thierry Reding
2012-09-11 17:56 ` Lars-Peter Clausen
2012-09-12 15:02 ` Thierry Reding
2012-09-22 7:41 ` Thierry Reding
2012-09-23 13:56 ` Ralf Baechle [this message]
2012-09-23 17:12 ` Thierry Reding
2012-09-27 19:48 ` Thierry Reding
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=20120923135635.GB13842@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=antonynpavlov@gmail.com \
--cc=lars@metafoo.de \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=maarten@treewalker.org \
--cc=mmarek@suse.cz \
--cc=thierry.reding@avionic-design.de \
/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 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.