]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mmc: rtsx: Explicitely include slab.h in rtsx_pci_sdmmc.c
authorWei WANG <wei_wang@realsil.com.cn>
Tue, 20 Nov 2012 03:24:44 +0000 (11:24 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 21 Nov 2012 15:07:54 +0000 (16:07 +0100)
This fixes the following build error on some architectures (parisc at least):

drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sd_normal_rw':
drivers/mmc/host/rtsx_pci_sdmmc.c:448:2: error: implicit
declaration of function 'kzalloc'
[-Werror=implicit-function-declaration]
drivers/mmc/host/rtsx_pci_sdmmc.c:448:6: warning: assignment
makes pointer from integer without a cast [enabled by default]
drivers/mmc/host/rtsx_pci_sdmmc.c:472:2: error: implicit
declaration of function 'kfree'
[-Werror=implicit-function-declaration]

Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
Acked-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mmc/host/rtsx_pci_sdmmc.c

index 067dd462736280d4c49d67c5c7d7d3c123e126be..571915dfb218382f0d29ea72136b05669b9271ea 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/slab.h>
 #include <linux/highmem.h>
 #include <linux/delay.h>
 #include <linux/platform_device.h>