public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwmon: menf21bmc: Include linux/err.h
@ 2014-10-16 13:07 Johannes Thumshirn
  2014-10-16 13:18 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Thumshirn @ 2014-10-16 13:07 UTC (permalink / raw)
  To: Andreas Werner, Jean Delvare, Gunter Roeck
  Cc: lm-sensors, linux-kernel, Johannes Thumshirn

Include linux/err.h to get the definitions for IS_ERR() PTR_ERR() and
ERR_PTR() used in the driver.

This fixes compilation on powerpc targets.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@men.de>
---
 drivers/hwmon/menf21bmc_hwmon.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/menf21bmc_hwmon.c b/drivers/hwmon/menf21bmc_hwmon.c
index c92229d..afc6b58 100644
--- a/drivers/hwmon/menf21bmc_hwmon.c
+++ b/drivers/hwmon/menf21bmc_hwmon.c
@@ -21,6 +21,7 @@
 #include <linux/jiffies.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
+#include <linux/err.h>
 
 #define DRV_NAME  "menf21bmc_hwmon"
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwmon: menf21bmc: Include linux/err.h
  2014-10-16 13:07 [PATCH] hwmon: menf21bmc: Include linux/err.h Johannes Thumshirn
@ 2014-10-16 13:18 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2014-10-16 13:18 UTC (permalink / raw)
  To: Johannes Thumshirn, Andreas Werner, Jean Delvare; +Cc: lm-sensors, linux-kernel

On 10/16/2014 06:07 AM, Johannes Thumshirn wrote:
> Include linux/err.h to get the definitions for IS_ERR() PTR_ERR() and
> ERR_PTR() used in the driver.
>
> This fixes compilation on powerpc targets.
>
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@men.de>

Hmm, my build tests should really find that :-(

Applied, thanks

Guenter

> ---
>   drivers/hwmon/menf21bmc_hwmon.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/hwmon/menf21bmc_hwmon.c b/drivers/hwmon/menf21bmc_hwmon.c
> index c92229d..afc6b58 100644
> --- a/drivers/hwmon/menf21bmc_hwmon.c
> +++ b/drivers/hwmon/menf21bmc_hwmon.c
> @@ -21,6 +21,7 @@
>   #include <linux/jiffies.h>
>   #include <linux/slab.h>
>   #include <linux/i2c.h>
> +#include <linux/err.h>
>
>   #define DRV_NAME  "menf21bmc_hwmon"
>
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-16 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-16 13:07 [PATCH] hwmon: menf21bmc: Include linux/err.h Johannes Thumshirn
2014-10-16 13:18 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox