Skip to content

Commit fa84574

Browse files
Jean DelvareJean Delvare
authored andcommitted
hwmon: Add missing inclusions of <linux/err.h>
These drivers use IS_ERR so they should include <linux/err.h>. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Luca Tettamanti <kronos.it@gmail.com> Cc: Henrik Rydberg <rydberg@euromail.se>
1 parent dcd8f39 commit fa84574

6 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎drivers/hwmon/acpi_power_meter.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/kdev_t.h>
3030
#include <linux/sched.h>
3131
#include <linux/time.h>
32+
#include <linux/err.h>
3233
#include <acpi/acpi_drivers.h>
3334
#include <acpi/acpi_bus.h>
3435

‎drivers/hwmon/applesmc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include <linux/leds.h>
4444
#include <linux/hwmon.h>
4545
#include <linux/workqueue.h>
46+
#include <linux/err.h>
4647

4748
/* data port used by Apple SMC */
4849
#define APPLESMC_DATA_PORT 0x300

‎drivers/hwmon/asus_atk0110.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/slab.h>
1616
#include <linux/dmi.h>
1717
#include <linux/jiffies.h>
18+
#include <linux/err.h>
1819

1920
#include <acpi/acpi.h>
2021
#include <acpi/acpixf.h>

‎drivers/hwmon/ibmaem.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <linux/platform_device.h>
3737
#include <linux/math64.h>
3838
#include <linux/time.h>
39+
#include <linux/err.h>
3940

4041
#define REFRESH_INTERVAL (HZ)
4142
#define IPMI_TIMEOUT (30 * HZ)

‎drivers/hwmon/ibmpex.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <linux/jiffies.h>
2727
#include <linux/mutex.h>
2828
#include <linux/slab.h>
29+
#include <linux/err.h>
2930

3031
#define REFRESH_INTERVAL (2 * HZ)
3132
#define DRVNAME "ibmpex"

‎drivers/hwmon/ultra45_env.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/io.h>
1313
#include <linux/hwmon.h>
1414
#include <linux/hwmon-sysfs.h>
15+
#include <linux/err.h>
1516

1617
#define DRV_MODULE_VERSION "0.1"
1718

0 commit comments

Comments
 (0)