lkml.org 
[lkml]   [2007]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH -mm] crypto: scatterwalk.h needs sched.h
    From: Randy Dunlap <randy.dunlap@oracle.com>

    When CONFIG_PREEMPT_NONE=y, scatterwalk.h still uses cond_resched()
    so it needs to include sched.h:

    linux-2.6.24-rc6-mm1/include/crypto/scatterwalk.h:52: error: implicit declaration of function 'cond_resched'
    make[2]: *** [crypto/digest.o] Error 1

    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    ---
    include/crypto/scatterwalk.h | 1 +
    1 file changed, 1 insertion(+)

    --- linux-2.6.24-rc6-mm1.orig/include/crypto/scatterwalk.h
    +++ linux-2.6.24-rc6-mm1/include/crypto/scatterwalk.h
    @@ -23,6 +23,7 @@
    #include <linux/kernel.h>
    #include <linux/mm.h>
    #include <linux/scatterlist.h>
    +#include <linux/sched.h>

    static inline enum km_type crypto_kmap_type(int out)
    {

    \
     
     \ /
      Last update: 2007-12-31 19:11    [W:3.886 / U:0.612 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site