[alsa-devel] [asoc:topic/sti-sas 1/1] sound/soc/codecs/sti-sas.c:558:2: note: in expansion of macro 'if'
tree: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/sti-sas head: 32a726b2e089ec1851965290a610c4ae9cab3303 commit: 32a726b2e089ec1851965290a610c4ae9cab3303 [1/1] ASoC: sti-sas: Add sti platform codec config: i386-randconfig-x0-07111645 (attached as .config) reproduce: git checkout 32a726b2e089ec1851965290a610c4ae9cab3303 # save the attached .config to linux build tree make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from include/uapi/linux/stddef.h:1:0, from include/linux/stddef.h:4, from include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/linux/io.h:21, from sound/soc/codecs/sti-sas.c:8: sound/soc/codecs/sti-sas.c: In function 'sti_sas_driver_probe': sound/soc/codecs/sti-sas.c:558:46: warning: dereferencing 'void *' pointer if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ include/linux/compiler.h:147:28: note: in definition of macro '__trace_if' if (__builtin_constant_p((cond)) ? !!(cond) : \ ^
sound/soc/codecs/sti-sas.c:558:2: note: in expansion of macro 'if'
if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ sound/soc/codecs/sti-sas.c:558:46: error: request for member 'data' in something not a structure or union if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ include/linux/compiler.h:147:28: note: in definition of macro '__trace_if' if (__builtin_constant_p((cond)) ? !!(cond) : \ ^
sound/soc/codecs/sti-sas.c:558:2: note: in expansion of macro 'if'
if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ sound/soc/codecs/sti-sas.c:558:46: warning: dereferencing 'void *' pointer if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ include/linux/compiler.h:147:40: note: in definition of macro '__trace_if' if (__builtin_constant_p((cond)) ? !!(cond) : \ ^
sound/soc/codecs/sti-sas.c:558:2: note: in expansion of macro 'if'
if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ sound/soc/codecs/sti-sas.c:558:46: error: request for member 'data' in something not a structure or union if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ include/linux/compiler.h:147:40: note: in definition of macro '__trace_if' if (__builtin_constant_p((cond)) ? !!(cond) : \ ^
sound/soc/codecs/sti-sas.c:558:2: note: in expansion of macro 'if'
if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ sound/soc/codecs/sti-sas.c:558:46: warning: dereferencing 'void *' pointer if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ include/linux/compiler.h:158:16: note: in definition of macro '__trace_if' ______r = !!(cond); \ ^
sound/soc/codecs/sti-sas.c:558:2: note: in expansion of macro 'if'
if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ sound/soc/codecs/sti-sas.c:558:46: error: request for member 'data' in something not a structure or union if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ include/linux/compiler.h:158:16: note: in definition of macro '__trace_if' ______r = !!(cond); \ ^
sound/soc/codecs/sti-sas.c:558:2: note: in expansion of macro 'if'
if (!of_match_node(sti_sas_dev_match, pnode)->data) { ^ sound/soc/codecs/sti-sas.c:563:61: warning: dereferencing 'void *' pointer drvdata->dev_data = of_match_node(sti_sas_dev_match, pnode)->data; ^ sound/soc/codecs/sti-sas.c:563:61: error: request for member 'data' in something not a structure or union
vim +/if +558 sound/soc/codecs/sti-sas.c
542 }, 543 {}, 544 }; 545 546 static int sti_sas_driver_probe(struct platform_device *pdev) 547 { 548 struct device_node *pnode = pdev->dev.of_node; 549 struct sti_sas_data *drvdata; 550 551 /* Allocate device structure */ 552 drvdata = devm_kzalloc(&pdev->dev, sizeof(struct sti_sas_data), 553 GFP_KERNEL); 554 if (!drvdata) 555 return -ENOMEM; 556 557 /* Populate data structure depending on compatibility */
558 if (!of_match_node(sti_sas_dev_match, pnode)->data) {
559 dev_err(&pdev->dev, "data associated to device is missing"); 560 return -EINVAL; 561 } 562 563 drvdata->dev_data = of_match_node(sti_sas_dev_match, pnode)->data; 564 565 /* Initialise device structure */ 566 drvdata->dev = &pdev->dev;
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
participants (1)
-
kbuild test robot