Skip to content

Commit 713df99

Browse files
YueHaibingandy-shev
authored andcommitted
platform/x86: wmi: Make two functions static
Fix sparse warnings: drivers/platform/x86/xiaomi-wmi.c:26:5: warning: symbol 'xiaomi_wmi_probe' was not declared. Should it be static? drivers/platform/x86/xiaomi-wmi.c:51:6: warning: symbol 'xiaomi_wmi_notify' was not declared. Should it be static? Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 4dbccb8 commit 713df99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/x86/xiaomi-wmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct xiaomi_wmi {
2323
unsigned int key_code;
2424
};
2525

26-
int xiaomi_wmi_probe(struct wmi_device *wdev, const void *context)
26+
static int xiaomi_wmi_probe(struct wmi_device *wdev, const void *context)
2727
{
2828
struct xiaomi_wmi *data;
2929

@@ -48,7 +48,7 @@ int xiaomi_wmi_probe(struct wmi_device *wdev, const void *context)
4848
return input_register_device(data->input_dev);
4949
}
5050

51-
void xiaomi_wmi_notify(struct wmi_device *wdev, union acpi_object *dummy)
51+
static void xiaomi_wmi_notify(struct wmi_device *wdev, union acpi_object *dummy)
5252
{
5353
struct xiaomi_wmi *data;
5454

0 commit comments

Comments
 (0)