]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.9/stm-class-select-config_srcu.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.4.9 / stm-class-select-config_srcu.patch
CommitLineData
1733d4d4
GKH
1From 042d4460b5b4379a12f375045ff9065cf6758735 Mon Sep 17 00:00:00 2001
2From: Arnd Bergmann <arnd@arndb.de>
3Date: Tue, 22 Dec 2015 17:25:17 +0200
4Subject: stm class: Select CONFIG_SRCU
5
6From: Arnd Bergmann <arnd@arndb.de>
7
8commit 042d4460b5b4379a12f375045ff9065cf6758735 upstream.
9
10The newly added STM code uses SRCU, but does not ensure that
11this code is part of the kernel:
12
13drivers/built-in.o: In function `stm_source_link_show':
14include/linux/srcu.h:221: undefined reference to `__srcu_read_lock'
15include/linux/srcu.h:238: undefined reference to `__srcu_read_unlock'
16drivers/built-in.o: In function `stm_source_link_drop':
17include/linux/srcu.h:221: undefined reference to `__srcu_read_lock'
18include/linux/srcu.h:238: undefined reference to `__srcu_read_unlock'
19
20This adds a Kconfig 'select' statement like all the other SRCU using
21drivers have.
22
23Signed-off-by: Arnd Bergmann <arnd@arndb.de>
24Fixes: 7bd1d4093c2f ("stm class: Introduce an abstraction for System Trace Module devices")
25Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
26Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27
28---
29 drivers/hwtracing/stm/Kconfig | 1 +
30 1 file changed, 1 insertion(+)
31
32--- a/drivers/hwtracing/stm/Kconfig
33+++ b/drivers/hwtracing/stm/Kconfig
34@@ -1,6 +1,7 @@
35 config STM
36 tristate "System Trace Module devices"
37 select CONFIGFS_FS
38+ select SRCU
39 help
40 A System Trace Module (STM) is a device exporting data in System
41 Trace Protocol (STP) format as defined by MIPI STP standards.