Skip to content

Commit

Permalink
drm: use ATOMIC64_INIT() for atomic64_t
Browse files Browse the repository at this point in the history
use ATOMIC64_INIT() not ATOMIC_INIT() for atomic64_t

Fixes: 3f09a0c ("drm: Add common fdinfo helper")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240111023045.50013-1-jsg@jsg.id.au
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
  • Loading branch information
Jonathan Gray authored and Jani Nikula committed Nov 5, 2024
1 parent 946f2b6 commit 9877bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ bool drm_dev_needs_global_mutex(struct drm_device *dev)
*/
struct drm_file *drm_file_alloc(struct drm_minor *minor)
{
static atomic64_t ident = ATOMIC_INIT(0);
static atomic64_t ident = ATOMIC64_INIT(0);
struct drm_device *dev = minor->dev;
struct drm_file *file;
int ret;
Expand Down

0 comments on commit 9877bb2

Please sign in to comment.