<p dir="ltr"></p>
<p dir="ltr">On Aug 12, 2016 1:49 PM, "Daniel Vetter" <<a href="mailto:daniel.vetter@ffwll.ch">daniel.vetter@ffwll.ch</a>> wrote:<br>
><br>
> These are the leftovers I could only track down using keep_warnings =<br>
> True. For some of them we might want to update our style guide on how<br>
> to reference structures and constants, not sure ...<br>
><br>
> Cc: Markus Heiser <<a href="mailto:markus.heiser@darmarit.de">markus.heiser@darmarit.de</a>><br>
> Cc: Jonathan Corbet <<a href="mailto:corbet@lwn.net">corbet@lwn.net</a>><br>
> Cc: <a href="mailto:linux-doc@vger.kernel.org">linux-doc@vger.kernel.org</a><br>
> Signed-off-by: Daniel Vetter <<a href="mailto:daniel.vetter@intel.com">daniel.vetter@intel.com</a>></p>
<p dir="ltr">Reviewed-by: Sean Paul <<a href="mailto:seanpaul@chromium.org">seanpaul@chromium.org</a>><br></p>
<p dir="ltr">> ---<br>
> drivers/gpu/drm/drm_crtc.c | 4 ++--<br>
> drivers/gpu/drm/drm_fb_helper.c | 2 +-<br>
> drivers/gpu/drm/drm_irq.c | 8 +++----<br>
> drivers/gpu/drm/drm_simple_kms_helper.c | 2 +-<br>
> drivers/gpu/drm/i915/i915_vgpu.c | 42 ++++++++++++++++-----------------<br>
> drivers/gpu/drm/i915/intel_audio.c | 6 ++---<br>
> drivers/gpu/drm/i915/intel_guc_fwif.h | 5 ++--<br>
> include/drm/drm_crtc.h | 8 +++----<br>
> include/drm/drm_gem.h | 4 ++--<br>
> 9 files changed, 41 insertions(+), 40 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c<br>
> index c31298f0bb0e..4cb8f4b49d8b 100644<br>
> --- a/drivers/gpu/drm/drm_crtc.c<br>
> +++ b/drivers/gpu/drm/drm_crtc.c<br>
> @@ -1272,7 +1272,7 @@ static unsigned int drm_num_planes(struct drm_device *dev)<br>
> * @plane: plane object to init<br>
> * @possible_crtcs: bitmask of possible CRTCs<br>
> * @funcs: callbacks for the new plane<br>
> - * @formats: array of supported formats (%DRM_FORMAT_*)<br>
> + * @formats: array of supported formats (DRM_FORMAT\_\*)<br>
> * @format_count: number of elements in @formats<br>
> * @type: type of plane (overlay, primary, cursor)<br>
> * @name: printf style format string for the plane name, or NULL for default name<br>
> @@ -1387,7 +1387,7 @@ static void drm_plane_unregister_all(struct drm_device *dev)<br>
> * @plane: plane object to init<br>
> * @possible_crtcs: bitmask of possible CRTCs<br>
> * @funcs: callbacks for the new plane<br>
> - * @formats: array of supported formats (%DRM_FORMAT_*)<br>
> + * @formats: array of supported formats (DRM_FORMAT\_\*)<br>
> * @format_count: number of elements in @formats<br>
> * @is_primary: plane type (primary vs overlay)<br>
> *<br>
> diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c<br>
> index aed79d31930c..c0d1066ea419 100644<br>
> --- a/drivers/gpu/drm/drm_fb_helper.c<br>
> +++ b/drivers/gpu/drm/drm_fb_helper.c<br>
> @@ -2193,7 +2193,7 @@ EXPORT_SYMBOL(drm_fb_helper_initial_config);<br>
> * @fb_helper: the drm_fb_helper<br>
> *<br>
> * Scan the connectors attached to the fb_helper and try to put together a<br>
> - * setup after *notification of a change in output configuration.<br>
> + * setup after notification of a change in output configuration.<br>
> *<br>
> * Called at runtime, takes the mode config locks to be able to check/change the<br>
> * modeset configuration. Must be run from process context (which usually means<br>
> diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c<br>
> index 9bdce1cb6c5c..10611a936059 100644<br>
> --- a/drivers/gpu/drm/drm_irq.c<br>
> +++ b/drivers/gpu/drm/drm_irq.c<br>
> @@ -713,10 +713,10 @@ EXPORT_SYMBOL(drm_calc_timestamping_constants);<br>
> * Negative value on error, failure or if not supported in current<br>
> * video mode:<br>
> *<br>
> - * -EINVAL - Invalid CRTC.<br>
> - * -EAGAIN - Temporary unavailable, e.g., called before initial modeset.<br>
> - * -ENOTSUPP - Function not supported in current display mode.<br>
> - * -EIO - Failed, e.g., due to failed scanout position query.<br>
> + * -EINVAL Invalid CRTC.<br>
> + * -EAGAIN Temporary unavailable, e.g., called before initial modeset.<br>
> + * -ENOTSUPP Function not supported in current display mode.<br>
> + * -EIO Failed, e.g., due to failed scanout position query.<br>
> *<br>
> * Returns or'ed positive status flags on success:<br>
> *<br>
> diff --git a/drivers/gpu/drm/drm_simple_kms_helper.c b/drivers/gpu/drm/drm_simple_kms_helper.c<br>
> index 0a02efe978ee..bada17166512 100644<br>
> --- a/drivers/gpu/drm/drm_simple_kms_helper.c<br>
> +++ b/drivers/gpu/drm/drm_simple_kms_helper.c<br>
> @@ -137,7 +137,7 @@ static const struct drm_plane_funcs drm_simple_kms_plane_funcs = {<br>
> * @dev: DRM device<br>
> * @pipe: simple display pipe object to initialize<br>
> * @funcs: callbacks for the display pipe (optional)<br>
> - * @formats: array of supported formats (%DRM_FORMAT_*)<br>
> + * @formats: array of supported formats (DRM_FORMAT\_\*)<br>
> * @format_count: number of elements in @formats<br>
> * @connector: connector to attach and register<br>
> *<br>
> diff --git a/drivers/gpu/drm/i915/i915_vgpu.c b/drivers/gpu/drm/i915/i915_vgpu.c<br>
> index 142bac976919..ca2e91259948 100644<br>
> --- a/drivers/gpu/drm/i915/i915_vgpu.c<br>
> +++ b/drivers/gpu/drm/i915/i915_vgpu.c<br>
> @@ -156,27 +156,27 @@ static int vgt_balloon_space(struct drm_mm *mm,<br>
> * host point of view, the graphic address space is partitioned by multiple<br>
> * vGPUs in different VMs. ::<br>
> *<br>
> - * vGPU1 view Host view<br>
> - * 0 ------> +-----------+ +-----------+<br>
> - * ^ |###########| | vGPU3 |<br>
> - * | |###########| +-----------+<br>
> - * | |###########| | vGPU2 |<br>
> - * | +-----------+ +-----------+<br>
> - * mappable GM | available | ==> | vGPU1 |<br>
> - * | +-----------+ +-----------+<br>
> - * | |###########| | |<br>
> - * v |###########| | Host |<br>
> - * +=======+===========+ +===========+<br>
> - * ^ |###########| | vGPU3 |<br>
> - * | |###########| +-----------+<br>
> - * | |###########| | vGPU2 |<br>
> - * | +-----------+ +-----------+<br>
> - * unmappable GM | available | ==> | vGPU1 |<br>
> - * | +-----------+ +-----------+<br>
> - * | |###########| | |<br>
> - * | |###########| | Host |<br>
> - * v |###########| | |<br>
> - * total GM size ------> +-----------+ +-----------+<br>
> + * vGPU1 view Host view<br>
> + * 0 ------> +-----------+ +-----------+<br>
> + * ^ |###########| | vGPU3 |<br>
> + * | |###########| +-----------+<br>
> + * | |###########| | vGPU2 |<br>
> + * | +-----------+ +-----------+<br>
> + * mappable GM | available | ==> | vGPU1 |<br>
> + * | +-----------+ +-----------+<br>
> + * | |###########| | |<br>
> + * v |###########| | Host |<br>
> + * +=======+===========+ +===========+<br>
> + * ^ |###########| | vGPU3 |<br>
> + * | |###########| +-----------+<br>
> + * | |###########| | vGPU2 |<br>
> + * | +-----------+ +-----------+<br>
> + * unmappable GM | available | ==> | vGPU1 |<br>
> + * | +-----------+ +-----------+<br>
> + * | |###########| | |<br>
> + * | |###########| | Host |<br>
> + * v |###########| | |<br>
> + * total GM size ------> +-----------+ +-----------+<br>
> *<br>
> * Returns:<br>
> * zero on success, non-zero if configuration invalid or ballooning failed<br>
> diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c<br>
> index d32f586f9c05..85389cdd0bec 100644<br>
> --- a/drivers/gpu/drm/i915/intel_audio.c<br>
> +++ b/drivers/gpu/drm/i915/intel_audio.c<br>
> @@ -51,10 +51,10 @@<br>
> * related registers. (The notable exception is the power management, not<br>
> * covered here.)<br>
> *<br>
> - * The struct i915_audio_component is used to interact between the graphics<br>
> - * and audio drivers. The struct i915_audio_component_ops *ops in it is<br>
> + * The struct &i915_audio_component is used to interact between the graphics<br>
> + * and audio drivers. The struct &i915_audio_component_ops @ops in it is<br>
> * defined in graphics driver and called in audio driver. The<br>
> - * struct i915_audio_component_audio_ops *audio_ops is called from i915 driver.<br>
> + * struct &i915_audio_component_audio_ops @audio_ops is called from i915 driver.<br>
> */<br>
><br>
> static const struct {<br>
> diff --git a/drivers/gpu/drm/i915/intel_guc_fwif.h b/drivers/gpu/drm/i915/intel_guc_fwif.h<br>
> index 944786d7075b..e40db2d2ae99 100644<br>
> --- a/drivers/gpu/drm/i915/intel_guc_fwif.h<br>
> +++ b/drivers/gpu/drm/i915/intel_guc_fwif.h<br>
> @@ -155,6 +155,7 @@<br>
> *<br>
> * +-------------------------------+<br>
> * | guc_css_header |<br>
> + * | |<br>
> * | contains major/minor version |<br>
> * +-------------------------------+<br>
> * | uCode |<br>
> @@ -176,10 +177,10 @@<br>
> *<br>
> * 1. Header, uCode and RSA are must-have components.<br>
> * 2. All firmware components, if they present, are in the sequence illustrated<br>
> - * in the layout table above.<br>
> + * in the layout table above.<br>
> * 3. Length info of each component can be found in header, in dwords.<br>
> * 4. Modulus and exponent key are not required by driver. They may not appear<br>
> - * in fw. So driver will load a truncated firmware in this case.<br>
> + * in fw. So driver will load a truncated firmware in this case.<br>
> */<br>
><br>
> struct guc_css_header {<br>
> diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h<br>
> index b618b506b04d..194eebb2f9d7 100644<br>
> --- a/include/drm/drm_crtc.h<br>
> +++ b/include/drm/drm_crtc.h<br>
> @@ -1197,7 +1197,7 @@ struct drm_encoder_funcs {<br>
> * @head: list management<br>
> * @base: base KMS object<br>
> * @name: human readable name, can be overwritten by the driver<br>
> - * @encoder_type: one of the %DRM_MODE_ENCODER_<foo> types in drm_mode.h<br>
> + * @encoder_type: one of the DRM_MODE_ENCODER_<foo> types in drm_mode.h<br>
> * @possible_crtcs: bitmask of potential CRTC bindings<br>
> * @possible_clones: bitmask of potential sibling encoders for cloning<br>
> * @crtc: currently bound CRTC<br>
> @@ -1250,7 +1250,7 @@ struct drm_encoder {<br>
> * @head: list management<br>
> * @base: base KMS object<br>
> * @name: human readable name, can be overwritten by the driver<br>
> - * @connector_type: one of the %DRM_MODE_CONNECTOR_<foo> types from drm_mode.h<br>
> + * @connector_type: one of the DRM_MODE_CONNECTOR_<foo> types from drm_mode.h<br>
> * @connector_type_id: index into connector type enum<br>
> * @interlace_allowed: can this connector handle interlaced modes?<br>
> * @doublescan_allowed: can this connector handle doublescan?<br>
> @@ -1263,11 +1263,11 @@ struct drm_encoder {<br>
> * @funcs: connector control functions<br>
> * @edid_blob_ptr: DRM property containing EDID if present<br>
> * @properties: property tracking for this connector<br>
> - * @polled: a %DRM_CONNECTOR_POLL_<foo> value for core driven polling<br>
> + * @polled: a DRM_CONNECTOR_POLL_<foo> value for core driven polling<br>
> * @dpms: current dpms state<br>
> * @helper_private: mid-layer private data<br>
> * @cmdline_mode: mode line parsed from the kernel cmdline for this connector<br>
> - * @force: a %DRM_FORCE_<foo> state for forced mode sets<br>
> + * @force: a DRM_FORCE_<foo> state for forced mode sets<br>
> * @override_edid: has the EDID been overwritten through debugfs for testing?<br>
> * @encoder_ids: valid encoders for this connector<br>
> * @encoder: encoder driving this connector, if any<br>
> diff --git a/include/drm/drm_gem.h b/include/drm/drm_gem.h<br>
> index fca1cd1b9c26..9f63736e6163 100644<br>
> --- a/include/drm/drm_gem.h<br>
> +++ b/include/drm/drm_gem.h<br>
> @@ -210,8 +210,8 @@ drm_gem_object_reference(struct drm_gem_object *obj)<br>
> * drm_gem_object_unreference_unlocked().<br>
> *<br>
> * Drivers should never call this directly in their code. Instead they should<br>
> - * wrap it up into a driver_gem_object_unreference(struct driver_gem_object<br>
> - * *obj) wrapper function, and use that. Shared code should never call this, to<br>
> + * wrap it up into a ``driver_gem_object_unreference(struct driver_gem_object<br>
> + * *obj)`` wrapper function, and use that. Shared code should never call this, to<br>
> * avoid breaking drivers by accident which still depend upon dev->struct_mutex<br>
> * locking.<br>
> */<br>
> --<br>
> 2.8.1<br>
><br>
> _______________________________________________<br>
> dri-devel mailing list<br>
> <a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/dri-devel">https://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br></p>