aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/patches-4.4/015-8-qcom-tsens-8916-mark-PM-functions-__maybe_unused.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-03-22 09:43:01 +0100
committerJohn Crispin <john@phrozen.org>2017-03-22 09:45:18 +0100
commit3a3564ead5e4cf2f6ff73302c1e680b5575079ec (patch)
treee7acdf854e6577dd56616d8e5e0def8a2e0427d3 /target/linux/ipq806x/patches-4.4/015-8-qcom-tsens-8916-mark-PM-functions-__maybe_unused.patch
parentef6c4cc4ee046aa3f0bdb307c2ceea45ac2636aa (diff)
downloadupstream-3a3564ead5e4cf2f6ff73302c1e680b5575079ec.tar.gz
upstream-3a3564ead5e4cf2f6ff73302c1e680b5575079ec.tar.bz2
upstream-3a3564ead5e4cf2f6ff73302c1e680b5575079ec.zip
ipq806x: remove v4.4 support
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ipq806x/patches-4.4/015-8-qcom-tsens-8916-mark-PM-functions-__maybe_unused.patch')
-rw-r--r--target/linux/ipq806x/patches-4.4/015-8-qcom-tsens-8916-mark-PM-functions-__maybe_unused.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/target/linux/ipq806x/patches-4.4/015-8-qcom-tsens-8916-mark-PM-functions-__maybe_unused.patch b/target/linux/ipq806x/patches-4.4/015-8-qcom-tsens-8916-mark-PM-functions-__maybe_unused.patch
deleted file mode 100644
index 39d2173fe9..0000000000
--- a/target/linux/ipq806x/patches-4.4/015-8-qcom-tsens-8916-mark-PM-functions-__maybe_unused.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From 5b97469a55872a30a0d53a1279a8ae8b1c68b52c Mon Sep 17 00:00:00 2001
-From: Arnd Bergmann <arnd@arndb.de>
-Date: Mon, 4 Jul 2016 15:12:28 +0200
-Subject: thermal: qcom: tsens-8916: mark PM functions __maybe_unused
-
-The newly added tsens-8916 driver produces warnings when CONFIG_PM
-is disabled:
-
-drivers/thermal/qcom/tsens.c:53:12: error: 'tsens_resume' defined but not used [-Werror=unused-function]
- static int tsens_resume(struct device *dev)
- ^~~~~~~~~~~~
-drivers/thermal/qcom/tsens.c:43:12: error: 'tsens_suspend' defined but not used [-Werror=unused-function]
- static int tsens_suspend(struct device *dev)
- ^~~~~~~~~~~~~
-
-This marks both functions __maybe_unused to let the compiler
-know that they might be used in other configurations, without
-adding ugly #ifdef logic.
-
-Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-Reviewed-by: Rajendra Nayak <rnayak@codeaurora.org>
-Signed-off-by: Zhang Rui <rui.zhang@intel.com>
----
- drivers/thermal/qcom/tsens.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- a/drivers/thermal/qcom/tsens.c
-+++ b/drivers/thermal/qcom/tsens.c
-@@ -40,7 +40,7 @@ static int tsens_get_trend(void *data, l
- return -ENOTSUPP;
- }
-
--static int tsens_suspend(struct device *dev)
-+static int __maybe_unused tsens_suspend(struct device *dev)
- {
- struct tsens_device *tmdev = dev_get_drvdata(dev);
-
-@@ -50,7 +50,7 @@ static int tsens_suspend(struct device *
- return 0;
- }
-
--static int tsens_resume(struct device *dev)
-+static int __maybe_unused tsens_resume(struct device *dev)
- {
- struct tsens_device *tmdev = dev_get_drvdata(dev);
-