Skip to contentSkip to conversation

ASoC: SAMSUNG: Fix build error

PATCH New Boojin Kim 2 participants 2 messages Nov 22, 2011

Subsystems (4)
lore
Share & tools
lore

Boojin Kim

author
#0 lore raw

PATCH 1/1 ASoC: SAMSUNG: Fix build error

This patch adds <linux/modules.h> to fix following build errors.

sound/soc/codecs/wm8994.c: In function 'wm8994_readable':
sound/soc/codecs/wm8994.c:58: warning: unused variable 'wm8994' sound/soc/samsung/smdk_wm8994.c:176: error: expected declaration specifiers or '...' before string constant sound/soc/samsung/smdk_wm8994.c:176: warning: data definition has no type or storage class sound/soc/samsung/smdk_wm8994.c:176: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION' sound/soc/samsung/smdk_wm8994.c:176: warning: function declaration isn't a prototype sound/soc/samsung/smdk_wm8994.c:177: error: expected declaration specifiers or '...' before string constant

---
 sound/soc/samsung/smdk_wm8994.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/samsung/smdk_wm8994.c +1 -0
index f75e439..ad9ac42 100644
@@ -9,6 +9,7 @@
 
 #include "../codecs/wm8994.h"
 #include <sound/pcm_params.h>
+#include <linux/module.h>
 
  /*
   * Default CFG switch settings to use this driver:
Signature · 1 line
1.7.1
Applied
#1 lore raw

PATCH 1/1 ASoC: SAMSUNG: Fix build error

Quoted 1 line · Boojin Kim

This patch adds <linux/modules.h> to fix following build errors.

Applied, thanks.