Skip to contentSkip to conversation

ASoC: rt286: build warning of section mismatch

PATCH Applied Sudip Mukherjee 2 participants 2 messages Nov 18, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: rt286: build warning of section mismatch

From: Sudip Mukherjee <[email protected]>

while building we were getting the following build warning:

Section mismatch in reference from the function rt286_i2c_probe() to the variable .init.data:force_combo_jack_table
The function rt286_i2c_probe() references
the variable __initdata force_combo_jack_table.
This is often because rt286_i2c_probe lacks a __initdata annotation or the annotation of force_combo_jack_table is wrong.

we were getting the warning as force_combo_jack_table was marked with __initdata

---
 sound/soc/codecs/rt286.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt286.c +1 -1
index 2e818aa..2cd4fe4 100644
@@ -1206,7 +1206,7 @@ static const struct acpi_device_id rt286_acpi_match[] = {
 };
 MODULE_DEVICE_TABLE(acpi, rt286_acpi_match);
 
-static struct dmi_system_id force_combo_jack_table[] __initdata = {
+static struct dmi_system_id force_combo_jack_table[] = {
 	{
 		.ident = "Intel Wilson Beach",
 		.matches = {
Signature · 1 line
1.8.1.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Sudip Mukherjee

From: Sudip Mukherjee <[email protected]>

while building we were getting the following build warning:

Applied, thanks.