* [robh:for-kernelci 6/7] sound/soc/samsung/smdk_wm8994.c:173:12: warning: assignment to 'const struct of_device_id *' from 'int' makes pointer from integer without a cast
@ 2023-08-31 6:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-31 6:01 UTC (permalink / raw)
To: Rob Herring; +Cc: 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: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230831/202308311331.IhfZWq2f-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230831/202308311331.IhfZWq2f-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/202308311331.IhfZWq2f-lkp@intel.com/
All warnings (new ones prefixed by >>):
sound/soc/samsung/smdk_wm8994.c: In function 'smdk_audio_probe':
sound/soc/samsung/smdk_wm8994.c:173:14: error: implicit declaration of function 'of_match_device'; did you mean 'of_match_node'? [-Werror=implicit-function-declaration]
173 | id = of_match_device(samsung_wm8994_of_match, &pdev->dev);
| ^~~~~~~~~~~~~~~
| of_match_node
>> sound/soc/samsung/smdk_wm8994.c:173:12: warning: assignment to 'const struct of_device_id *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
173 | id = of_match_device(samsung_wm8994_of_match, &pdev->dev);
| ^
cc1: some warnings being treated as errors
--
sound/soc/sh/rcar/core.c: In function 'rsnd_parse_connect_graph':
sound/soc/sh/rcar/core.c:1146:23: error: implicit declaration of function 'of_graph_get_remote_port_parent'; did you mean 'fwnode_graph_get_remote_port_parent'? [-Werror=implicit-function-declaration]
1146 | remote_node = of_graph_get_remote_port_parent(endpoint);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| fwnode_graph_get_remote_port_parent
>> sound/soc/sh/rcar/core.c:1146:21: warning: assignment to 'struct device_node *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1146 | remote_node = of_graph_get_remote_port_parent(endpoint);
| ^
sound/soc/sh/rcar/core.c: In function 'rsnd_dai_of_node':
sound/soc/sh/rcar/core.c:1300:43: error: implicit declaration of function 'of_graph_get_endpoint_count'; did you mean 'fwnode_graph_get_endpoint_count'? [-Werror=implicit-function-declaration]
1300 | priv->component_dais[i] = of_graph_get_endpoint_count(ports);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| fwnode_graph_get_endpoint_count
sound/soc/sh/rcar/core.c: In function 'rsnd_dai_probe':
sound/soc/sh/rcar/core.c:1512:25: error: implicit declaration of function 'for_each_endpoint_of_node'; did you mean 'for_each_child_of_node'? [-Werror=implicit-function-declaration]
1512 | for_each_endpoint_of_node(ports, dai_np) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| for_each_child_of_node
sound/soc/sh/rcar/core.c:1512:65: error: expected ';' before '{' token
1512 | for_each_endpoint_of_node(ports, dai_np) {
| ^~
| ;
sound/soc/sh/rcar/core.c: At top level:
>> sound/soc/sh/rcar/core.c:1136:13: warning: 'rsnd_parse_connect_graph' defined but not used [-Wunused-function]
1136 | static void rsnd_parse_connect_graph(struct rsnd_priv *priv,
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +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 6: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 6:01 [robh:for-kernelci 6/7] sound/soc/samsung/smdk_wm8994.c:173:12: warning: assignment to 'const struct of_device_id *' from 'int' makes pointer from integer without a cast 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.