提交 d2386d79 编写于 作者: H Hans de Goede

platform/x86: thinkpad_acpi: Fix 'warning: no previous prototype for' warnings

Some of the new dytc handling functions are not marked static, even though
they are only used internally.

Mark these static, fixing the following compiler warnings:

drivers/platform/x86/thinkpad_acpi.c:10081:5: warning: no previous prototype for 'dytc_profile_get' [-Wmissing-prototypes]
drivers/platform/x86/thinkpad_acpi.c:10095:5: warning: no previous prototype for 'dytc_cql_command' [-Wmissing-prototypes]
drivers/platform/x86/thinkpad_acpi.c:10133:5: warning: no previous prototype for 'dytc_profile_set' [-Wmissing-prototypes]

Cc: Mark Pearson <markpearson@lenovo.com>
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210204140158.268289-1-hdegoede@redhat.com
上级 2c15644e
...@@ -10078,7 +10078,7 @@ static int convert_profile_to_dytc(enum platform_profile_option profile, int *pe ...@@ -10078,7 +10078,7 @@ static int convert_profile_to_dytc(enum platform_profile_option profile, int *pe
* dytc_profile_get: Function to register with platform_profile * dytc_profile_get: Function to register with platform_profile
* handler. Returns current platform profile. * handler. Returns current platform profile.
*/ */
int dytc_profile_get(struct platform_profile_handler *pprof, static int dytc_profile_get(struct platform_profile_handler *pprof,
enum platform_profile_option *profile) enum platform_profile_option *profile)
{ {
*profile = dytc_current_profile; *profile = dytc_current_profile;
...@@ -10092,7 +10092,7 @@ int dytc_profile_get(struct platform_profile_handler *pprof, ...@@ -10092,7 +10092,7 @@ int dytc_profile_get(struct platform_profile_handler *pprof,
* - enable CQL * - enable CQL
* If not in CQL mode, just run the command * If not in CQL mode, just run the command
*/ */
int dytc_cql_command(int command, int *output) static int dytc_cql_command(int command, int *output)
{ {
int err, cmd_err, dummy; int err, cmd_err, dummy;
int cur_funcmode; int cur_funcmode;
...@@ -10130,7 +10130,7 @@ int dytc_cql_command(int command, int *output) ...@@ -10130,7 +10130,7 @@ int dytc_cql_command(int command, int *output)
* dytc_profile_set: Function to register with platform_profile * dytc_profile_set: Function to register with platform_profile
* handler. Sets current platform profile. * handler. Sets current platform profile.
*/ */
int dytc_profile_set(struct platform_profile_handler *pprof, static int dytc_profile_set(struct platform_profile_handler *pprof,
enum platform_profile_option profile) enum platform_profile_option profile)
{ {
int output; int output;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册