]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
thunderbolt: Fix build error in eeprom.c
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 20 Jun 2014 09:02:29 +0000 (14:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 16:44:42 +0000 (09:44 -0700)
Fixes the below error:
drivers/thunderbolt/eeprom.c:407:2: error: implicit declaration of function ‘kzalloc’ [-Werror=implicit-function-declaration]
drivers/thunderbolt/eeprom.c:444:2: error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration]

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Acked-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/eeprom.c

index 0d5a80b2d07a5b7f2487f60712283b6b708634fb..bc0449f581c2e48105a60785a1f6b6e56e44a848 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <linux/crc32.h>
+#include <linux/slab.h>
 #include "tb.h"
 
 /**