lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 20 Jul 2022 06:20:22 +0800 From: kernel test robot <lkp@...el.com> To: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com> Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org Subject: [morimoto:sound2-2022-07-08-v1 9/18] sound/soc/soc-core.c:966:5: warning: no previous prototype for '__snd_soc_add_pcm_runtime' tree: https://github.com/morimoto/linux sound2-2022-07-08-v1 head: b5e8d2766050dfd3452dcdcdff072121984c9a31 commit: 525984dfed23d3f036e4c9bd8f8a72bec3823ffb [9/18] ASoC: force to use DPCM on normal connection config: loongarch-randconfig-r034-20220718 (https://download.01.org/0day-ci/archive/20220720/202207200605.fs9SeJdA-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 12.1.0 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 # https://github.com/morimoto/linux/commit/525984dfed23d3f036e4c9bd8f8a72bec3823ffb git remote add morimoto https://github.com/morimoto/linux git fetch --no-tags morimoto sound2-2022-07-08-v1 git checkout 525984dfed23d3f036e4c9bd8f8a72bec3823ffb # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash sound/soc/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@...el.com> All warnings (new ones prefixed by >>): >> sound/soc/soc-core.c:966:5: warning: no previous prototype for '__snd_soc_add_pcm_runtime' [-Wmissing-prototypes] 966 | int __snd_soc_add_pcm_runtime(struct snd_soc_card *card, | ^~~~~~~~~~~~~~~~~~~~~~~~~ vim +/__snd_soc_add_pcm_runtime +966 sound/soc/soc-core.c 954 955 /** 956 * snd_soc_add_pcm_runtime - Add a pcm_runtime dynamically via dai_link 957 * @card: The ASoC card to which the pcm_runtime is added 958 * @dai_link: The DAI link to find pcm_runtime 959 * 960 * This function adds a pcm_runtime ASoC card by using dai_link. 961 * 962 * Note: Topology can use this API to add pcm_runtime when probing the 963 * topology component. And machine drivers can still define static 964 * DAI links in dai_link array. 965 */ > 966 int __snd_soc_add_pcm_runtime(struct snd_soc_card *card, 967 struct snd_soc_dai_link *dai_link) 968 { 969 struct snd_soc_pcm_runtime *rtd; 970 struct snd_soc_dai_link_component *codec, *platform, *cpu; 971 struct snd_soc_component *component; 972 int i, ret; 973 974 lockdep_assert_held(&client_mutex); 975 976 /* 977 * Notify the machine driver for extra initialization 978 */ 979 ret = snd_soc_card_add_dai_link(card, dai_link); 980 if (ret < 0) 981 return ret; 982 983 if (dai_link->ignore) 984 return 0; 985 986 dev_dbg(card->dev, "ASoC: binding %s\n", dai_link->name); 987 988 ret = soc_dai_link_sanity_check(card, dai_link); 989 if (ret < 0) 990 return ret; 991 992 rtd = soc_new_pcm_runtime(card, dai_link); 993 if (!rtd) 994 return -ENOMEM; 995 996 for_each_link_cpus(dai_link, i, cpu) { 997 asoc_rtd_to_cpu(rtd, i) = snd_soc_find_dai(cpu); 998 if (!asoc_rtd_to_cpu(rtd, i)) { 999 dev_info(card->dev, "ASoC: CPU DAI %s not registered\n", 1000 cpu->dai_name); 1001 goto _err_defer; 1002 } 1003 snd_soc_rtd_add_component(rtd, asoc_rtd_to_cpu(rtd, i)->component); 1004 } 1005 1006 /* Find CODEC from registered CODECs */ 1007 for_each_link_codecs(dai_link, i, codec) { 1008 asoc_rtd_to_codec(rtd, i) = snd_soc_find_dai(codec); 1009 if (!asoc_rtd_to_codec(rtd, i)) { 1010 dev_info(card->dev, "ASoC: CODEC DAI %s not registered\n", 1011 codec->dai_name); 1012 goto _err_defer; 1013 } 1014 1015 snd_soc_rtd_add_component(rtd, asoc_rtd_to_codec(rtd, i)->component); 1016 } 1017 1018 /* Find PLATFORM from registered PLATFORMs */ 1019 for_each_link_platforms(dai_link, i, platform) { 1020 for_each_component(component) { 1021 if (!snd_soc_is_matching_component(platform, component)) 1022 continue; 1023 1024 snd_soc_rtd_add_component(rtd, component); 1025 } 1026 } 1027 1028 return 0; 1029 1030 _err_defer: 1031 snd_soc_remove_pcm_runtime(card, rtd); 1032 return -EPROBE_DEFER; 1033 } 1034 -- 0-DAY CI Kernel Test Service https://01.org/lkp
Powered by blists - more mailing lists