* [PATCH] x86/moorestown: change to __devinit in order to suppress warning
@ 2012-05-31 21:20 Sebastian Andrzej Siewior
2012-06-06 15:18 ` [tip:x86/urgent] x86/intel/moorestown: Change intel_scu_devices_create() to __devinit tip-bot for Sebastian Andrzej Siewior
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2012-05-31 21:20 UTC (permalink / raw)
To: x86, Feng Tang
Cc: Alan Cox, Kirill A. Shutemov, Mika Westerberg, Samuel Ortiz,
linux-kernel
The allmodconfig hits:
|WARNING: vmlinux.o(.text+0x6553d): Section mismatch in reference from the function intel_scu_devices_create() to the function .devinit.text: spi_register_board_info()
|The function intel_scu_devices_create() references
|the function __devinit spi_register_board_info().
|This is often because intel_scu_devices_create lacks a __devinit
|annotation or the annotation of spi_register_board_info is wrong.
|
|WARNING: vmlinux.o(.text+0x655f1): Section mismatch in reference from the function intel_scu_devices_create() to the function .init.text:i2c _register_board_info()
|The function intel_scu_devices_create() references
|the function __init i2c_register_board_info().
|This is often because intel_scu_devices_create lacks a __init
|annotation or the annotation of i2c_register_board_info is wrong.
This patch marks intel_scu_devices_create() as devinit because it calls
a devinit function, spi_register_board_info().
The second problem with i2c_register_board_info() does not go away and
should crash once build as a module because i2c_register_board_info() is
long gone. Therefore this function should not be used from a module.
Going through all the code here makes me ask, why don't use DT here for
all that I2C and friends?
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
And I looked like this while going over the code:
http://download.breakpoint.cc/meme/moorestown_no_dt.png
arch/x86/platform/mrst/mrst.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c
index e31bcd8..fd41a92 100644
--- a/arch/x86/platform/mrst/mrst.c
+++ b/arch/x86/platform/mrst/mrst.c
@@ -782,7 +782,7 @@ BLOCKING_NOTIFIER_HEAD(intel_scu_notifier);
EXPORT_SYMBOL_GPL(intel_scu_notifier);
/* Called by IPC driver */
-void intel_scu_devices_create(void)
+void __devinit intel_scu_devices_create(void)
{
int i;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [tip:x86/urgent] x86/intel/moorestown: Change intel_scu_devices_create() to __devinit
2012-05-31 21:20 [PATCH] x86/moorestown: change to __devinit in order to suppress warning Sebastian Andrzej Siewior
@ 2012-06-06 15:18 ` tip-bot for Sebastian Andrzej Siewior
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Sebastian Andrzej Siewior @ 2012-06-06 15:18 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, alan, hpa, mingo, kirill.shutemov, mika.westerberg,
tglx, sebastian, sameo, feng.tang
Commit-ID: 7071f6b2889bb41bea61891d8a3e6e70517ef5e6
Gitweb: http://git.kernel.org/tip/7071f6b2889bb41bea61891d8a3e6e70517ef5e6
Author: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
AuthorDate: Thu, 31 May 2012 23:20:25 +0200
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 6 Jun 2012 11:58:40 +0200
x86/intel/moorestown: Change intel_scu_devices_create() to __devinit
The allmodconfig hits:
WARNING: vmlinux.o(.text+0x6553d): Section mismatch in
reference from the function intel_scu_devices_create() to the
function .devinit.text: spi_register_board_info()
[...]
This patch marks intel_scu_devices_create() as devinit because
it only calls a devinit function, spi_register_board_info().
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Feng Tang <feng.tang@intel.com>
Link: http://lkml.kernel.org/r/20120531212025.GA8519@breakpoint.cc
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/platform/mrst/mrst.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c
index e31bcd8..fd41a92 100644
--- a/arch/x86/platform/mrst/mrst.c
+++ b/arch/x86/platform/mrst/mrst.c
@@ -782,7 +782,7 @@ BLOCKING_NOTIFIER_HEAD(intel_scu_notifier);
EXPORT_SYMBOL_GPL(intel_scu_notifier);
/* Called by IPC driver */
-void intel_scu_devices_create(void)
+void __devinit intel_scu_devices_create(void)
{
int i;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-06 15:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-31 21:20 [PATCH] x86/moorestown: change to __devinit in order to suppress warning Sebastian Andrzej Siewior
2012-06-06 15:18 ` [tip:x86/urgent] x86/intel/moorestown: Change intel_scu_devices_create() to __devinit tip-bot for Sebastian Andrzej Siewior
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.