mfd: rtsx_pcr: Include linux/slab.h to fix build error
PATCH 1/1 mfd: rtsx_pcr: Include linux/slab.h to fix build error
Fix below build error:
CC [M] drivers/mfd/rtsx_pcr.odrivers/mfd/rtsx_pcr.c: In function 'rtsx_pci_init_chip':drivers/mfd/rtsx_pcr.c:985:2: error: implicit declaration of function 'kcalloc' [-Werror=implicit-function-declaration] drivers/mfd/rtsx_pcr.c:985:13: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/mfd/rtsx_pcr.c:993:3: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration] drivers/mfd/rtsx_pcr.c: In function 'rtsx_pci_probe':drivers/mfd/rtsx_pcr.c:1021:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration] drivers/mfd/rtsx_pcr.c:1021:6: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/mfd/rtsx_pcr.c:1027:9: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[2]: *** [drivers/mfd/rtsx_pcr.o] Error 1
make[1]: *** [drivers/mfd] Error 2
make: *** [drivers] Error 2
--- drivers/mfd/rtsx_pcr.c | 1 + 1 file changed, 1 insertion(+)
drivers/mfd/rtsx_pcr.c +1 -0
@@ -27,6 +27,7 @@#include <linux/interrupt.h> #include <linux/delay.h> #include <linux/idr.h> +#include <linux/slab.h> #include <linux/platform_device.h> #include <linux/mfd/core.h> #include <linux/mfd/rtsx_pci.h>
Signature · 1 line
1.7.9.5
Hi Axel,
Quoted 1 line · Axel Lin
Fix below build error:
I already pushed a similar patch, thanks.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/