diff --git a/src/clevo_acpi.c b/src/clevo_acpi.c index 2a79a23..9ea9624 100644 --- a/src/clevo_acpi.c +++ b/src/clevo_acpi.c @@ -79,7 +79,7 @@ static int clevo_acpi_evaluate(struct acpi_device *device, u8 cmd, u32 arg, unio return status; } -int clevo_acpi_interface_method_call(u8 cmd, u32 arg, union acpi_object **result_value) +static int clevo_acpi_interface_method_call(u8 cmd, u32 arg, union acpi_object **result_value) { int status = 0; @@ -137,7 +137,7 @@ static void clevo_acpi_remove(struct acpi_device *device) #endif } -void clevo_acpi_notify(struct acpi_device *device, u32 event) +static void clevo_acpi_notify(struct acpi_device *device, u32 event) { u32 event_value; union acpi_object *out_obj; diff --git a/src/clevo_wmi.c b/src/clevo_wmi.c index 8b412be..4fb14ee 100644 --- a/src/clevo_wmi.c +++ b/src/clevo_wmi.c @@ -55,7 +55,7 @@ static int clevo_wmi_evaluate(u32 wmi_method_id, u32 wmi_arg, union acpi_object return return_status; } -int clevo_wmi_interface_method_call(u8 cmd, u32 arg, union acpi_object **result_value) +static int clevo_wmi_interface_method_call(u8 cmd, u32 arg, union acpi_object **result_value) { return clevo_wmi_evaluate(cmd, arg, result_value); } diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c index 38c3337..fca1bcd 100644 --- a/src/tuxedo_io/tuxedo_io.c +++ b/src/tuxedo_io/tuxedo_io.c @@ -112,7 +112,7 @@ static int tdp_max_gmxpxxx[] = { 0x82, 0x82, 0xc8 }; static int *tdp_min_defs = NULL; static int *tdp_max_defs = NULL; -void uw_id_tdp(void) +static void uw_id_tdp(void) { if (uw_feats->model == UW_MODEL_PH4TUX) { tdp_min_defs = tdp_min_ph4tux; diff --git a/src/tuxedo_keyboard_common.h b/src/tuxedo_keyboard_common.h index aae510b..3253832 100644 --- a/src/tuxedo_keyboard_common.h +++ b/src/tuxedo_keyboard_common.h @@ -61,7 +61,7 @@ void tuxedo_keyboard_remove_driver(struct tuxedo_keyboard_driver *tk_driver); /** * Basically a copy of the existing report event but doesn't report unknown events */ -bool sparse_keymap_report_known_event(struct input_dev *dev, unsigned int code, +inline bool sparse_keymap_report_known_event(struct input_dev *dev, unsigned int code, unsigned int value, bool autorelease) { const struct key_entry *ke = diff --git a/src/uniwill_wmi.c b/src/uniwill_wmi.c index 009e199..9e903fc 100644 --- a/src/uniwill_wmi.c +++ b/src/uniwill_wmi.c @@ -249,7 +249,7 @@ static int uw_ec_write_addr_direct(u8 addr_low, u8 addr_high, u8 data_low, u8 da return result; } -int uw_wmi_read_ec_ram(u16 addr, u8 *data) +static int uw_wmi_read_ec_ram(u16 addr, u8 *data) { int result; u8 addr_low, addr_high; @@ -271,7 +271,7 @@ int uw_wmi_read_ec_ram(u16 addr, u8 *data) return result; } -int uw_wmi_write_ec_ram(u16 addr, u8 data) +static int uw_wmi_write_ec_ram(u16 addr, u8 data) { int result; u8 addr_low, addr_high, data_low, data_high;