Add Return sections for amdgpu_dm_irq_init() and amdgpu_dm_irq_handler() to address two kernel-doc warnings.
The initializer returns -ENOMEM if either workqueue allocation fails and 0 on success. The handler returns 0 both after dispatching a valid interrupt and after logging and ignoring an invalid source. Signed-off-by: Baran Tuna <[email protected]> --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c index 5b4ff079cd55..067632ba5f70 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c @@ -387,6 +387,8 @@ EXPORT_IF_KUNIT(amdgpu_dm_irq_unregister_interrupt); * * The low context table requires special steps to initialize, since handlers * will be deferred to a workqueue. See &struct irq_list_head. + * + * Return: 0 on success or -ENOMEM if workqueue allocation fails. */ int amdgpu_dm_irq_init(struct amdgpu_device *adev) { @@ -719,6 +721,8 @@ EXPORT_IF_KUNIT(amdgpu_dm_irq_ack); * * Calls all registered high irq work immediately, and schedules work for low * irq. The DM IRQ table is used to find the corresponding handlers. + * + * Return: 0 after processing a valid interrupt or ignoring an invalid IRQ source. */ STATIC_IFN_KUNIT int amdgpu_dm_irq_handler(struct amdgpu_device *adev, struct amdgpu_irq_src *source, base-commit: 19cc08c1a6a650f8e54c0461ff198be6448f425d -- 2.53.0
