Messages in this thread Patch in this message | | | From | Arnd Bergmann <> | Subject | [PATCH] zram: include linux/err.h | Date | Sat, 15 Mar 2014 10:40:08 +0100 |
| |
The zram driver uses the ERR_PTR macro defined in <linux/err.h> and relies on this header to be included implicitly through other headers, which is not (always) the case on the ARM architecture.
Adding an explicit #include allows us to build the driver in all configurations.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/drivers/block/zram/zcomp.c b/drivers/block/zram/zcomp.c index 92a83df..3507bef 100644 --- a/drivers/block/zram/zcomp.c +++ b/drivers/block/zram/zcomp.c @@ -7,6 +7,7 @@ * 2 of the License, or (at your option) any later version. */ +#include <linux/err.h> #include <linux/kernel.h> #include <linux/string.h> #include <linux/slab.h>
| |