[Intel-gfx] [PATCH v14] drm/audio: declaration of struct device

Ramalingam C ramalingam.c at intel.com
Sat Feb 16 04:52:35 UTC 2019


Header has used the references to struct device without it definition
or declaration.

Hence the warning of "struct device declared inside parameter list..."
This changes adds a declaration to struct device in the header to avoid
any such warnings.

Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
---
 include/drm/drm_audio_component.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/drm/drm_audio_component.h b/include/drm/drm_audio_component.h
index d0c7444319f5..a45f93487039 100644
--- a/include/drm/drm_audio_component.h
+++ b/include/drm/drm_audio_component.h
@@ -5,6 +5,7 @@
 #define _DRM_AUDIO_COMPONENT_H_
 
 struct drm_audio_component;
+struct device;
 
 /**
  * struct drm_audio_component_ops - Ops implemented by DRM driver, called by hda driver
-- 
2.7.4



More information about the Intel-gfx mailing list