summaryrefslogtreecommitdiff
path: root/configs/gcov-workarounds.patch
blob: 72cbabc43e20aaff898378ced3a4961617bdbe5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
From d26d8a880ee8819b1ac38a828d9e15d405455ba6 Mon Sep 17 00:00:00 2001
From: Riku Voipio <riku.voipio@linaro.org>
Date: Tue, 2 Sep 2014 11:49:36 +0300
Subject: [PATCH 2/2] Litter drivers with gcov disabling

Some of the core drivers need to be available before gcov
can be enabled.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 drivers/clk/samsung/Makefile       | 1 +
 drivers/clocksource/Makefile       | 2 ++
 drivers/cpufreq/Makefile           | 2 ++
 drivers/cpuidle/Makefile           | 2 ++
 drivers/cpuidle/governors/Makefile | 2 ++
 drivers/devfreq/Makefile           | 1 +
 drivers/devfreq/exynos/Makefile    | 1 +
 drivers/extcon/Makefile            | 1 +
 drivers/i2c/Makefile               | 1 +
 drivers/i2c/algos/Makefile         | 1 +
 drivers/i2c/busses/Makefile        | 1 +
 drivers/iommu/Makefile             | 2 ++
 drivers/irqchip/Makefile           | 2 ++
 drivers/mfd/Makefile               | 3 ++-
 drivers/of/Makefile                | 1 +
 drivers/regulator/Makefile         | 2 +-
 16 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/samsung/Makefile b/drivers/clk/samsung/Makefile
index 6fb4bc6..38504c8 100644
--- a/drivers/clk/samsung/Makefile
+++ b/drivers/clk/samsung/Makefile
@@ -1,6 +1,7 @@
 #
 # Samsung Clock specific Makefile
 #
+GCOV_PROFILE := n
 
 obj-$(CONFIG_COMMON_CLK)	+= clk.o clk-pll.o
 obj-$(CONFIG_SOC_EXYNOS3250)	+= clk-exynos3250.o
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile
index 7fd9fd1..0f982e6 100644
--- a/drivers/clocksource/Makefile
+++ b/drivers/clocksource/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := n
+
 obj-$(CONFIG_CLKSRC_OF)	+= clksrc-of.o
 obj-$(CONFIG_ATMEL_TCB_CLKSRC)	+= tcb_clksrc.o
 obj-$(CONFIG_X86_PM_TIMER)	+= acpi_pm.o
diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile
index a1f7537..2b83e02 100644
--- a/drivers/cpufreq/Makefile
+++ b/drivers/cpufreq/Makefile
@@ -1,4 +1,6 @@
 # CPUfreq core
+GCOV_PROFILE := n
+
 obj-$(CONFIG_CPU_FREQ)			+= cpufreq.o freq_table.o
 obj-$(CONFIG_PM_OPP)			+= cpufreq_opp.o
 
diff --git a/drivers/cpuidle/Makefile b/drivers/cpuidle/Makefile
index 11edb31..4b7c180 100644
--- a/drivers/cpuidle/Makefile
+++ b/drivers/cpuidle/Makefile
@@ -2,6 +2,8 @@
 # Makefile for cpuidle.
 #
 
+GCOV_PROFILE := n
+
 obj-y += cpuidle.o driver.o governor.o sysfs.o governors/
 obj-$(CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED) += coupled.o
 
diff --git a/drivers/cpuidle/governors/Makefile b/drivers/cpuidle/governors/Makefile
index 1b51272..8ed53c7 100644
--- a/drivers/cpuidle/governors/Makefile
+++ b/drivers/cpuidle/governors/Makefile
@@ -2,5 +2,7 @@
 # Makefile for cpuidle governors.
 #
 
+GCOV_PROFILE := n
+
 obj-$(CONFIG_CPU_IDLE_GOV_LADDER) += ladder.o
 obj-$(CONFIG_CPU_IDLE_GOV_MENU) += menu.o
diff --git a/drivers/devfreq/Makefile b/drivers/devfreq/Makefile
index 16138c9..f8c51f4 100644
--- a/drivers/devfreq/Makefile
+++ b/drivers/devfreq/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := n
 obj-$(CONFIG_PM_DEVFREQ)	+= devfreq.o
 obj-$(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND)	+= governor_simpleondemand.o
 obj-$(CONFIG_DEVFREQ_GOV_PERFORMANCE)	+= governor_performance.o
diff --git a/drivers/devfreq/exynos/Makefile b/drivers/devfreq/exynos/Makefile
index 49bc917..a83c500 100644
--- a/drivers/devfreq/exynos/Makefile
+++ b/drivers/devfreq/exynos/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := n
 # Exynos DEVFREQ Drivers
 obj-$(CONFIG_ARM_EXYNOS4_BUS_DEVFREQ)	+= exynos_ppmu.o exynos4_bus.o
 obj-$(CONFIG_ARM_EXYNOS5_BUS_DEVFREQ)	+= exynos_ppmu.o exynos5_bus.o
diff --git a/drivers/extcon/Makefile b/drivers/extcon/Makefile
index b38546e..44b5f47 100644
--- a/drivers/extcon/Makefile
+++ b/drivers/extcon/Makefile
@@ -1,6 +1,7 @@
 
 # Makefile for external connector class (extcon) devices
 #
+GCOV_PROFILE := n
 
 obj-$(CONFIG_EXTCON)		+= extcon-class.o
 obj-$(CONFIG_EXTCON_ADC_JACK)	+= extcon-adc-jack.o
diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index e0228b2..e0423c1 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -1,6 +1,7 @@
 #
 # Makefile for the i2c core.
 #
+GCOV_PROFILE := n
 
 i2ccore-y := i2c-core.o
 i2ccore-$(CONFIG_ACPI)	 	+= i2c-acpi.o
diff --git a/drivers/i2c/algos/Makefile b/drivers/i2c/algos/Makefile
index 215303f..f81adda 100644
--- a/drivers/i2c/algos/Makefile
+++ b/drivers/i2c/algos/Makefile
@@ -1,6 +1,7 @@
 #
 # Makefile for the i2c algorithms
 #
+GCOV_PROFILE := n
 
 obj-$(CONFIG_I2C_ALGOBIT)	+= i2c-algo-bit.o
 obj-$(CONFIG_I2C_ALGOPCF)	+= i2c-algo-pcf.o
diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile
index 49bf07e..608091b 100644
--- a/drivers/i2c/busses/Makefile
+++ b/drivers/i2c/busses/Makefile
@@ -1,6 +1,7 @@
 #
 # Makefile for the i2c bus drivers.
 #
+GCOV_PROFILE := n
 
 # ACPI drivers
 obj-$(CONFIG_I2C_SCMI)		+= i2c-scmi.o
diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
index 16edef7..406d63c 100644
--- a/drivers/iommu/Makefile
+++ b/drivers/iommu/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := n
+
 obj-$(CONFIG_IOMMU_API) += iommu.o
 obj-$(CONFIG_IOMMU_API) += iommu-traces.o
 obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o
diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile
index 73052ba..c9073f4 100644
--- a/drivers/irqchip/Makefile
+++ b/drivers/irqchip/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := n
+
 obj-$(CONFIG_IRQCHIP)			+= irqchip.o
 
 obj-$(CONFIG_ARCH_BCM2835)		+= irq-bcm2835.o
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
index 3f2fc89..d2ce0b8 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -1,6 +1,7 @@
 #
 # Makefile for multifunction miscellaneous devices
 #
+GCOV_PROFILE := n
 
 88pm860x-objs			:= 88pm860x-core.o 88pm860x-i2c.o
 obj-$(CONFIG_MFD_88PM860X)	+= 88pm860x.o
@@ -83,10 +84,10 @@ obj-$(CONFIG_MFD_MC13XXX_SPI)	+= mc13xxx-spi.o
 obj-$(CONFIG_MFD_MC13XXX_I2C)	+= mc13xxx-i2c.o
 
 obj-$(CONFIG_MFD_CORE)		+= mfd-core.o
-
 obj-$(CONFIG_EZX_PCAP)		+= ezx-pcap.o
 
 obj-$(CONFIG_MCP)		+= mcp-core.o
+
 obj-$(CONFIG_MCP_SA11X0)	+= mcp-sa11x0.o
 obj-$(CONFIG_MCP_UCB1200)	+= ucb1x00-core.o
 obj-$(CONFIG_MFD_SMSC)        += smsc-ece1099.o
diff --git a/drivers/of/Makefile b/drivers/of/Makefile
index 2b6a7b1..0ae195d 100644
--- a/drivers/of/Makefile
+++ b/drivers/of/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := n
 obj-y = base.o device.o platform.o
 obj-$(CONFIG_OF_DYNAMIC) += dynamic.o
 obj-$(CONFIG_OF_FLATTREE) += fdt.o
diff --git a/drivers/regulator/Makefile b/drivers/regulator/Makefile
index 9c50dc6..309fb0e 100644
--- a/drivers/regulator/Makefile
+++ b/drivers/regulator/Makefile
@@ -1,7 +1,7 @@
 #
 # Makefile for regulator drivers.
 #
-
+GCOV_PROFILE := n
 
 obj-$(CONFIG_REGULATOR) += core.o dummy.o fixed-helper.o helpers.o devres.o
 obj-$(CONFIG_OF) += of_regulator.o
-- 
2.0.1