lkml.org 
[lkml]   [2014]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] zram: include linux/err.h
    Date
    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>

    \
     
     \ /
      Last update: 2014-03-15 11:01    [W:5.487 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site