]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
HID: picolcd: using vmalloc() requires the include of vmalloc.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 16 Aug 2012 05:20:10 +0000 (15:20 +1000)
committerJiri Kosina <jkosina@suse.cz>
Thu, 16 Aug 2012 10:04:26 +0000 (12:04 +0200)
Fixes thes build errors:

drivers/hid/hid-picolcd_fb.c: In function 'picolcd_fb_destroy':
drivers/hid/hid-picolcd_fb.c:350:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
drivers/hid/hid-picolcd_fb.c: In function 'picolcd_init_framebuffer':
drivers/hid/hid-picolcd_fb.c:508:2: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration]
drivers/hid/hid-picolcd_fb.c:508:12: warning: assignment makes pointer from integer without a cast [enabled by default]

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-picolcd_fb.c

index 4d8e22c73249be900890621f817ca4bd6df9936f..cf295c5691703c66b9d4c6330b8a61a20a30be0f 100644 (file)
@@ -18,6 +18,7 @@
  ***************************************************************************/
 
 #include <linux/hid.h>
+#include <linux/vmalloc.h>
 #include "usbhid/usbhid.h"
 #include <linux/usb.h>