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:30 +0530
|
||
Subject: [17/31] thunderbolt: Fix build error in switch.c
|
||
MIME-Version: 1.0
|
||
Content-Type: text/plain; charset=UTF-8
|
||
Content-Transfer-Encoding: 8bit
|
||
Origin: https://git.kernel.org/linus/10fefe56bba413fb0525207c65cf50cf2a5afaff
|
||
|
||
Fixes the below error:
|
||
drivers/thunderbolt/switch.c:347:2: error: implicit declaration of function ‘kzalloc’ [-Werror=implicit-function-declaration]
|
||
drivers/thunderbolt/switch.c:381:2: error: implicit declaration of function ‘kcalloc’ [-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/switch.c | 1 +
|
||
1 file changed, 1 insertion(+)
|
||
|
||
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c
|
||
index 0d50e7e..26e76e4 100644
|
||
--- a/drivers/thunderbolt/switch.c
|
||
+++ b/drivers/thunderbolt/switch.c
|
||
@@ -5,6 +5,7 @@
|
||
*/
|
||
|
||
#include <linux/delay.h>
|
||
+#include <linux/slab.h>
|
||
|
||
#include "tb.h"
|
||
|