[PATCH] parameter: include header for ERR_PTR and errno

Lucas Stach l.stach at pengutronix.de
Tue Mar 10 13:29:00 PDT 2015

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 at 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>

More information about the barebox mailing list