diff options
| author | Mark Brown <broonie@kernel.org> | 2025-02-25 13:39:06 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-02-25 13:39:06 +0000 |
| commit | b80fd34df2580f2c7a99e7188d68515bcf779714 (patch) | |
| tree | 5cb104b03241df9cce66268fffbca5702ce3c764 /include/linux/module.h | |
| parent | 66d8e76e8e85a30fbf9809837e07e15a8c5ccb8b (diff) | |
| parent | 0dffacbbf8d044456d50c893adb9499775c489f4 (diff) | |
Fix RK3588 power domain problems
Merge series from Sebastian Reichel <sebastian.reichel@collabora.com>:
This introduces devm_of_regulator_get without the _optional suffix, since
that is more sensible for the Rockchip usecase.
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 23792d5d7b74..30e5b19bafa9 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -306,7 +306,10 @@ extern int modules_disabled; /* for sysctl */ /* Get/put a kernel symbol (calls must be symmetric) */ void *__symbol_get(const char *symbol); void *__symbol_get_gpl(const char *symbol); -#define symbol_get(x) ((typeof(&x))(__symbol_get(__stringify(x)))) +#define symbol_get(x) ({ \ + static const char __notrim[] \ + __used __section(".no_trim_symbol") = __stringify(x); \ + (typeof(&x))(__symbol_get(__stringify(x))); }) /* modules using other modules: kdb wants to see this. */ struct module_use { |
