Skip to content

Commit 9877bb2

Browse files
jonathangrayjnikula
authored andcommitted
drm: use ATOMIC64_INIT() for atomic64_t
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>
1 parent 946f2b6 commit 9877bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ bool drm_dev_needs_global_mutex(struct drm_device *dev)
129129
*/
130130
struct drm_file *drm_file_alloc(struct drm_minor *minor)
131131
{
132-
static atomic64_t ident = ATOMIC_INIT(0);
132+
static atomic64_t ident = ATOMIC64_INIT(0);
133133
struct drm_device *dev = minor->dev;
134134
struct drm_file *file;
135135
int ret;

0 commit comments

Comments
 (0)