projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0e96f3
)
drm/xe: Get rid of MAKE_INIT_EXIT_FUNCS
author
Gustavo Sousa
<gustavo.sousa@intel.com>
Thu, 11 May 2023 19:48:21 +0000
(16:48 -0300)
committer
Rodrigo Vivi
<rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:33:51 +0000
(18:33 -0500)
There is not much of a benefit from using that macro as of now and it
hurts grepability or other ways of cross-referencing.
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_module.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_module.c
b/drivers/gpu/drm/xe/xe_module.c
index e8ee7a9b08781b45b4a9bdf14b92c36f9c1cfbb6..e2a61aaf50b68e5d445a560c98ce71d9f961758b 100644
(file)
--- a/
drivers/gpu/drm/xe/xe_module.c
+++ b/
drivers/gpu/drm/xe/xe_module.c
@@
-35,12
+35,16
@@
struct init_funcs {
int (*init)(void);
void (*exit)(void);
};
-#define MAKE_INIT_EXIT_FUNCS(name) \
- { .init = xe_##name##_module_init, \
- .exit = xe_##name##_module_exit, }
+
static const struct init_funcs init_funcs[] = {
- MAKE_INIT_EXIT_FUNCS(hw_fence),
- MAKE_INIT_EXIT_FUNCS(sched_job),
+ {
+ .init = xe_hw_fence_module_init,
+ .exit = xe_hw_fence_module_exit,
+ },
+ {
+ .init = xe_sched_job_module_init,
+ .exit = xe_sched_job_module_exit,
+ },
};
static int __init xe_init(void)