[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <157609097376.30329.7393768210336577758.tip-bot2@tip-bot2>
Date: Wed, 11 Dec 2019 19:02:53 -0000
From: "tip-bot2 for Arnd Bergmann" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Arnd Bergmann <arnd@...db.de>, Borislav Petkov <bp@...e.de>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
bberg@...hat.com, ckellner@...hat.com,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
hdegoede@...hat.com, "H. Peter Anvin" <hpa@...or.com>,
Ingo Molnar <mingo@...hat.com>,
"linux-edac" <linux-edac@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Tony Luck <tony.luck@...el.com>, "x86-ml" <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [tip: ras/core] x86/mce/therm_throt: Mark throttle_active_work() as
__maybe_unused
The following commit has been merged into the ras/core branch of tip:
Commit-ID: 30357ea370345133949dbba199e8a5137a2b419c
Gitweb: https://git.kernel.org/tip/30357ea370345133949dbba199e8a5137a2b419c
Author: Arnd Bergmann <arnd@...db.de>
AuthorDate: Tue, 10 Dec 2019 21:39:13 +01:00
Committer: Borislav Petkov <bp@...e.de>
CommitterDate: Wed, 11 Dec 2019 19:54:29 +01:00
x86/mce/therm_throt: Mark throttle_active_work() as __maybe_unused
throttle_active_work() is only called if CONFIG_SYSFS is set, otherwise
we get a harmless warning:
arch/x86/kernel/cpu/mce/therm_throt.c:238:13: error: 'throttle_active_work' \
defined but not used [-Werror=unused-function]
Mark the function as __maybe_unused to avoid the warning.
Fixes: f6656208f04e ("x86/mce/therm_throt: Optimize notifications of thermal throttle")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
Signed-off-by: Borislav Petkov <bp@...e.de>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
Cc: bberg@...hat.com
Cc: ckellner@...hat.com
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: hdegoede@...hat.com
Cc: "H. Peter Anvin" <hpa@...or.com>
Cc: Ingo Molnar <mingo@...hat.com>
Cc: linux-edac <linux-edac@...r.kernel.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Tony Luck <tony.luck@...el.com>
Cc: x86-ml <x86@...nel.org>
Link: https://lkml.kernel.org/r/20191210203925.3119091-1-arnd@arndb.de
---
arch/x86/kernel/cpu/mce/therm_throt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/mce/therm_throt.c b/arch/x86/kernel/cpu/mce/therm_throt.c
index b38010b..8963493 100644
--- a/arch/x86/kernel/cpu/mce/therm_throt.c
+++ b/arch/x86/kernel/cpu/mce/therm_throt.c
@@ -235,7 +235,7 @@ static void get_therm_status(int level, bool *proc_hot, u8 *temp)
*temp = (msr_val >> 16) & 0x7F;
}
-static void throttle_active_work(struct work_struct *work)
+static void __maybe_unused throttle_active_work(struct work_struct *work)
{
struct _thermal_state *state = container_of(to_delayed_work(work),
struct _thermal_state, therm_work);
Powered by blists - more mailing lists