Skip to content

Commit bd50d4a

Browse files
drm: lock: Clean up documentation
Fix kernel doc comments to avoid warnings when compiling with W=1. Signed-off-by: Benjamin Gaignard <[email protected]> Acked-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent abee549 commit bd50d4a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drivers/gpu/drm/drm_lock.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context);
4848

49-
/**
49+
/*
5050
* Take the heavyweight lock.
5151
*
5252
* \param lock lock pointer.
@@ -93,7 +93,7 @@ int drm_lock_take(struct drm_lock_data *lock_data,
9393
return 0;
9494
}
9595

96-
/**
96+
/*
9797
* This takes a lock forcibly and hands it to context. Should ONLY be used
9898
* inside *_unlock to give lock to kernel before calling *_dma_schedule.
9999
*
@@ -150,7 +150,7 @@ static int drm_legacy_lock_free(struct drm_lock_data *lock_data,
150150
return 0;
151151
}
152152

153-
/**
153+
/*
154154
* Lock ioctl.
155155
*
156156
* \param inode device inode.
@@ -243,7 +243,7 @@ int drm_legacy_lock(struct drm_device *dev, void *data,
243243
return 0;
244244
}
245245

246-
/**
246+
/*
247247
* Unlock ioctl.
248248
*
249249
* \param inode device inode.
@@ -275,7 +275,7 @@ int drm_legacy_unlock(struct drm_device *dev, void *data, struct drm_file *file_
275275
return 0;
276276
}
277277

278-
/**
278+
/*
279279
* This function returns immediately and takes the hw lock
280280
* with the kernel context if it is free, otherwise it gets the highest priority when and if
281281
* it is eventually released.
@@ -287,7 +287,6 @@ int drm_legacy_unlock(struct drm_device *dev, void *data, struct drm_file *file_
287287
* This should be sufficient to wait for GPU idle without
288288
* having to worry about starvation.
289289
*/
290-
291290
void drm_legacy_idlelock_take(struct drm_lock_data *lock_data)
292291
{
293292
int ret;

0 commit comments

Comments
 (0)