• Arnd Bergmann's avatar
    ACPI: thermal_lib: include "internal.h" for function prototypes · b14b2d56
    Arnd Bergmann authored
    The newly added functions are declared in a header that is not included
    before the definition:
    
    drivers/acpi/thermal_lib.c:46:5: error: no previous prototype for 'acpi_active_trip_temp' [-Werror=missing-prototypes]
       46 | int acpi_active_trip_temp(struct acpi_device *adev, int id, int *ret_temp)
          |     ^~~~~~~~~~~~~~~~~~~~~
    drivers/acpi/thermal_lib.c:57:5: error: no previous prototype for 'acpi_passive_trip_temp' [-Werror=missing-prototypes]
       57 | int acpi_passive_trip_temp(struct acpi_device *adev, int *ret_temp)
          |     ^~~~~~~~~~~~~~~~~~~~~~
    drivers/acpi/thermal_lib.c:63:5: error: no previous prototype for 'acpi_hot_trip_temp' [-Werror=missing-prototypes]
       63 | int acpi_hot_trip_temp(struct acpi_device *adev, int *ret_temp)
          |     ^~~~~~~~~~~~~~~~~~
    drivers/acpi/thermal_lib.c:69:5: error: no previous prototype for 'acpi_critical_trip_temp' [-Werror=missing-prototypes]
       69 | int acpi_critical_trip_temp(struct acpi_device *adev, int *ret_temp)
          |     ^~~~~~~~~~~~~~~~~~~~~~~
    
    Fixes: 6908097a ("ACPI: thermal_lib: Add functions returning temperature in deci-Kelvin")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    b14b2d56
thermal_lib.c 4.99 KB