Rid W=1 warnings from GPU
Subsystems (5)
cover Rid W=1 warnings from GPU
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
Lee Jones (19):
drm/i915/i915_scatterlist: Fix kerneldoc formatting issue - missing
'@'
drm/i915/intel_region_ttm: Provide missing description for 'offset'
param
drm/radeon/radeon_ttm: Remove unused variable 'rbo' from
radeon_bo_move()
drm/i915/display/intel_display_debugfs: Fix incorrect param naming for
'intel_connector'
drm/i915/gt/intel_engine_cs: Fix a couple of incorrectly named
functions
drm/i915/gt/intel_rps: Demote a kerneldoc abuse for
ips_ping_for_i915_load() drm/i915/gem/i915_gem_create: Provide the function names for proper
kerneldoc headers
drm/i915/gem/i915_gem_domain: Provide function names to complete
proper kerneldoc
drm/i915/gem/i915_gem_ttm_pm: Provide a couple of missing descriptions
for 'flags' and remove some superfluous ones
drm/i915/gem/i915_gem_ttm: Demote half-filled kerneldoc drm/i915/gem/i915_gem_ttm_move: Provide a couple of missing
descriptions for 'num_pages' and 'ctx'
drm/i915/gem/i915_gem_wait: Provide function name to validate the
kerneldoc header
drm/i915/gem/i915_gem_object: Demote non-kerneldoc header with no
param descriptions
drm/i915/i915_gem: Provide function names to complete the expected
kerneldoc format
drm/i915/gt/uc/intel_guc_hwconfig: Demote a few non-conforming
kerneldoc headers
drm/i915/i915_vma: Provide one missing param and demote another
non-kerneldoc header
drm/i915/display/intel_display_power: Fix incorrectly documented
function __intel_display_power_put_async()
drm/amd/amdgpu/sdma_v6_0: Demote a bunch of half-completed function
headers
drm/i915/display/intel_wm: Fix a little doc-rot in
intel_update_watermarks()
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 8 ++++---- .../gpu/drm/i915/display/intel_display_debugfs.c | 2 +- drivers/gpu/drm/i915/display/intel_display_power.c | 2 +- drivers/gpu/drm/i915/display/intel_wm.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_create.c | 7 ++++--- drivers/gpu/drm/i915/gem/i915_gem_domain.c | 14 +++++++++----- drivers/gpu/drm/i915/gem/i915_gem_object.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c | 3 +++ drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c | 5 ++--- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 6 +++--- drivers/gpu/drm/i915/gt/intel_rps.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c | 6 +++--- drivers/gpu/drm/i915/i915_gem.c | 8 ++++---- drivers/gpu/drm/i915/i915_scatterlist.c | 2 +- drivers/gpu/drm/i915/i915_vma.c | 3 ++- drivers/gpu/drm/i915/intel_region_ttm.c | 1 + drivers/gpu/drm/radeon/radeon_ttm.c | 2 -- 19 files changed, 43 insertions(+), 36 deletions(-)
--
2.40.0.348.gf938b09366-goog
PATCH 1/19 drm/i915/i915_scatterlist: Fix kerneldoc formatting issue - missing '@'
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/i915_scatterlist.c:62: warning: Function parameter or member 'size' not described in 'i915_refct_sgt_init'
--- drivers/gpu/drm/i915/i915_scatterlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_scatterlist.c +1 -1
@@ -56,7 +56,7 @@ static const struct i915_refct_sgt_ops rsgt_ops = {/** * i915_refct_sgt_init - Initialize a struct i915_refct_sgt with default ops * @rsgt: The struct i915_refct_sgt to initialize. -* size: The size of the underlying memory buffer. +* @size: The size of the underlying memory buffer. */ void i915_refct_sgt_init (struct i915_refct_sgt *rsgt,size_t size) {
Signature · 1 line
2.40.0.348.gf938b09366-goog
Jani Nikula
maintainerRe: [PATCH 01/19] drm/i915/i915_scatterlist: Fix kerneldoc formatting issue - missing '@'
Quoted 4 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/i915_scatterlist.c:62: warning: Function parameter or member 'size' not described in 'i915_refct_sgt_init'
Quoted 9 lines
Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Thanks for the patches!
Applied all but one of the drm/i915 patches to drm-intel-next or drm-intel-gt-next depending on the area. There were a couple of issues that I fixed while applying. There was a conflict with patch 5/19 against drm-intel-gt-next so I left that one out.
BR,
Jani.
Quoted 17 lines
--- drivers/gpu/drm/i915/i915_scatterlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/i915_scatterlist.c +1
-1@@ -56,7 +56,7 @@ static const struct i915_refct_sgt_ops rsgt_ops = {/** * i915_refct_sgt_init - Initialize a struct i915_refct_sgt with default ops * @rsgt: The struct i915_refct_sgt to initialize. -* size: The size of the underlying memory buffer. +* @size: The size of the underlying memory buffer. */ void i915_refct_sgt_init (struct i915_refct_sgt *rsgt,size_t size) {
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [PATCH 01/19] drm/i915/i915_scatterlist: Fix kerneldoc formatting issue - missing '@'
Quoted 15 lines · Jani Nikula
Quoted 4 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/i915_scatterlist.c:62: warning: Function parameter or member 'size' not described in 'i915_refct_sgt_init'Quoted 9 lines
Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Quoted 6 lines
Thanks for the patches!
Applied all but one of the drm/i915 patches to drm-intel-next or drm-intel-gt-next depending on the area. There were a couple of issues that I fixed while applying. There was a conflict with patch 5/19 against drm-intel-gt-next so I left that one out.
Thanks Jani. I'll rebase and see what's left.
--
Lee Jones [李琼斯]
Jani Nikula
maintainerRe: [PATCH 01/19] drm/i915/i915_scatterlist: Fix kerneldoc formatting issue - missing '@'
Quoted 17 lines · Lee Jones
Quoted 15 lines · Jani Nikula
Quoted 13 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/i915_scatterlist.c:62: warning: Function parameter or member 'size' not described in 'i915_refct_sgt_init'Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Quoted 8 lines
Quoted 6 lines
Thanks for the patches!
Applied all but one of the drm/i915 patches to drm-intel-next or drm-intel-gt-next depending on the area. There were a couple of issues that I fixed while applying. There was a conflict with patch 5/19 against drm-intel-gt-next so I left that one out.
Thanks Jani. I'll rebase and see what's left.
We also took notice and aim to track this more aggressively [1].
BR,
Jani.
[1] https://gitlab.freedesktop.org/drm/intel/-/issues/8335
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [PATCH 01/19] drm/i915/i915_scatterlist: Fix kerneldoc formatting issue - missing '@'
Quoted 20 lines · Jani Nikula
Quoted 19 lines · Lee Jones
Quoted 17 lines · Jani Nikula
Quoted 4 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/i915_scatterlist.c:62: warning: Function parameter or member 'size' not described in 'i915_refct_sgt_init'Quoted 9 lines
Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>Thanks for the patches!
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Applied all but one of the drm/i915 patches to drm-intel-next or drm-intel-gt-next depending on the area. There were a couple of issues that I fixed while applying. There was a conflict with patch 5/19 against drm-intel-gt-next so I left that one out.
Thanks Jani. I'll rebase and see what's left.
We also took notice and aim to track this more aggressively [1].
Thanks.
I did clean-up all of the GPU warnings already a couple of years ago, but they seem to have crept back over time. It would be great if we could put some extra checks in place to prevent them in the future.
My aim, albeit ambitious, is to clean-up all of the W=1 warnings in the kernel, then have them promoted to W=0, so they warn more loudly during development, thus keeping them from reappearing.
--
Lee Jones [李琼斯]
Jani Nikula
maintainerRe: [PATCH 01/19] drm/i915/i915_scatterlist: Fix kerneldoc formatting issue - missing '@'
Quoted 29 lines · Lee Jones
Quoted 27 lines · Jani Nikula
Quoted 25 lines · Lee Jones
Quoted 15 lines · Jani Nikula
Quoted 4 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/i915_scatterlist.c:62: warning: Function parameter or member 'size' not described in 'i915_refct_sgt_init'Quoted 9 lines
Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>Quoted 6 lines
Thanks for the patches!
Applied all but one of the drm/i915 patches to drm-intel-next or drm-intel-gt-next depending on the area. There were a couple of issues that I fixed while applying. There was a conflict with patch 5/19 against drm-intel-gt-next so I left that one out.
Thanks Jani. I'll rebase and see what's left.
Quoted 7 lines
Quoted 1 line
We also took notice and aim to track this more aggressively [1].
Thanks.
I did clean-up all of the GPU warnings already a couple of years ago, but they seem to have crept back over time. It would be great if we could put some extra checks in place to prevent them in the future.
We are pretty zealous about warnings in general in i915. We have a bunch of extra warnings in our local Makefile and use -Werror in development. Inspired by this series, we added kernel-doc check to the build, and hope to add kernel-doc -Werror too once we're done.
Quoted 3 lines
My aim, albeit ambitious, is to clean-up all of the W=1 warnings in the kernel, then have them promoted to W=0, so they warn more loudly during development, thus keeping them from reappearing.
I wish it was easier to do the equivalent of W=1 on a driver or Makefile basis. I like to keep i915 clean, but I don't like to use W=1 because there are just so many warnings currently.
The other alternative is fixing and moving extra warnings from W=1 to W=0 one by one.
BR,
Jani.
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Re: [PATCH 01/19] drm/i915/i915_scatterlist: Fix kerneldoc formatting issue - missing '@'
Quoted 34 lines · Jani Nikula
Quoted 33 lines · Lee Jones
Quoted 20 lines · Jani Nikula
Quoted 19 lines · Lee Jones
Quoted 17 lines · Jani Nikula
Quoted 4 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/i915_scatterlist.c:62: warning: Function parameter or member 'size' not described in 'i915_refct_sgt_init'Quoted 9 lines
Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Rodrigo Vivi <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>Thanks for the patches!
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Applied all but one of the drm/i915 patches to drm-intel-next or drm-intel-gt-next depending on the area. There were a couple of issues that I fixed while applying. There was a conflict with patch 5/19 against drm-intel-gt-next so I left that one out.
Thanks Jani. I'll rebase and see what's left.
We also took notice and aim to track this more aggressively [1].
Thanks.
Quoted 8 lines
Quoted 3 lines
I did clean-up all of the GPU warnings already a couple of years ago, but they seem to have crept back over time. It would be great if we could put some extra checks in place to prevent them in the future.
We are pretty zealous about warnings in general in i915. We have a bunch of extra warnings in our local
Makefileand use -Werror in development. Inspired by this series, we added kernel-doc check to the build, and hope to add kernel-doc -Werror too once we're done.
Sounds good that you're on it. At least in your part of GPU.
kernel-doc warnings are surfaced by enabling W=1.
Quoted 7 lines
Quoted 3 lines
My aim, albeit ambitious, is to clean-up all of the W=1 warnings in the kernel, then have them promoted to W=0, so they warn more loudly during development, thus keeping them from reappearing.
I wish it was easier to do the equivalent of W=1 on a driver or
Makefilebasis. I like to keep i915 clean, but I don't like to use W=1 because there are just so many warnings currently.
Well that's what I hope to improve (again). :)
Quoted 2 lines
The other alternative is fixing and moving extra warnings from W=1 to W=0 one by one.
Right, that's where I'd like to end up eventually.
--
Lee Jones [李琼斯]
PATCH 2/19 drm/i915/intel_region_ttm: Provide missing description for 'offset' param
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/intel_region_ttm.c:201: warning: Function parameter or member 'offset' not described in 'intel_region_ttm_resource_alloc'
--- drivers/gpu/drm/i915/intel_region_ttm.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/intel_region_ttm.c +1 -0
@@ -181,6 +181,7 @@ intel_region_ttm_resource_to_rsgt(struct intel_memory_region *mem,/** * intel_region_ttm_resource_alloc - Allocate memory resources from a region * @mem: The memory region, +* @offset: BO offset * @size: The requested size in bytes * @flags: Allocation flags *
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 3/19 drm/radeon/radeon_ttm: Remove unused variable 'rbo' from radeon_bo_move()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/radeon/radeon_ttm.c: In function ‘radeon_bo_move’:
drivers/gpu/drm/radeon/radeon_ttm.c:201:27: warning: variable ‘rbo’ set but not used [-Wunused-but-set-variable]
--- drivers/gpu/drm/radeon/radeon_ttm.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -2
@@ -198,7 +198,6 @@ static int radeon_bo_move(struct ttm_buffer_object *bo, bool evict, {struct ttm_resource *old_mem = bo->resource;struct radeon_device *rdev; -struct radeon_bo *rbo;int r;if (new_mem->mem_type ==TTM_PL_TT ) {
@@ -211,7 +210,6 @@ static int radeon_bo_move(struct ttm_buffer_object *bo, bool evict,if (r)return r; - rbo = container_of(bo, struct radeon_bo, tbo); rdev =radeon_get_rdev (bo->bdev);if (!old_mem || (old_mem->mem_type ==TTM_PL_SYSTEM && bo->ttm ==NULL )) {
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 4/19 drm/i915/display/intel_display_debugfs: Fix incorrect param naming for 'intel_connector'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/display/intel_display_debugfs.c:1668: warning: Function parameter or member 'intel_connector' not described in 'intel_connector_debugfs_add' drivers/gpu/drm/i915/display/intel_display_debugfs.c:1668: warning: Excess function parameter 'connector' description in 'intel_connector_debugfs_add'
--- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +1 -1
@@ -1395,7 +1395,7 @@ DEFINE_SHOW_ATTRIBUTE(intel_crtc_pipe);/** * intel_connector_debugfs_add - add i915 specific connector debugfs files -* @connector: pointer to a registered drm_connector +* @intel_connector: pointer to a registered drm_connector * * Cleanup will be done by drm_connector_unregister() through a call to * drm_debugfs_connector_remove().
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 5/19 drm/i915/gt/intel_engine_cs: Fix a couple of incorrectly named functions
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gt/intel_engine_cs.c:1324: warning: expecting prototype for intel_engines_init_common(). Prototype was for engine_init_common() instead drivers/gpu/drm/i915/gt/intel_engine_cs.c:1406: warning: expecting prototype for intel_engines_cleanup_common(). Prototype was for intel_engine_cleanup_common() instead
--- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/intel_engine_cs.c +3 -3
@@ -1429,7 +1429,7 @@ create_kernel_context(struct intel_engine_cs *engine) }/** -* intel_engines_init_common - initialize cengine state which might require hw access +* engine_init_common - initialize cengine state which might require hw access * @engine: Engine to initialize. * * Initializes @engine@ structure members shared between legacy and execlists
@@ -1515,8 +1515,8 @@ int intel_engines_init(struct intel_gt *gt) }/** -* intel_engines_cleanup_common - cleans up the engine state created by -* the common initiailizers. +* intel_engine_cleanup_common - cleans up the engine state created by +* the common initiailizers. * @engine: Engine to cleanup. * * This cleans up everything created by the common helpers.
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 6/19 drm/i915/gt/intel_rps: Demote a kerneldoc abuse for ips_ping_for_i915_load()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gt/intel_rps.c:2646: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
--- drivers/gpu/drm/i915/gt/intel_rps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/intel_rps.c +1 -1
@@ -2646,7 +2646,7 @@ bool rps_read_mask_mmio(struct intel_rps *rps,static struct drm_i915_private __rcu *ips_mchdev; -/** +/* * Tells the intel_ips driver that the i915 driver is now loaded, if * IPS got loaded first. *
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 7/19 drm/i915/gem/i915_gem_create: Provide the function names for proper kerneldoc headers
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gem/i915_gem_create.c:147: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/gpu/drm/i915/gem/i915_gem_create.c:218: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/gpu/drm/i915/gem/i915_gem_create.c:402: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
--- drivers/gpu/drm/i915/gem/i915_gem_create.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_create.c +4 -3
@@ -144,7 +144,8 @@ __i915_gem_object_create_user_ext(struct drm_i915_private *i915, u64 size, }/** -* Creates a new object using the same path as DRM_I915_GEM_CREATE_EXT +* __i915_gem_object_create_user - Creates a new object using the same path as +* DRM_I915_GEM_CREATE_EXT * @i915: i915 private * @size: size of the buffer, in bytes * @placements: possible placement regions, in priority order
@@ -215,7 +216,7 @@ i915_gem_dumb_create(struct drm_file *file, }/** -* Creates a new mm object and returns a handle to it. +* i915_gem_create_ioctl - Creates a new mm object and returns a handle to it. * @dev: drm device pointer * @data: ioctl data blob * @file: drm file pointer
@@ -399,7 +400,7 @@ static const i915_user_extension_fn create_extensions[] = { };/** -* Creates a new mm object and returns a handle to it. +* i915_gem_create_ext_ioct - Creates a new mm object and returns a handle to it. * @dev: drm device pointer * @data: ioctl data blob * @file: drm file pointer
Signature · 1 line
2.40.0.348.gf938b09366-goog
kernel test robot
build botRe: [PATCH 07/19] drm/i915/gem/i915_gem_create: Provide the function names for proper kerneldoc headers
I love your patch! Perhaps something to improve:
Hi Lee,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-misc/drm-misc-next next-20230331]
[cannot apply to drm-intel/for-linux-next-fixes lee-leds/for-leds-next linus/master v6.3-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Lee-Jones/drm-i915-i915_scatterlist-Fix-kerneldoc-formatting-issue-missing/20230331-173046 base: git://anongit.freedesktop.org/drm-intel for-linux-next patch link: https://lore.kernel.org/r/20230331092607.700644-8-lee%40kernel.org patch subject: [PATCH 07/19] drm/i915/gem/i915_gem_create: Provide the function names for proper kerneldoc headers config: i386-defconfig (https://download.01.org/0day-ci/archive/20230331/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/7c87f97c7f11c1a2b3931d46ae1382c5ee0c14f7
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Lee-Jones/drm-i915-i915_scatterlist-Fix-kerneldoc-formatting-issue-missing/20230331-173046 git checkout 7c87f97c7f11c1a2b3931d46ae1382c5ee0c14f7
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gem/i915_gem_create.c:411: warning: expecting prototype for i915_gem_create_ext_ioct(). Prototype was for i915_gem_create_ext_ioctl() instead
vim +411 drivers/gpu/drm/i915/gem/i915_gem_create.c
ebcb40298947bdb Matthew Auld 2021-04-29 401 ebcb40298947bdb Matthew Auld 2021-04-29 402 /** 7c87f97c7f11c1a Lee Jones 2023-03-31 403 * i915_gem_create_ext_ioct - Creates a new mm object and returns a handle to it. ebcb40298947bdb Matthew Auld 2021-04-29 404 * @dev: drm device pointer ebcb40298947bdb Matthew Auld 2021-04-29 405 * @data: ioctl data blob ebcb40298947bdb Matthew Auld 2021-04-29 406 * @file: drm file pointer ebcb40298947bdb Matthew Auld 2021-04-29 407 */ ebcb40298947bdb Matthew Auld 2021-04-29 408 int ebcb40298947bdb Matthew Auld 2021-04-29 409 i915_gem_create_ext_ioctl(struct drm_device *dev, void *data, ebcb40298947bdb Matthew Auld 2021-04-29 410 struct drm_file *file)
ebcb40298947bdb Matthew Auld 2021-04-29 @411 {
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
PATCH 8/19 drm/i915/gem/i915_gem_domain: Provide function names to complete proper kerneldoc
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gem/i915_gem_domain.c:119: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/gpu/drm/i915/gem/i915_gem_domain.c:180: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/gpu/drm/i915/gem/i915_gem_domain.c:265: warning: expecting prototype for Changes the cache(). Prototype was for i915_gem_object_set_cache_level() instead drivers/gpu/drm/i915/gem/i915_gem_domain.c:470: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/gpu/drm/i915/gem/i915_gem_domain.c:514: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
--- drivers/gpu/drm/i915/gem/i915_gem_domain.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_domain.c +9 -5
@@ -116,7 +116,8 @@ void i915_gem_object_flush_if_display_locked(struct drm_i915_gem_object *obj) }/** -* Moves a single object to the WC read, and possibly write domain. +* i915_gem_object_set_to_wc_domain - Moves a single object to the WC read, and +* possibly write domain. * @obj: object to act on * @write: ask for write access or read only *
@@ -177,7 +178,8 @@ i915_gem_object_set_to_wc_domain(struct drm_i915_gem_object *obj, bool write) }/** -* Moves a single object to the GTT read, and possibly write domain. +* i915_gem_object_set_to_gtt_domain - Moves a single object to the GTT read, +* and possibly write domain. * @obj: object to act on * @write: ask for write access or read only *
@@ -246,7 +248,7 @@ i915_gem_object_set_to_gtt_domain(struct drm_i915_gem_object *obj, bool write) }/** -* Changes the cache-level of an object across all VMA. +* i915_gem_object_set_cache_level - Changes the cache-level of an object across all VMA. * @obj: object to act on * @cache_level: new cache level to set for the object *
@@ -467,7 +469,8 @@ i915_gem_object_pin_to_display_plane(struct drm_i915_gem_object *obj, }/** -* Moves a single object to the CPU read, and possibly write domain. +* i915_gem_object_set_to_cpu_domain - Moves a single object to the CPU read, +* and possibly write domain. * @obj: object to act on * @write: requesting write or read-only access *
@@ -511,7 +514,8 @@ i915_gem_object_set_to_cpu_domain(struct drm_i915_gem_object *obj, bool write) }/** -* Called when user space prepares to use an object with the CPU, either +* i915_gem_set_domain_ioctl - Called when user space prepares to use an +* object with the CPU, either * through the mmap ioctl's mapping or a GTT mapping. * @dev: drm device * @data: ioctl data blob
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 9/19 drm/i915/gem/i915_gem_ttm_pm: Provide a couple of missing descriptions for 'flags' and remove some superfluous ones
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c:156: warning: Function parameter or member 'flags' not described in 'i915_ttm_backup_region' drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c:156: warning: Excess function parameter 'allow_gpu' description in 'i915_ttm_backup_region' drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c:156: warning: Excess function parameter 'backup_pinned' description in 'i915_ttm_backup_region' drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c:223: warning: Function parameter or member 'flags' not described in 'i915_ttm_restore_region' drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c:223: warning: Excess function parameter 'allow_gpu' description in 'i915_ttm_restore_region'
--- drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_ttm_pm.c +2 -3
@@ -144,8 +144,7 @@ void i915_ttm_recover_region(struct intel_memory_region *mr)/** * i915_ttm_backup_region - Back up all objects of a region to smem. * @mr: The memory region -* @allow_gpu: Whether to allow the gpu blitter for this backup. -* @backup_pinned: Backup also pinned objects. +* @flags: TTM backup flags * * Loops over all objects of a region and either evicts them if they are * evictable or backs them up using a backup object if they are pinned.
@@ -212,7 +211,7 @@ static int i915_ttm_restore(struct i915_gem_apply_to_region *apply,/** * i915_ttm_restore_region - Restore backed-up objects of a region from smem. * @mr: The memory region -* @allow_gpu: Whether to allow the gpu blitter to recover. +* @flags: TTM backup flags * * Loops over all objects of a region and if they are backed-up, restores * them from smem.
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 10/19 drm/i915/gem/i915_gem_ttm: Demote half-filled kerneldoc
In reply to Lee JonesHopefully someone knowledgable will follow-up to complete it.
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gem/i915_gem_ttm.c:1292: warning: Function parameter or member 'offset' not described in '__i915_gem_ttm_object_init' drivers/gpu/drm/i915/gem/i915_gem_ttm.c:1292: warning: Function parameter or member 'page_size' not described in '__i915_gem_ttm_object_init'
--- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gem/i915_gem_ttm.c +1 -1
@@ -1274,7 +1274,7 @@ void i915_ttm_bo_destroy(struct ttm_buffer_object *bo) } } -/** +/* * __i915_gem_ttm_object_init - Initialize a ttm-backed i915 gem object * @mem: The initial memory region for the object. * @obj: The gem object.
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 11/19 drm/i915/gem/i915_gem_ttm_move: Provide a couple of missing descriptions for 'num_pages' and 'ctx'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c:272: warning: Function parameter or member 'num_pages' not described in 'i915_ttm_memcpy_arg' drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c:569: warning: Function parameter or member 'ctx' not described in 'i915_ttm_move'
--- drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c +3 -0
@@ -253,6 +253,7 @@ static struct dma_fence *i915_ttm_accel_move(struct ttm_buffer_object *bo,* @_src_iter: Storage space for the source kmap iterator. * @dst_iter: Pointer to the destination kmap iterator. * @src_iter: Pointer to the source kmap iterator. +* @num_pages: Number of pages * @clear: Whether to clear instead of copy. * @src_rsgt: Refcounted scatter-gather list of source memory. * @dst_rsgt: Refcounted scatter-gather list of destination memory.
@@ -557,6 +558,8 @@ __i915_ttm_move(struct ttm_buffer_object *bo,* i915_ttm_move - The TTM move callback used by i915. * @bo: The buffer object. * @evict: Whether this is an eviction. +* @ctx: Pointer to a struct ttm_operation_ctx indicating how the waits should be +* performed if waiting * @dst_mem: The destination ttm resource. * @hop: If we need multihop, what temporary memory type to move to. *
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 12/19 drm/i915/gem/i915_gem_wait: Provide function name to validate the kerneldoc header
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gem/i915_gem_wait.c:164: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
--- drivers/gpu/drm/i915/gem/i915_gem_wait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gem/i915_gem_wait.c +1 -1
@@ -161,7 +161,7 @@ i915_gem_object_wait_priority(struct drm_i915_gem_object *obj, }/** -* Waits for rendering to the object to be completed +* i915_gem_object_wait - Waits for rendering to the object to be completed * @obj: i915 gem object * @flags: how to wait (under a lock, for all rendering or just for writes etc) * @timeout: how long to wait
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 13/19 drm/i915/gem/i915_gem_object: Demote non-kerneldoc header with no param descriptions
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gem/i915_gem_object.c:887: warning: Function parameter or member 'obj' not described in 'i915_gem_object_has_unknown_state'
--- drivers/gpu/drm/i915/gem/i915_gem_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gem/i915_gem_object.c +1 -1
@@ -875,7 +875,7 @@ int i915_gem_object_wait_moving_fence(struct drm_i915_gem_object *obj,return ret <0 ? ret :0 ; } -/** +/* * i915_gem_object_has_unknown_state - Return true if the object backing pages are * in an unknown_state. This means that userspace must NEVER be allowed to touch * the pages, with either the GPU or CPU.
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 14/19 drm/i915/i915_gem: Provide function names to complete the expected kerneldoc format
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/i915_gem.c:447: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/gpu/drm/i915/i915_gem.c:536: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/gpu/drm/i915/i915_gem.c:726: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst drivers/gpu/drm/i915/i915_gem.c:811: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
--- drivers/gpu/drm/i915/i915_gem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_gem.c +4 -4
@@ -444,7 +444,7 @@ i915_gem_gtt_pread(struct drm_i915_gem_object *obj, }/** -* Reads data from the object referenced by handle. +* i915_gem_pread_ioctl - Reads data from the object referenced by handle. * @dev: drm device pointer * @data: ioctl data blob * @file: drm file pointer
@@ -533,7 +533,7 @@ ggtt_write(struct io_mapping *mapping, }/** -* This is the fast pwrite path, where we copy the data directly from the +* i915_gem_gtt_pwrite_fast - This is the fast pwrite path, where we copy the data directly from the * user into the GTT, uncached. * @obj: i915 GEM object * @args: pwrite arguments structure
@@ -723,7 +723,7 @@ i915_gem_shmem_pwrite(struct drm_i915_gem_object *obj, }/** -* Writes data to the object referenced by handle. +* i915_gem_pwrite_ioctl - Writes data to the object referenced by handle. * @dev: drm device * @data: ioctl data blob * @file: drm file
@@ -808,7 +808,7 @@ i915_gem_pwrite_ioctl(struct drm_device *dev, void *data, }/** -* Called when user space has done writes to this buffer +* i915_gem_sw_finish_ioct - Called when user space has done writes to this buffer * @dev: drm device * @data: ioctl data blob * @file: drm file
Signature · 1 line
2.40.0.348.gf938b09366-goog
kernel test robot
build botRe: [PATCH 14/19] drm/i915/i915_gem: Provide function names to complete the expected kerneldoc format
I love your patch! Perhaps something to improve:
Hi Lee,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-misc/drm-misc-next next-20230331]
[cannot apply to drm-intel/for-linux-next-fixes lee-leds/for-leds-next linus/master v6.3-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Lee-Jones/drm-i915-i915_scatterlist-Fix-kerneldoc-formatting-issue-missing/20230331-173046 base: git://anongit.freedesktop.org/drm-intel for-linux-next patch link: https://lore.kernel.org/r/20230331092607.700644-15-lee%40kernel.org patch subject: [PATCH 14/19] drm/i915/i915_gem: Provide function names to complete the expected kerneldoc format config: i386-defconfig (https://download.01.org/0day-ci/archive/20230401/[email protected]/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/6fa884d5ec2846c7d9b54c4895c7114b363c4389
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Lee-Jones/drm-i915-i915_scatterlist-Fix-kerneldoc-formatting-issue-missing/20230331-173046 git checkout 6fa884d5ec2846c7d9b54c4895c7114b363c4389
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_gem.c:819: warning: expecting prototype for i915_gem_sw_finish_ioct(). Prototype was for i915_gem_sw_finish_ioctl() instead
vim +819 drivers/gpu/drm/i915/i915_gem.c
673a394b1e3b69 Eric Anholt 2008-07-30 809
673a394b1e3b69 Eric Anholt 2008-07-30 810 /**
6fa884d5ec2846 Lee Jones 2023-03-31 811 * i915_gem_sw_finish_ioct - Called when user space has done writes to this buffer
14bb2c11796d70 Tvrtko Ursulin 2016-06-03 812 * @dev: drm device
14bb2c11796d70 Tvrtko Ursulin 2016-06-03 813 * @data: ioctl data blob
14bb2c11796d70 Tvrtko Ursulin 2016-06-03 814 * @file: drm file
673a394b1e3b69 Eric Anholt 2008-07-30 815 */
673a394b1e3b69 Eric Anholt 2008-07-30 816 int
673a394b1e3b69 Eric Anholt 2008-07-30 817 i915_gem_sw_finish_ioctl(struct drm_device *dev, void *data,
05394f3975dceb Chris Wilson 2010-11-08 818 struct drm_file *file)
673a394b1e3b69 Eric Anholt 2008-07-30 @819 {
673a394b1e3b69 Eric Anholt 2008-07-30 820 struct drm_i915_gem_sw_finish *args = data;
05394f3975dceb Chris Wilson 2010-11-08 821 struct drm_i915_gem_object *obj;
1d7cfea152cae6 Chris Wilson 2010-10-17 822
03ac0642f67a3a Chris Wilson 2016-07-20 823 obj = i915_gem_object_lookup(file, args->handle);
c21724cc4d3d5c Chris Wilson 2016-08-05 824 if (!obj)
c21724cc4d3d5c Chris Wilson 2016-08-05 825 return -ENOENT;
673a394b1e3b69 Eric Anholt 2008-07-30 826
a03f395ad78f88 Tina Zhang 2017-11-14 827 /*
a03f395ad78f88 Tina Zhang 2017-11-14 828 * Proxy objects are barred from CPU access, so there is no
a03f395ad78f88 Tina Zhang 2017-11-14 829 * need to ban sw_finish as it is a nop.
a03f395ad78f88 Tina Zhang 2017-11-14 830 */
a03f395ad78f88 Tina Zhang 2017-11-14 831
673a394b1e3b69 Eric Anholt 2008-07-30 832 /* Pinned buffers may be scanout, so flush the cache */
5a97bcc69cc02d Chris Wilson 2017-02-22 833 i915_gem_object_flush_if_display(obj);
f0cd518206e1a4 Chris Wilson 2016-10-28 834 i915_gem_object_put(obj);
5a97bcc69cc02d Chris Wilson 2017-02-22 835
5a97bcc69cc02d Chris Wilson 2017-02-22 836 return 0;
673a394b1e3b69 Eric Anholt 2008-07-30 837 }
673a394b1e3b69 Eric Anholt 2008-07-30 838 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests
PATCH 15/19 drm/i915/gt/uc/intel_guc_hwconfig: Demote a few non-conforming kerneldoc headers
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c:112: warning: Function parameter or member 'gt' not described in 'guc_hwconfig_init' drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c:112: warning: expecting prototype for intel_guc_hwconfig_init(). Prototype was for guc_hwconfig_init() instead drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c:145: warning: Function parameter or member 'gt' not described in 'intel_gt_init_hwconfig' drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c:158: warning: Function parameter or member 'gt' not described in 'intel_gt_fini_hwconfig'
--- drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_hwconfig.c +3 -3
@@ -102,7 +102,7 @@ static bool has_table(struct drm_i915_private *i915)return false; } -/** +/* * intel_guc_hwconfig_init - Initialize the HWConfig * * Retrieve the HWConfig table from the GuC and save it locally.
@@ -136,7 +136,7 @@ static int guc_hwconfig_init(struct intel_gt *gt)return 0 ; } -/** +/* * intel_gt_init_hwconfig - Initialize the HWConfig if available * * Retrieve the HWConfig table if available on the current platform.
@@ -149,7 +149,7 @@ int intel_gt_init_hwconfig(struct intel_gt *gt)return guc_hwconfig_init (gt); } -/** +/* * intel_gt_fini_hwconfig - Finalize the HWConfig * * Free up the memory allocation holding the table.
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 16/19 drm/i915/i915_vma: Provide one missing param and demote another non-kerneldoc header
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/i915_vma.c:756: warning: Function parameter or member 'ww' not described in 'i915_vma_insert' drivers/gpu/drm/i915/i915_vma.c:1744: warning: Function parameter or member 'vma' not described in 'i915_vma_destroy_locked'
--- drivers/gpu/drm/i915/i915_vma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_vma.c +2 -1
@@ -739,6 +739,7 @@ bool i915_gem_valid_gtt_space(struct i915_vma *vma, unsigned long color)/** * i915_vma_insert - finds a slot for the vma in its address space * @vma: the vma +* @ww: An optional struct i915_gem_ww_ctx * @size: requested size in bytes (can be larger than the VMA) * @alignment: required alignment * @flags: mask of PIN_* flags to use
@@ -1714,7 +1715,7 @@ static void release_references(struct i915_vma *vma, struct intel_gt *gt,i915_vma_free (vma); } -/** +/* * i915_vma_destroy_locked - Remove all weak reference to the vma and put * the initial reference. *
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 17/19 drm/i915/display/intel_display_power: Fix incorrectly documented function __intel_display_power_put_async()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/display/intel_display_power.c:712: warning: expecting prototype for intel_display_power_put_async(). Prototype was for __intel_display_power_put_async() instead
--- drivers/gpu/drm/i915/display/intel_display_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_display_power.c +1 -1
@@ -697,7 +697,7 @@ intel_display_power_put_async_work(struct work_struct *work) }/** -* intel_display_power_put_async - release a power domain reference asynchronously +* __intel_display_power_put_async - release a power domain reference asynchronously * @i915: i915 device instance * @domain: power domain to reference * @wakeref: wakeref acquired for the reference that is being released
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 18/19 drm/amd/amdgpu/sdma_v6_0: Demote a bunch of half-completed function headers
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c:248: warning: Function parameter or member 'job' not described in 'sdma_v6_0_ring_emit_ib' drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c:248: warning: Function parameter or member 'flags' not described in 'sdma_v6_0_ring_emit_ib' drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c:945: warning: Function parameter or member 'timeout' not described in 'sdma_v6_0_ring_test_ib' drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c:1124: warning: Function parameter or member 'ring' not described in 'sdma_v6_0_ring_pad_ib' drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c:1175: warning: Function parameter or member 'vmid' not described in 'sdma_v6_0_ring_emit_vm_flush' drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c:1175: warning: Function parameter or member 'pd_addr' not described in 'sdma_v6_0_ring_emit_vm_flush'
--- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c +4 -4
@@ -233,7 +233,7 @@ static void sdma_v6_0_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count)amdgpu_ring_write (ring, ring->funcs->nop); } -/** +/* * sdma_v6_0_ring_emit_ib - Schedule an IB on the DMA engine * * @ring: amdgpu ring pointer
@@ -933,7 +933,7 @@ static int sdma_v6_0_ring_test_ring(struct amdgpu_ring *ring)return r; } -/** +/* * sdma_v6_0_ring_test_ib - test an IB on the DMA engine * * @ring: amdgpu_ring structure holding ring information
@@ -1114,7 +1114,7 @@ static void sdma_v6_0_vm_set_pte_pde(struct amdgpu_ib *ib, ib->ptr[ib->length_dw++] = count -1 ;/* number of entries */ } -/** +/* * sdma_v6_0_ring_pad_ib - pad the IB * @ib: indirect buffer to fill with padding *
@@ -1162,7 +1162,7 @@ static void sdma_v6_0_ring_emit_pipeline_sync(struct amdgpu_ring *ring) SDMA_PKT_POLL_REGMEM_DW5_INTERVAL(4)); /* retry count, poll interval */ } -/** +/* * sdma_v6_0_ring_emit_vm_flush - vm flush using sDMA * * @ring: amdgpu_ring pointer
Signature · 1 line
2.40.0.348.gf938b09366-goog
PATCH 19/19 drm/i915/display/intel_wm: Fix a little doc-rot in intel_update_watermarks()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/i915/display/intel_wm.c:46: warning: Function parameter or member 'i915' not described in 'intel_update_watermarks' drivers/gpu/drm/i915/display/intel_wm.c:46: warning: Excess function parameter 'dev_priv' description in 'intel_update_watermarks'
--- drivers/gpu/drm/i915/display/intel_wm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_wm.c +1 -1
@@ -11,7 +11,7 @@/** * intel_update_watermarks - update FIFO watermark values based on current modes -* @dev_priv: i915 device +* @i915: i915 device * * Calculate watermark values for the various WM regs based on current mode * and plane configuration.
Signature · 1 line
2.40.0.348.gf938b09366-goog