[benjamin.gaignard:sti-drm-next-2016-06-30 4/4] drivers/gpu/drm/sti/sti_hdmi.c:478:41: error: 'struct sti_hdmi' has no member named 'audio'
Benjamin Gaignard
benjamin.gaignard at linaro.org
Fri Jul 1 07:19:44 UTC 2016
I have fix the issue and (force) updated the branch
Thanks,
Benjamin
2016-06-30 21:24 GMT+02:00 kbuild test robot <fengguang.wu at intel.com>:
> tree: https://git.linaro.org/people/benjamin.gaignard/kernel
> sti-drm-next-2016-06-30
> head: 25068cfb36b0e13cb11c0eb80b0616557355b652
> commit: 25068cfb36b0e13cb11c0eb80b0616557355b652 [4/4] drm: sti: Add ASoC
> generic hdmi codec support.
> config: arm-allyesconfig (attached as .config)
> compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
> reproduce:
> wget
> https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
> -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 25068cfb36b0e13cb11c0eb80b0616557355b652
> # save the attached .config to linux build tree
> make.cross ARCH=arm
>
> All error/warnings (new ones prefixed by >>):
>
> drivers/gpu/drm/sti/sti_hdmi.c: In function
> 'hdmi_audio_infoframe_config':
> >> drivers/gpu/drm/sti/sti_hdmi.c:478:41: error: 'struct sti_hdmi' has no
> member named 'audio'
> struct hdmi_audio_params *audio = &hdmi->audio;
> ^
> In file included from drivers/gpu/drm/sti/sti_hdmi.c:16:0:
> >> drivers/gpu/drm/sti/sti_hdmi.c:483:10: error: dereferencing pointer to
> incomplete type 'struct hdmi_audio_params'
> audio->enabled ? "enable" : "disable");
> ^
> include/drm/drmP.h:211:41: note: in definition of macro
> 'DRM_DEBUG_DRIVER'
> drm_ut_debug_printk(__func__, fmt, ##args); \
> ^
> drivers/gpu/drm/sti/sti_hdmi.c: At top level:
> >> drivers/gpu/drm/sti/sti_hdmi.c:1128:12: warning: 'struct
> hdmi_audio_params' declared inside parameter list
> struct hdmi_audio_params *params)
> ^
> >> drivers/gpu/drm/sti/sti_hdmi.c:1128:12: warning: its scope is only this
> definition or declaration, which is probably not what you want
> drivers/gpu/drm/sti/sti_hdmi.c: In function 'hdmi_audio_configure':
> drivers/gpu/drm/sti/sti_hdmi.c:1131:45: error: dereferencing pointer to
> incomplete type 'struct hdmi_audio_params'
> struct hdmi_audio_infoframe *info = ¶ms->cea;
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1167:6: error: 'struct sti_hdmi' has no
> member named 'audio'
> hdmi->audio = *params;
> ^
> drivers/gpu/drm/sti/sti_hdmi.c: In function 'hdmi_audio_shutdown':
> drivers/gpu/drm/sti/sti_hdmi.c:1184:6: error: 'struct sti_hdmi' has no
> member named 'audio'
> hdmi->audio.enabled = 0;
> ^
> drivers/gpu/drm/sti/sti_hdmi.c: In function 'hdmi_audio_hw_params':
> >> drivers/gpu/drm/sti/sti_hdmi.c:1194:9: error: variable 'audio' has
> initializer but incomplete type
> struct hdmi_audio_params audio = {
> ^
> >> drivers/gpu/drm/sti/sti_hdmi.c:1195:3: error: unknown field
> 'sample_width' specified in initializer
> .sample_width = params->sample_width,
> ^
> >> drivers/gpu/drm/sti/sti_hdmi.c:1195:19: warning: excess elements in
> struct initializer
> .sample_width = params->sample_width,
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1195:19: note: (near initialization for
> 'audio')
> >> drivers/gpu/drm/sti/sti_hdmi.c:1196:3: error: unknown field
> 'sample_rate' specified in initializer
> .sample_rate = params->sample_rate,
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1196:18: warning: excess elements in
> struct initializer
> .sample_rate = params->sample_rate,
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1196:18: note: (near initialization for
> 'audio')
> >> drivers/gpu/drm/sti/sti_hdmi.c:1197:3: error: unknown field 'cea'
> specified in initializer
> .cea = params->cea,
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1197:10: warning: excess elements in
> struct initializer
> .cea = params->cea,
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1197:10: note: (near initialization for
> 'audio')
> >> drivers/gpu/drm/sti/sti_hdmi.c:1194:27: error: storage size of 'audio'
> isn't known
> struct hdmi_audio_params audio = {
> ^
> >> drivers/gpu/drm/sti/sti_hdmi.c:1194:27: warning: unused variable
> 'audio' [-Wunused-variable]
> drivers/gpu/drm/sti/sti_hdmi.c: In function 'hdmi_audio_get_eld':
> >> drivers/gpu/drm/sti/sti_hdmi.c:1241:40: error: 'struct sti_hdmi' has no
> member named 'drm_connector'
> struct drm_connector *connector = hdmi->drm_connector;
> ^
> drivers/gpu/drm/sti/sti_hdmi.c: In function
> 'sti_hdmi_register_audio_driver':
> drivers/gpu/drm/sti/sti_hdmi.c:1267:6: error: 'struct sti_hdmi' has no
> member named 'audio'
> hdmi->audio.enabled = 0;
> ^
> >> drivers/gpu/drm/sti/sti_hdmi.c:1269:6: error: 'struct sti_hdmi' has no
> member named 'audio_pdev'
> hdmi->audio_pdev = platform_device_register_data(
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1273:17: error: 'struct sti_hdmi' has no
> member named 'audio_pdev'
> if (IS_ERR(hdmi->audio_pdev))
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1274:22: error: 'struct sti_hdmi' has no
> member named 'audio_pdev'
> return PTR_ERR(hdmi->audio_pdev);
> ^
> drivers/gpu/drm/sti/sti_hdmi.c: In function 'sti_hdmi_bind':
> drivers/gpu/drm/sti/sti_hdmi.c:1327:6: error: 'struct sti_hdmi' has no
> member named 'drm_connector'
> hdmi->drm_connector = drm_connector;
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1342:39: error: 'struct sti_hdmi' has no
> member named 'audio'
> err = hdmi_audio_infoframe_init(&hdmi->audio.cea);
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1355:6: error: 'struct sti_hdmi' has no
> member named 'drm_connector'
> hdmi->drm_connector = NULL;
> ^
> drivers/gpu/drm/sti/sti_hdmi.c: In function 'sti_hdmi_remove':
> drivers/gpu/drm/sti/sti_hdmi.c:1505:10: error: 'struct sti_hdmi' has no
> member named 'audio_pdev'
> if (hdmi->audio_pdev)
> ^
> drivers/gpu/drm/sti/sti_hdmi.c:1506:34: error: 'struct sti_hdmi' has no
> member named 'audio_pdev'
> platform_device_unregister(hdmi->audio_pdev);
> ^
>
> vim +478 drivers/gpu/drm/sti/sti_hdmi.c
>
> 472 * @hdmi: pointer on the hdmi internal structure
> 473 *
> 474 * Return negative value if error occurs
> 475 */
> 476 static int hdmi_audio_infoframe_config(struct sti_hdmi *hdmi)
> 477 {
> > 478 struct hdmi_audio_params *audio = &hdmi->audio;
> 479 u8 buffer[HDMI_INFOFRAME_SIZE(AUDIO)];
> 480 int ret, val;
> 481
> 482 DRM_DEBUG_DRIVER("enter %s, AIF %s\n", __func__,
> > 483 audio->enabled ? "enable" : "disable");
> 484 if (audio->enabled) {
> 485 /* set audio parameters stored*/
> 486 ret = hdmi_audio_infoframe_pack(&audio->cea,
> buffer,
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology
> Center
> https://lists.01.org/pipermail/kbuild-all Intel
> Corporation
>
--
Benjamin Gaignard
Graphic Working Group
Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs
Follow *Linaro: *Facebook <http://www.facebook.com/pages/Linaro> | Twitter
<http://twitter.com/#!/linaroorg> | Blog
<http://www.linaro.org/linaro-blog/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160701/e9347ea2/attachment-0001.html>
More information about the dri-devel
mailing list