]> git.baikalelectronics.ru Git - kernel.git/commit
msi-laptop: fix section mismatch in reference from the function load_scm_model_init
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Thu, 26 May 2011 03:09:19 +0000 (11:09 +0800)
committerMatthew Garrett <mjg@redhat.com>
Fri, 27 May 2011 16:38:50 +0000 (12:38 -0400)
commit399f77f09be5cfa869cfe512e43a0b96f96eb9d0
tree10701120968b89e80283b2dab659ed40f491b12e
parentdf57985b9eb16cd098c2e9f0918f04a6dff50dbd
msi-laptop: fix section mismatch in reference from the function load_scm_model_init

There have section mismatch warning message shows up when building
the kernel with make CONFIG_DEBUG_SECTION_MISMATCH=y.

The problem is the load_scm_model_init() calls msi_laptop_input_setup()
which is an __init function, but load_scm_model_init() lacks a __init
annotation.

This patch add __init on load_scm_model_init() to avoid warning message.

Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/msi-laptop.c