public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: kernel-janitors@vger.kernel.org
Subject: Re: arch/arm/mach-at91/setup.c:96:2: error: #endif without #if
Date: Sat, 06 Oct 2012 06:10:19 +0000	[thread overview]
Message-ID: <201210060610.19620.arnd@arndb.de> (raw)
In-Reply-To: <20121006025513.GA17498@localhost>

On Saturday 06 October 2012, Fengguang Wu wrote:
> FYI, kernel build failed on
> 
> commit: 9afdc3db4684b300aca16bffff4a7f108feb3043  Merge branch 'late/fixes' into for-next
> config: arm-at91_dt_defconfig
> 
> All error/warnings:
> 
> arch/arm/mach-at91/setup.c:96:2: error: #endif without #if

Thansk for the report. There is actually a second bug from the same at91 mismerge,
see patch below.

> vim +96 arch/arm/mach-at91/setup.c
> 
> ac09281a (Arnd Bergmann                    2012-04-30  90) static struct map_desc at91_io_desc __initdata __maybe_unused = {
> dca4ba41 (Arnd Bergmann                    2012-09-14  91)      .virtual        = (unsigned long)AT91_VA_BASE_SYS,
> 21d08b9d (Jean-Christophe PLAGNIOL-VILLARD 2011-04-23  92)      .pfn            = __phys_to_pfn(AT91_BASE_SYS),
> 21d08b9d (Jean-Christophe PLAGNIOL-VILLARD 2011-04-23  93)      .length         = SZ_16K,
> 21d08b9d (Jean-Christophe PLAGNIOL-VILLARD 2011-04-23  94)      .type           = MT_DEVICE,
> 21d08b9d (Jean-Christophe PLAGNIOL-VILLARD 2011-04-23  95) };
> 2e8e5ad6 (Arnd Bergmann                    2012-04-30 @96) #endif
> 21d08b9d (Jean-Christophe PLAGNIOL-VILLARD 2011-04-23  97) 
> 8c3583b6 (Jean-Christophe PLAGNIOL-VILLARD 2011-04-23  98) static void __init soc_detect(u32 dbgu_base)
> 21d08b9d (Jean-Christophe PLAGNIOL-VILLARD 2011-04-23  99) {

I fixed it already in the for-next branch, but Stephen hasn't built a new kernel since
I uploaded that.

	Arnd

@@ -135,9 +135,7 @@ static int at91_pm_begin(suspend_state_t state)
 static int at91_pm_verify_clocks(void)
 {
        unsigned long scsr;
-#ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS
        int i;
-#endif
 
        scsr = at91_pmc_read(AT91_PMC_SCSR);
 

      reply	other threads:[~2012-10-06  6:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-06  2:55 arch/arm/mach-at91/setup.c:96:2: error: #endif without #if Fengguang Wu
2012-10-06  6:10 ` Arnd Bergmann [this message]

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=201210060610.19620.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=kernel-janitors@vger.kernel.org \
    /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