All of lore.kernel.org
 help / color / mirror / Atom feed
From: john.stultz@linaro.org (John Stultz)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 12/12] time/jiffies: bring back unconditional LATCH definition
Date: Fri, 28 Sep 2012 14:55:22 -0700	[thread overview]
Message-ID: <50661CCA.8000900@linaro.org> (raw)
In-Reply-To: <1348868177-21205-13-git-send-email-arnd@arndb.de>

On 09/28/2012 02:36 PM, Arnd Bergmann wrote:
> Patch a7ea3bbf5d "time/jiffies: Allow CLOCK_TICK_RATE to be undefined"
> breaks the compilation of targets that rely on the LATCH definition,
> because of recursive header file inclusion not defining CLOCK_TICK_RATE
> before it is checked here.
>
> This fixes the problem by moving LATCH back to where it was, but it
> seems that there are still cases where SHIFTED_HZ is defined incorrectly
> because of the same problem. Need to investigate further.
>
> Without this patch, building h7201_defconfig results in:
>
> arch/arm/mach-h720x/common.c: In function 'h720x_gettimeoffset':
> arch/arm/mach-h720x/common.c:50:73: error: 'LATCH' undeclared (first use in this function)
> arch/arm/mach-h720x/common.c:50:73: note: each undeclared identifier is reported only once for each function it appears in
> arch/arm/mach-h720x/common.c:51:1: warning: control reaches end of non-void function [-Wreturn-type]

Hrrm. Ok. I had a patch for 3.7 that tried to get rid of the generic 
CLOCK_TICK_RATE derived users, but that may not fly if there's still 
LATCH users around.  I guess I'll tweak it so we keep LATCH around, 
probably by mering your change into my tree.

I suspect the long term fix is to push the LATCH definition up into arch 
specific code that is using it, so it can be made dynamic instead of a 
compile time constant. Otherwise it might be hard to get a unified 
zImage working.  But for now I guess your current fix is good short-term.

thanks
-john

WARNING: multiple messages have this Message-ID (diff)
From: John Stultz <john.stultz@linaro.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, arm@kernel.org,
	Catalin Marinas <catalin.marinas@arm.com>,
	Richard Cochran <richardcochran@gmail.com>,
	Prarit Bhargava <prarit@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH 12/12] time/jiffies: bring back unconditional LATCH definition
Date: Fri, 28 Sep 2012 14:55:22 -0700	[thread overview]
Message-ID: <50661CCA.8000900@linaro.org> (raw)
In-Reply-To: <1348868177-21205-13-git-send-email-arnd@arndb.de>

On 09/28/2012 02:36 PM, Arnd Bergmann wrote:
> Patch a7ea3bbf5d "time/jiffies: Allow CLOCK_TICK_RATE to be undefined"
> breaks the compilation of targets that rely on the LATCH definition,
> because of recursive header file inclusion not defining CLOCK_TICK_RATE
> before it is checked here.
>
> This fixes the problem by moving LATCH back to where it was, but it
> seems that there are still cases where SHIFTED_HZ is defined incorrectly
> because of the same problem. Need to investigate further.
>
> Without this patch, building h7201_defconfig results in:
>
> arch/arm/mach-h720x/common.c: In function 'h720x_gettimeoffset':
> arch/arm/mach-h720x/common.c:50:73: error: 'LATCH' undeclared (first use in this function)
> arch/arm/mach-h720x/common.c:50:73: note: each undeclared identifier is reported only once for each function it appears in
> arch/arm/mach-h720x/common.c:51:1: warning: control reaches end of non-void function [-Wreturn-type]

Hrrm. Ok. I had a patch for 3.7 that tried to get rid of the generic 
CLOCK_TICK_RATE derived users, but that may not fly if there's still 
LATCH users around.  I guess I'll tweak it so we keep LATCH around, 
probably by mering your change into my tree.

I suspect the long term fix is to push the LATCH definition up into arch 
specific code that is using it, so it can be made dynamic instead of a 
compile time constant. Otherwise it might be hard to get a unified 
zImage working.  But for now I guess your current fix is good short-term.

thanks
-john


  reply	other threads:[~2012-09-28 21:55 UTC|newest]

Thread overview: 81+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-28 21:36 [PATCH 00/12] New warnings and build errors in linux-next Arnd Bergmann
2012-09-28 21:36 ` Arnd Bergmann
2012-09-28 21:36 ` [PATCH 01/12] mtd: atmel nand: build regression Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-29 19:53   ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-29 19:53     ` Jean-Christophe PLAGNIOL-VILLARD
2012-09-28 21:36 ` [PATCH 02/12] ata: mark probe function as __devinit rather than __init Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-28 21:38   ` Mark Langsdorf
2012-09-28 21:38     ` Mark Langsdorf
2012-09-28 21:36 ` [PATCH 03/12] mmc: dw_mmc: fix building exynos driver as a module Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-10-01 11:05   ` Will Newton
2012-10-01 11:05     ` Will Newton
2012-10-04 12:40     ` Seungwon Jeon
2012-10-04 12:40       ` Seungwon Jeon
2012-09-28 21:36 ` [PATCH 04/12] video: exynos: warnings in exynos_dp_core.c Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-10-05  8:01   ` Jingoo Han
2012-10-05  8:01     ` Jingoo Han
2012-10-05  8:16     ` Arnd Bergmann
2012-10-05  8:16       ` Arnd Bergmann
2012-09-28 21:36 ` [PATCH 05/12] ARM: ixp4xx: use __iomem for MMIO Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-29 10:35   ` ARM SoC tree, Was: " Krzysztof Halasa
2012-09-29 10:35     ` Krzysztof Halasa
2012-09-29 14:58     ` Arnd Bergmann
2012-09-29 14:58       ` Arnd Bergmann
2012-09-29 17:02       ` Krzysztof Halasa
2012-09-29 17:02         ` Krzysztof Halasa
2012-09-29 17:31         ` Olof Johansson
2012-09-29 17:31           ` Olof Johansson
2012-09-29 17:44         ` Russell King - ARM Linux
2012-09-29 17:44           ` Russell King - ARM Linux
2012-09-29 21:38           ` Krzysztof Halasa
2012-09-29 21:38             ` Krzysztof Halasa
2012-09-29 21:53             ` Russell King - ARM Linux
2012-09-29 21:53               ` Russell King - ARM Linux
2012-09-30 17:01               ` Krzysztof Halasa
2012-09-30 17:01                 ` Krzysztof Halasa
2012-09-28 21:36 ` [PATCH 06/12] sched: warnings in kernel/sched/fair.c Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-28 21:36 ` [PATCH 07/12] staging/iio/lis3l02dq: fix building without irq_to_gpio Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-29 10:02   ` Jonathan Cameron
2012-09-29 10:02     ` Jonathan Cameron
2012-09-29 15:03     ` Arnd Bergmann
2012-09-29 15:03       ` Arnd Bergmann
2012-10-13  9:54       ` Jonathan Cameron
2012-10-13  9:54         ` Jonathan Cameron
2012-09-28 21:36 ` [PATCH 08/12] dtc: be more quiet with "make -s" Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-28 21:55   ` Stephen Warren
2012-09-28 21:55     ` Stephen Warren
2012-09-29  7:27     ` Arnd Bergmann
2012-09-29  7:27       ` Arnd Bergmann
2012-09-28 21:36 ` [PATCH 09/12] tty/console: fix warnings in drivers/tty/serial/kgdboc.c Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-28 21:45   ` Jason Wessel
2012-09-28 21:45     ` Jason Wessel
2012-10-22 23:37     ` Greg Kroah-Hartman
2012-10-22 23:37       ` Greg Kroah-Hartman
2012-09-28 21:36 ` [PATCH 10/12] gpio: pcf857x: select IRQ_DOMAIN Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-30 21:39   ` Linus Walleij
2012-09-30 21:39     ` Linus Walleij
2012-09-28 21:36 ` [PATCH 11/12] pinctrl: samsung: use __devinit section for init code Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-10-01  6:15   ` Linus Walleij
2012-10-01  6:15     ` Linus Walleij
2012-10-02 11:52     ` Arnd Bergmann
2012-10-02 11:52       ` Arnd Bergmann
2012-10-02 12:57       ` Linus Walleij
2012-10-02 12:57         ` Linus Walleij
2012-10-02 20:28   ` Thierry Reding
2012-10-02 20:28     ` Thierry Reding
2012-09-28 21:36 ` [PATCH 12/12] time/jiffies: bring back unconditional LATCH definition Arnd Bergmann
2012-09-28 21:36   ` Arnd Bergmann
2012-09-28 21:55   ` John Stultz [this message]
2012-09-28 21:55     ` John Stultz

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=50661CCA.8000900@linaro.org \
    --to=john.stultz@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.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 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.