Skip to content

Failed to make kernel on debug/cros-v4.14-rebase  #231

Closed

Description

@keqiaozhang

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);

chromeos-intel-pineview.flavour-config.txt

Activity

  1. added
    bugSomething isn't working
    P1Blocker bugs or important features
    on Oct 31, 2018
  2. cujomalainey commented on Oct 31, 2018

    @cujomalainey

    What branch are you on? Or a sha

  3. keqiaozhang commented on Oct 31, 2018

    @keqiaozhang
    Author

    @cujomalainey
    Branch name:origin/debug/cros-v4.14-rebase

  4. ranj063 commented on Oct 31, 2018

    @ranj063
    Collaborator

    @keqiaozhang you can cherry-pick 41572b5 to fix this

  5. keqiaozhang commented on Oct 31, 2018

    @keqiaozhang
    Author

    @ranj063
    Yes, kernel can build after applying 41572b5.

  6. plbossart commented on Oct 31, 2018

    @plbossart
    Member

    can we please close this?

  7. keqiaozhang commented on Nov 1, 2018

    @keqiaozhang
    Author

    Confirmed that this issue is fixed
    Tested commit: 90eee4

  8. added a commit that references this issue on May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Blocker bugs or important featuresbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions