Fix missing-prototypes warnings/errors.

This commit is contained in:
Owen Williams 2024-11-04 23:02:22 -05:00
parent f566db3fa8
commit 4afa25ab96
5 changed files with 7 additions and 7 deletions

View file

@ -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;

View file

@ -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);
}

View file

@ -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;

View file

@ -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 =

View file

@ -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;