]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm: use ATOMIC64_INIT() for atomic64_t
authorJonathan Gray <jsg@jsg.id.au>
Thu, 11 Jan 2024 02:30:45 +0000 (13:30 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:20 +0000 (13:53 +0100)
[ Upstream commit 9877bb2775d020fb7000af5ca989331d09d0e372 ]

use ATOMIC64_INIT() not ATOMIC_INIT() for atomic64_t

Fixes: 3f09a0cd4ea3 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_file.c

index f917b259b33421fa52a315178ac6891d37fd2039..26fc813d37edfa2b6412eff043c3f117585a1f96 100644 (file)
@@ -138,7 +138,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;