From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6802ACCA47F for ; Thu, 30 Jun 2022 12:08:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233674AbiF3MI5 (ORCPT ); Thu, 30 Jun 2022 08:08:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232111AbiF3MIx (ORCPT ); Thu, 30 Jun 2022 08:08:53 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9AD0286E6 for ; Thu, 30 Jun 2022 05:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656590930; x=1688126930; h=date:from:to:cc:subject:message-id:mime-version; bh=SzRawcd9STLTr0ohxfcr/g7M0Qr7sON0gLQVUD5YBes=; b=NWbXH9b2x0d6XawZN9TsGcIefBbOlsxKbg2j0flC1otzeDEjPtaafThj 2YKrZCKrwXw7HUC600mB2ByvNDYHiORxFg3sp8l6XagMZNvlKrQlWjRQu iETqZU9Mp90twa3ldxvqt8FGuSISpi+8QumddnSPsh7Bq9N/EusLq53wU TyNkuaNghnBczqf0zzfLBVOPeiE2Kp4v98X44rVOa1/OCZ9EH4IZR8LI0 3vvmO6xcBtS9O6wVjUnYMc+v0OjB3eAKXIrow0Q/HISbx/BfdCb9WEUbK dAhoWDryvVz4rRl+ya9YORWyzwN6mKiDy814UlX9D5s3tKQmCoZKX8XqO Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10393"; a="279874060" X-IronPort-AV: E=Sophos;i="5.92,234,1650956400"; d="scan'208";a="279874060" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2022 05:08:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,234,1650956400"; d="scan'208";a="837579479" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 30 Jun 2022 05:08:49 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o6syW-000Ciq-Qd; Thu, 30 Jun 2022 12:08:48 +0000 Date: Thu, 30 Jun 2022 20:08:47 +0800 From: kernel test robot To: Kuninori Morimoto Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [morimoto:sound-2022-06-30-v3 10/19] sound/soc/soc-compress.c:576:6: error: call to undeclared function 'snd_soc_dai_stream_valid'; ISO C99 and later do not support implicit function declarations Message-ID: <202206302045.7a2GE3AN-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/morimoto/linux sound-2022-06-30-v3 head: fc6f65d23a318462b8e17cdf7db622dfc7719ac7 commit: ea993ad61cf954e1efc29e0eff1292a4498dc3ba [10/19] hoge config: powerpc-randconfig-r033-20220629 (https://download.01.org/0day-ci/archive/20220630/202206302045.7a2GE3AN-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a774ba7f60d1fef403b5507b1b1a7475d3684d71) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://github.com/morimoto/linux/commit/ea993ad61cf954e1efc29e0eff1292a4498dc3ba git remote add morimoto https://github.com/morimoto/linux git fetch --no-tags morimoto sound-2022-06-30-v3 git checkout ea993ad61cf954e1efc29e0eff1292a4498dc3ba # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/staging/greybus/ sound/soc/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> sound/soc/soc-compress.c:576:6: error: call to undeclared function 'snd_soc_dai_stream_valid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_PLAYBACK) && ^ sound/soc/soc-compress.c:576:6: note: did you mean 'snd_soc_dai_stream_active'? include/sound/soc-dai.h:600:1: note: 'snd_soc_dai_stream_active' declared here snd_soc_dai_stream_active(struct snd_soc_dai *dai, int stream) ^ 1 error generated. vim +/snd_soc_dai_stream_valid +576 sound/soc/soc-compress.c 2a99ef0fdb35a0f Liam Girdwood 2014-01-17 535 6f0c42269f000b1 Jie Yang 2015-10-13 536 /** 6f0c42269f000b1 Jie Yang 2015-10-13 537 * snd_soc_new_compress - create a new compress. 6f0c42269f000b1 Jie Yang 2015-10-13 538 * 6f0c42269f000b1 Jie Yang 2015-10-13 539 * @rtd: The runtime for which we will create compress 6f0c42269f000b1 Jie Yang 2015-10-13 540 * @num: the device index number (zero based - shared with normal PCMs) 6f0c42269f000b1 Jie Yang 2015-10-13 541 * 6f0c42269f000b1 Jie Yang 2015-10-13 542 * Return: 0 for success, else error. 6f0c42269f000b1 Jie Yang 2015-10-13 543 */ 6f0c42269f000b1 Jie Yang 2015-10-13 544 int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) 1245b7005de02d5 Namarta Kohli 2012-08-16 545 { 9e7e3738ab0e908 Kuninori Morimoto 2017-10-11 546 struct snd_soc_component *component; c2233a266178f89 Kuninori Morimoto 2020-03-30 547 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); c2233a266178f89 Kuninori Morimoto 2020-03-30 548 struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0); 1245b7005de02d5 Namarta Kohli 2012-08-16 549 struct snd_compr *compr; 2a99ef0fdb35a0f Liam Girdwood 2014-01-17 550 struct snd_pcm *be_pcm; 1245b7005de02d5 Namarta Kohli 2012-08-16 551 char new_name[64]; 1245b7005de02d5 Namarta Kohli 2012-08-16 552 int ret = 0, direction = 0; a1068045883ed4a Vinod Koul 2016-01-07 553 int playback = 0, capture = 0; 613fb50059cf19a Kuninori Morimoto 2020-01-10 554 int i; 1245b7005de02d5 Namarta Kohli 2012-08-16 555 7428d8c8bd79368 Kuninori Morimoto 2020-10-30 556 /* 7428d8c8bd79368 Kuninori Morimoto 2020-10-30 557 * make sure these are same value, 7428d8c8bd79368 Kuninori Morimoto 2020-10-30 558 * and then use these as equally 7428d8c8bd79368 Kuninori Morimoto 2020-10-30 559 */ 7428d8c8bd79368 Kuninori Morimoto 2020-10-30 560 BUILD_BUG_ON((int)SNDRV_PCM_STREAM_PLAYBACK != (int)SND_COMPRESS_PLAYBACK); 7428d8c8bd79368 Kuninori Morimoto 2020-10-30 561 BUILD_BUG_ON((int)SNDRV_PCM_STREAM_CAPTURE != (int)SND_COMPRESS_CAPTURE); 7428d8c8bd79368 Kuninori Morimoto 2020-10-30 562 6e1276a5e613d25 Bard Liao 2020-02-25 563 if (rtd->num_cpus > 1 || 6e1276a5e613d25 Bard Liao 2020-02-25 564 rtd->num_codecs > 1) { 141dfc9e3751f5f Charles Keepax 2018-01-26 565 dev_err(rtd->card->dev, 6e1276a5e613d25 Bard Liao 2020-02-25 566 "Compress ASoC: Multi CPU/Codec not supported\n"); 8151d5e60232d31 Benoit Cousson 2014-07-08 567 return -EINVAL; 8151d5e60232d31 Benoit Cousson 2014-07-08 568 } 8151d5e60232d31 Benoit Cousson 2014-07-08 569 ccb4214f7f2a8b7 Jiasheng Jiang 2022-03-10 570 if (!codec_dai) { ccb4214f7f2a8b7 Jiasheng Jiang 2022-03-10 571 dev_err(rtd->card->dev, "Missing codec\n"); ccb4214f7f2a8b7 Jiasheng Jiang 2022-03-10 572 return -EINVAL; ccb4214f7f2a8b7 Jiasheng Jiang 2022-03-10 573 } ccb4214f7f2a8b7 Jiasheng Jiang 2022-03-10 574 1245b7005de02d5 Namarta Kohli 2012-08-16 575 /* check client and interface hw capabilities */ 467fece8fbc6774 Kuninori Morimoto 2019-07-22 @576 if (snd_soc_dai_stream_valid(codec_dai, SNDRV_PCM_STREAM_PLAYBACK) && :::::: The code at line 576 was first introduced by commit :::::: 467fece8fbc6774a3a3bd0981e1a342fb5022706 ASoC: soc-dai: move snd_soc_dai_stream_valid() to soc-dai.c :::::: TO: Kuninori Morimoto :::::: CC: Mark Brown -- 0-DAY CI Kernel Test Service https://01.org/lkp