32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From: Sachin Kamat <sachin.kamat@samsung.com>
|
||
Date: Fri, 20 Jun 2014 14:32:29 +0530
|
||
Subject: [16/31] thunderbolt: Fix build error in eeprom.c
|
||
MIME-Version: 1.0
|
||
Content-Type: text/plain; charset=UTF-8
|
||
Content-Transfer-Encoding: 8bit
|
||
Origin: https://git.kernel.org/linus/2b35404ef7762af15ce138281c91b4cc0e2d0124
|
||
|
||
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 | 1 +
|
||
1 file changed, 1 insertion(+)
|
||
|
||
diff --git a/drivers/thunderbolt/eeprom.c b/drivers/thunderbolt/eeprom.c
|
||
index 0d5a80b..bc0449f 100644
|
||
--- a/drivers/thunderbolt/eeprom.c
|
||
+++ b/drivers/thunderbolt/eeprom.c
|
||
@@ -5,6 +5,7 @@
|
||
*/
|
||
|
||
#include <linux/crc32.h>
|
||
+#include <linux/slab.h>
|
||
#include "tb.h"
|
||
|
||
/**
|