• Pekka Enberg's avatar
    kmemtrace, kbuild: fix slab.h dependency problem in lib/decompress_inflate.c · 079effb6
    Pekka Enberg authored
    Impact: fix build
    
    lib/decompress_inflate.c depends on slab.h without including it:
    
        CC      lib/decompress_inflate.o
      lib/decompress_inflate.c: In function ‘gunzip’:
      lib/decompress_inflate.c:45: error: implicit declaration of function ‘kmalloc’
      lib/decompress_inflate.c:45: warning: assignment makes pointer from integer without a cast
      lib/decompress_inflate.c:57: warning: assignment makes pointer from integer without a cast
      lib/decompress_inflate.c:65: warning: assignment makes pointer from integer without a cast
      lib/decompress_inflate.c:71: warning: assignment makes pointer from integer without a cast
      lib/decompress_inflate.c:154: error: implicit declaration of function ‘kfree’
      make[1]: *** [lib/decompress_inflate.o] Error 1
      make: *** [lib/] Error 2
    
    It gets included implicitly currently - but this will not be the
    case with upcoming kmemtrace changes.
    Signed-off-by: default avatarPekka Enberg <[email protected]>
    Cc: Eduard - Gabriel Munteanu <[email protected]>
    LKML-Reference: <[email protected]>
    Signed-off-by: default avatarIngo Molnar <[email protected]>
    079effb6
decompress_inflate.c 3.46 KB