From: Stephen Boyd <sboyd@codeaurora.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arm-kernel@lists.infradead.org,
Vincent Guittot <vincent.guittot@linaro.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
linux-kernel@vger.kernel.org, arm@kernel.org,
Russell King <rmk+kernel@arm.linux.org.uk>,
Namhyung Kim <namhyung@kernel.org>
Subject: Re: [PATCH 01/11] ARM: topology: mark init_cpu_topology as __init
Date: Wed, 08 Aug 2012 10:53:34 -0700 [thread overview]
Message-ID: <5022A79E.6050504@codeaurora.org> (raw)
In-Reply-To: <1344437248-20560-2-git-send-email-arnd@arndb.de>
On 08/08/12 07:47, Arnd Bergmann wrote:
> The init_cpu_topology function can be put into the __init section
> and discarded after boot, because it is only called from
> smp_prepare_cpus, which is also marked __init. This was reported
> by gcc after Vincent Guittot added the parse_dt_topology function
> in 339ca09d7ada "ARM: 7463/1: topology: Update cpu_power according to DT
> information".
>
> Without this patch, building kzm9g_defconfig results in:
>
> WARNING: vmlinux.o(.text+0xb5a0): Section mismatch in reference from the function init_cpu_topology() to the function .init.text:parse_dt_topology()
> The function init_cpu_topology() references
> the function __init parse_dt_topology().
> This is often because init_cpu_topology lacks a __init
> annotation or the annotation of parse_dt_topology is wrong.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Cc: Vincent Guittot <vincent.guittot@linaro.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Cc: Russell King <rmk+kernel@arm.linux.org.uk>
> ---
This is already in the patch tracker
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7482/1
I also notice that store_cpu_topology() should be marked __cpuinit and
update_siblings_mask, middle_capacity, cpu_capacity, and
update_cpu_power should be static. We should probably also rename
update_cpu_power() so as to not conflict with the one in kernel/sched/fair.c
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
next prev parent reply other threads:[~2012-08-08 17:53 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1344437248-20560-1-git-send-email-arnd@arndb.de>
2012-08-08 14:47 ` [PATCH 01/11] ARM: topology: mark init_cpu_topology as __init Arnd Bergmann
2012-08-08 17:53 ` Stephen Boyd [this message]
2012-08-08 19:14 ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 02/11] mfd/asic3: fix asic3_mfd_probe return value Arnd Bergmann
2012-08-08 14:47 ` [PATCH 03/11] usb/ohci-omap: remove unused variable Arnd Bergmann
2012-08-08 15:25 ` Greg Kroah-Hartman
2012-08-08 15:34 ` Alan Stern
2012-08-08 14:47 ` [PATCH 04/11] ARM: ux500: really kill snowball_of_platform_devs Arnd Bergmann
2012-08-08 16:22 ` Lee Jones
2012-08-08 17:19 ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 05/11] ARM: exynos: exynos_pm_add_dev_to_genpd may be unused Arnd Bergmann
2012-08-10 6:48 ` Kukjin Kim
2012-08-10 6:57 ` Thomas Abraham
2012-08-08 14:47 ` [PATCH 06/11] gpio: em: do not discard em_gio_irq_domain_cleanup Arnd Bergmann
2012-08-10 10:59 ` Linus Walleij
2012-08-10 11:33 ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 07/11] net/stmmac: mark probe function as __devinit Arnd Bergmann
2012-08-08 15:07 ` Stefan Roese
2012-08-08 23:08 ` David Miller
2012-08-08 14:47 ` [PATCH 08/11] mtd/omap2: fix dmaengine_slave_config error handling Arnd Bergmann
2012-08-08 14:47 ` [PATCH 09/11] regulator/twl: remove fixed resource handling Arnd Bergmann
2012-08-08 14:50 ` Mark Brown
2012-08-08 15:06 ` Arnd Bergmann
2012-08-08 14:47 ` [PATCH 10/11] spi/s3c64xx: improve error handling Arnd Bergmann
2012-08-10 6:39 ` Kukjin Kim
2012-08-10 7:34 ` Arnd Bergmann
2012-08-10 6:58 ` Thomas Abraham
2012-08-08 14:47 ` [PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS Arnd Bergmann
2012-08-08 15:40 ` Stephen Warren
2012-08-08 16:22 ` Arnd Bergmann
2012-08-08 16:43 ` Takashi Iwai
2012-08-08 17:26 ` Arnd Bergmann
2012-08-08 19:25 ` Rafael J. Wysocki
2012-08-20 8:32 ` Herbert Xu
2012-08-08 18:11 ` Kevin Hilman
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=5022A79E.6050504@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=a.p.zijlstra@chello.nl \
--cc=arm@kernel.org \
--cc=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=rmk+kernel@arm.linux.org.uk \
--cc=vincent.guittot@linaro.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