[alsa-devel] [asoc:topic/drm 1/1] drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c:88:21: error: storage size of 'of_ep' isn't known
kbuild test robot
fengguang.wu at intel.com
Thu Jun 29 18:39:32 CEST 2017
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/drm
head: e3839bd6f56a291f00a4c3737eb15ca0344a82a9
commit: e3839bd6f56a291f00a4c3737eb15ca0344a82a9 [1/1] drm: dw-hdmi-i2s: add .get_dai_id callback for ALSA SoC
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout e3839bd6f56a291f00a4c3737eb15ca0344a82a9
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c:85:42: warning: 'struct snd_soc_component' declared inside parameter list will not be visible outside of this definition or declaration
static int dw_hdmi_i2s_get_dai_id(struct snd_soc_component *component,
^~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c: In function 'dw_hdmi_i2s_get_dai_id':
>> drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c:88:21: error: storage size of 'of_ep' isn't known
struct of_endpoint of_ep;
^~~~~
>> drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c:91:8: error: implicit declaration of function 'of_graph_parse_endpoint' [-Werror=implicit-function-declaration]
ret = of_graph_parse_endpoint(endpoint, &of_ep);
^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c:88:21: warning: unused variable 'of_ep' [-Wunused-variable]
struct of_endpoint of_ep;
^~~~~
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c: At top level:
>> drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c:108:2: error: unknown field 'get_dai_id' specified in initializer
.get_dai_id = dw_hdmi_i2s_get_dai_id,
^
>> drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c:108:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.get_dai_id = dw_hdmi_i2s_get_dai_id,
^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c:108:16: note: (near initialization for 'dw_hdmi_i2s_ops.digital_mute')
cc1: some warnings being treated as errors
vim +88 drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c
79
80 dw_hdmi_audio_disable(hdmi);
81
82 hdmi_write(audio, HDMI_AUD_CONF0_SW_RESET, HDMI_AUD_CONF0);
83 }
84
> 85 static int dw_hdmi_i2s_get_dai_id(struct snd_soc_component *component,
86 struct device_node *endpoint)
87 {
> 88 struct of_endpoint of_ep;
89 int ret;
90
> 91 ret = of_graph_parse_endpoint(endpoint, &of_ep);
92 if (ret < 0)
93 return ret;
94
95 /*
96 * HDMI sound should be located as reg = <2>
97 * Then, it is sound port 0
98 */
99 if (of_ep.port == 2)
100 return 0;
101
102 return -EINVAL;
103 }
104
105 static struct hdmi_codec_ops dw_hdmi_i2s_ops = {
106 .hw_params = dw_hdmi_i2s_hw_params,
107 .audio_shutdown = dw_hdmi_i2s_audio_shutdown,
> 108 .get_dai_id = dw_hdmi_i2s_get_dai_id,
109 };
110
111 static int snd_dw_hdmi_probe(struct platform_device *pdev)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 60103 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170630/5874a758/attachment-0001.bin>
More information about the Alsa-devel
mailing list