• Paul Gortmaker's avatar
    sparc: fix implicit include of slab.h in leon_pci_grpci2.c · d6250ee2
    Paul Gortmaker authored
    To fix:
    
    arch/sparc/kernel/leon_pci_grpci2.c: In function 'grpci2_of_probe':
    arch/sparc/kernel/leon_pci_grpci2.c:720:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration]
    arch/sparc/kernel/leon_pci_grpci2.c:720:20: error: assignment makes pointer from integer without a cast [-Werror]
    arch/sparc/kernel/leon_pci_grpci2.c:882:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
    cc1: all warnings being treated as errors
    make[2]: *** [arch/sparc/kernel/leon_pci_grpci2.o] Error 1
    
    According to Stephen, these types of failures are caused by commit
    2bd59d48 ("cgroup: convert to kernfs") which was being included
    implicitly via cgroup.h's inclusion of xattr.h (which has now been
    removed).
    Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    d6250ee2
leon_pci_grpci2.c 24.2 KB