projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
946f2b6
)
drm: use ATOMIC64_INIT() for atomic64_t
author
Jonathan Gray
<jsg@jsg.id.au>
Thu, 11 Jan 2024 02:30:45 +0000
(13:30 +1100)
committer
Jani Nikula
<jani.nikula@intel.com>
Tue, 5 Nov 2024 12:12:32 +0000
(14:12 +0200)
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>
drivers/gpu/drm/drm_file.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_file.c
b/drivers/gpu/drm/drm_file.c
index
9011f8e
..
cb5f22f
100644
(file)
--- a/
drivers/gpu/drm/drm_file.c
+++ b/
drivers/gpu/drm/drm_file.c
@@
-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 = ATOMIC
64
_INIT(0);
struct drm_device *dev = minor->dev;
struct drm_file *file;
int ret;