* [robh:for-kernelci 6/7] sound/soc/samsung/smdk_wm8994.c:173:7: error: call to undeclared function 'of_match_device'; ISO C99 and later do not support implicit function declarations
@ 2023-08-31 9:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-31 9:03 UTC (permalink / raw)
To: Rob Herring; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-kernelci
head: 2f859c7b504dbff5d4770187e5416610db4625e3
commit: f4013f411676ad6281f520bdc4ba108b089fc2b8 [6/7] ASoC: Clean-up DT includes
config: arm64-randconfig-r021-20230831 (https://download.01.org/0day-ci/archive/20230831/202308311611.UYSTGY7t-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230831/202308311611.UYSTGY7t-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308311611.UYSTGY7t-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/samsung/smdk_wm8994.c:173:7: error: call to undeclared function 'of_match_device'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
173 | id = of_match_device(samsung_wm8994_of_match, &pdev->dev);
| ^
sound/soc/samsung/smdk_wm8994.c:173:7: note: did you mean 'of_match_node'?
include/linux/of.h:370:35: note: 'of_match_node' declared here
370 | extern const struct of_device_id *of_match_node(
| ^
>> sound/soc/samsung/smdk_wm8994.c:173:5: error: incompatible integer to pointer conversion assigning to 'const struct of_device_id *' from 'int' [-Wint-conversion]
173 | id = of_match_device(samsung_wm8994_of_match, &pdev->dev);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +/of_match_device +173 sound/soc/samsung/smdk_wm8994.c
96657d33b9ba4e Jassi Brar 2010-12-20 143
fdca21ad460320 Bill Pemberton 2012-12-07 144 static int smdk_audio_probe(struct platform_device *pdev)
96657d33b9ba4e Jassi Brar 2010-12-20 145 {
96657d33b9ba4e Jassi Brar 2010-12-20 146 int ret;
28a480583361b8 Padmavathi Venna 2013-01-18 147 struct device_node *np = pdev->dev.of_node;
9c9acc91561221 Sachin Kamat 2012-07-03 148 struct snd_soc_card *card = &smdk;
d30c148bb1cab2 Mark Brown 2013-07-26 149 struct smdk_wm8994_data *board;
d30c148bb1cab2 Mark Brown 2013-07-26 150 const struct of_device_id *id;
96657d33b9ba4e Jassi Brar 2010-12-20 151
9c9acc91561221 Sachin Kamat 2012-07-03 152 card->dev = &pdev->dev;
28a480583361b8 Padmavathi Venna 2013-01-18 153
d30c148bb1cab2 Mark Brown 2013-07-26 154 board = devm_kzalloc(&pdev->dev, sizeof(*board), GFP_KERNEL);
d30c148bb1cab2 Mark Brown 2013-07-26 155 if (!board)
d30c148bb1cab2 Mark Brown 2013-07-26 156 return -ENOMEM;
d30c148bb1cab2 Mark Brown 2013-07-26 157
28a480583361b8 Padmavathi Venna 2013-01-18 158 if (np) {
2f8ea84e3a8c9d Kuninori Morimoto 2019-06-06 159 smdk_dai[0].cpus->dai_name = NULL;
2f8ea84e3a8c9d Kuninori Morimoto 2019-06-06 160 smdk_dai[0].cpus->of_node = of_parse_phandle(np,
28a480583361b8 Padmavathi Venna 2013-01-18 161 "samsung,i2s-controller", 0);
2f8ea84e3a8c9d Kuninori Morimoto 2019-06-06 162 if (!smdk_dai[0].cpus->of_node) {
28a480583361b8 Padmavathi Venna 2013-01-18 163 dev_err(&pdev->dev,
28a480583361b8 Padmavathi Venna 2013-01-18 164 "Property 'samsung,i2s-controller' missing or invalid\n");
28a480583361b8 Padmavathi Venna 2013-01-18 165 ret = -EINVAL;
fbb123e248c127 Pierre-Louis Bossart 2021-02-19 166 return ret;
28a480583361b8 Padmavathi Venna 2013-01-18 167 }
806bfc27ea84e7 Kuninori Morimoto 2019-06-28 168
806bfc27ea84e7 Kuninori Morimoto 2019-06-28 169 smdk_dai[0].platforms->name = NULL;
806bfc27ea84e7 Kuninori Morimoto 2019-06-28 170 smdk_dai[0].platforms->of_node = smdk_dai[0].cpus->of_node;
28a480583361b8 Padmavathi Venna 2013-01-18 171 }
28a480583361b8 Padmavathi Venna 2013-01-18 172
0670c9a7239a47 Krzysztof Kozlowski 2020-11-25 @173 id = of_match_device(samsung_wm8994_of_match, &pdev->dev);
d30c148bb1cab2 Mark Brown 2013-07-26 174 if (id)
d30c148bb1cab2 Mark Brown 2013-07-26 175 *board = *((struct smdk_wm8994_data *)id->data);
d30c148bb1cab2 Mark Brown 2013-07-26 176
d30c148bb1cab2 Mark Brown 2013-07-26 177 platform_set_drvdata(pdev, board);
d30c148bb1cab2 Mark Brown 2013-07-26 178
9a8e0322f0a8c7 Mark Brown 2013-09-16 179 ret = devm_snd_soc_register_card(&pdev->dev, card);
96657d33b9ba4e Jassi Brar 2010-12-20 180
27c6eaebcf75e4 Kuninori Morimoto 2021-12-14 181 if (ret)
27c6eaebcf75e4 Kuninori Morimoto 2021-12-14 182 dev_err_probe(&pdev->dev, ret, "snd_soc_register_card() failed\n");
96657d33b9ba4e Jassi Brar 2010-12-20 183
96657d33b9ba4e Jassi Brar 2010-12-20 184 return ret;
96657d33b9ba4e Jassi Brar 2010-12-20 185 }
96657d33b9ba4e Jassi Brar 2010-12-20 186
:::::: The code at line 173 was first introduced by commit
:::::: 0670c9a7239a478ec9675fa82d7ee0a86ef22fe5 ASoC: samsung: smdk_wm8994: remove redundant of_match_ptr()
:::::: TO: Krzysztof Kozlowski <krzk@kernel.org>
:::::: CC: Mark Brown <broonie@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-31 9:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31 9:03 [robh:for-kernelci 6/7] sound/soc/samsung/smdk_wm8994.c:173:7: error: call to undeclared function 'of_match_device'; ISO C99 and later do not support implicit function declarations kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.