Repository navigation
Description
We use chrome default kernel config to build the kernel, but failed with 20 errors.
error log:
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:115:43: error: no member named 'codec' in 'struct snd_soc_dai'
struct snd_soc_codec *codec = codec_dai->codec;
~~~~~~~~~ ^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:116:35: error: implicit declaration of function 'snd_soc_codec_get_drvdata' [-Werr,-Wimplicit-function-declaration]
struct max98373_priv *max98373 = snd_soc_codec_get_drvdata(codec);
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:116:35: error: this function declaration is not a prototype [-Werror,-Wstrict-protypes]
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:116:24: error: incompatible integer to pointer conversion initializing 'struct max373_priv *' with an expression of type 'int' [-Werror,-Wint-conversion]
struct max98373_priv *max98373 = snd_soc_codec_get_drvdata(codec);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:120:15: error: incomplete definition of type 'struct snd_soc_codec'
dev_dbg(codec->dev, "%s: fmt 0x%08X\n", func, fmt);
~~~~~^
/mnt/host/source/src/third_party/kernel/v4.14/include/linux/device.h:1368:26: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg);
^~~
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:115:9: note: forward declaration of 'struct snd_soc_codec'
struct snd_soc_codec *codec = codec_dai->codec;
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:129:16: error: incomplete definition of type 'struct snd_soc_codec'
dev_err(codec->dev, "DAI invert mode unsupported\n");
~~~~~^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:115:9: note: forward declaration of 'struct snd_soc_codec'
struct snd_soc_codec *codec = codec_dai->codec;
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:180:38: error: declaration of 'struct snd_soc_codec' will not be visible outside othis function [-Werror,-Wvisibility]
static int max98373_set_clock(struct snd_soc_codec *codec,
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:183:35: error: implicit declaration of function 'snd_soc_codec_get_drvdata' [-Werr,-Wimplicit-function-declaration]
struct max98373_priv *max98373 = snd_soc_codec_get_drvdata(codec);
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:183:24: error: incompatible integer to pointer conversion initializing 'struct max373_priv *' with an expression of type 'int' [-Werror,-Wint-conversion]
struct max98373_priv *max98373 = snd_soc_codec_get_drvdata(codec);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:192:17: error: incomplete definition of type 'struct snd_soc_codec'
dev_err(codec->dev, "format unsupported %d\n",
~~~~~^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:180:38: note: forward declaration of 'struct snd_soc_codec'
static int max98373_set_clock(struct snd_soc_codec *codec,
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:209:37: error: no member named 'codec' in 'struct snd_soc_dai'
struct snd_soc_codec *codec = dai->codec;
~~~ ^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:210:35: error: implicit declaration of function 'snd_soc_codec_get_drvdata' [-Werr,-Wimplicit-function-declaration]
struct max98373_priv *max98373 = snd_soc_codec_get_drvdata(codec);
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:210:24: error: incompatible integer to pointer conversion initializing 'struct max373_priv *' with an expression of type 'int' [-Werror,-Wint-conversion]
struct max98373_priv *max98373 = snd_soc_codec_get_drvdata(codec);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:226:16: error: incomplete definition of type 'struct snd_soc_codec'
dev_err(codec->dev, "format unsupported %d\n",
~~~~~^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:209:9: note: forward declaration of 'struct snd_soc_codec'
struct snd_soc_codec *codec = dai->codec;
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:237:15: error: incomplete definition of type 'struct snd_soc_codec'
dev_dbg(codec->dev, "format supported %d",
~~~~~^
/mnt/host/source/src/third_party/kernel/v4.14/include/linux/device.h:1368:26: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, format, ##arg);
^~~
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:209:9: note: forward declaration of 'struct snd_soc_codec'
struct snd_soc_codec *codec = dai->codec;
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:270:16: error: incomplete definition of type 'struct snd_soc_codec'
dev_err(codec->dev, "rate %d not supported\n",
~~~~~^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:209:9: note: forward declaration of 'struct snd_soc_codec'
struct snd_soc_codec *codec = dai->codec;
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:298:28: error: incompatible pointer types passing 'struct snd_soc_codec *' to parater of type 'struct snd_soc_codec *' [-Werror,-Wincompatible-pointer-types]
return max98373_set_clock(codec, params);
^~~~~
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:180:53: note: passing argument to parameter 'codec' here
static int max98373_set_clock(struct snd_soc_codec *codec,
^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:307:37: error: no member named 'codec' in 'struct snd_soc_dai'
struct snd_soc_codec *codec = dai->codec;
~~~ ^
/mnt/host/source/src/third_party/kernel/v4.14/sound/soc/codecs/max98373.c:308:35: error: implicit declaration of function 'snd_soc_codec_get_drvdata' [-Werr,-Wimplicit-function-declaration]
struct max98373_priv *max98373 = snd_soc_codec_get_drvdata(codec);
Activity
cujomalainey commentedon Oct 31, 2018
What branch are you on? Or a sha
keqiaozhang commentedon Oct 31, 2018
@cujomalainey
Branch name:origin/debug/cros-v4.14-rebase
ranj063 commentedon Oct 31, 2018
@keqiaozhang you can cherry-pick 41572b5 to fix this
keqiaozhang commentedon Oct 31, 2018
@ranj063
Yes, kernel can build after applying 41572b5.
plbossart commentedon Oct 31, 2018
can we please close this?
keqiaozhang commentedon Nov 1, 2018
Confirmed that this issue is fixed
Tested commit: 90eee4
Merge pull request thesofproject#231 from wedsonaf/iter
drm/amd/display: fix divide error in DM plane scale calcs
selftests/bpf: Add mprog API tests for BPF tcx links
drm/amd/display: fix divide error in DM plane scale calcs
mm/cma: make detection of highmem_start more robust