mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] parameter: include header for ERR_PTR and errno
@ 2015-03-10 20:29 Lucas Stach
  2015-03-11  8:38 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2015-03-10 20:29 UTC (permalink / raw)
  To: barebox

Commit 03b59bdb64e83e (paramter: The dev_add_param_*() return ERR_PTR(),
change no-ops to return ERR_PTR(-ENOSYS) instead of NULL) started using
ERR_PTR and errnos without including the relevant header.

This fixes the build for a lot of configurations.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
Sascha, please apply to master as the above commit is already there.
---
 include/param.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/param.h b/include/param.h
index bd2c0789968a..3a851fc552a4 100644
--- a/include/param.h
+++ b/include/param.h
@@ -1,6 +1,7 @@
 #ifndef PARAM_H
 #define PARAM_H
 
+#include <linux/err.h>
 #include <linux/types.h>
 #include <linux/list.h>
 
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH] parameter: include header for ERR_PTR and errno
  2015-03-10 20:29 [PATCH] parameter: include header for ERR_PTR and errno Lucas Stach
@ 2015-03-11  8:38 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-03-11  8:38 UTC (permalink / raw)
  To: Lucas Stach; +Cc: barebox

On Tue, Mar 10, 2015 at 09:29:00PM +0100, Lucas Stach wrote:
> Commit 03b59bdb64e83e (paramter: The dev_add_param_*() return ERR_PTR(),
> change no-ops to return ERR_PTR(-ENOSYS) instead of NULL) started using
> ERR_PTR and errnos without including the relevant header.
> 
> This fixes the build for a lot of configurations.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> Sascha, please apply to master as the above commit is already there.

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2015-03-11  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10 20:29 [PATCH] parameter: include header for ERR_PTR and errno Lucas Stach
2015-03-11  8:38 ` Sascha Hauer

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