Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967445AbaFTNwb (ORCPT ); Fri, 20 Jun 2014 09:52:31 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:63737 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965897AbaFTNw2 (ORCPT ); Fri, 20 Jun 2014 09:52:28 -0400 From: Arnd Bergmann To: Andreas Noever Cc: Greg Kroah-Hartman , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 2/3] thunderbolt: include linux/slab.h for kmalloc Date: Fri, 20 Jun 2014 15:52:10 +0200 Message-Id: <1403272331-3790755-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1403272331-3790755-1-git-send-email-arnd@arndb.de> References: <1403272331-3790755-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:HfWj6wIC3A1PCil5wcHipNP8QEaXqGVMom0isPX6qFu vbRyw8YoUNL579rvEvIn80iSTxUA8UA9GqaizuxzTIJnmIM5Vf VH95zdvyetIYHG0lFdYYwRWDs5+PwtaZ1HQEfqTPoJRg+CvYji 5vY1UKBxqs4KyN73fUHSxRZ/UyesgGdZMfqRZ1ISjtq+QkvXw7 edow4zfw6EdbCd3+kbr26DM3DztAhL4fA7Bb5tfwh+BaOV+q4U aYUcIFa//s4/LhgpLlb2HXosWhNG+VkmWCuP8egTe51W4DMuRb zuwCnSRpQwkXmYmPaOXpa4FnwAc3CQMa/UDnsvTzT7cHAGBulj 2QFGbrzRHiAsOUgYKgzN7AOb1v2lNtT/mwAbP1jW+ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The kmalloc/kzalloc/kfree functions are declared in linux/slab.h, so we have to explicitly include that header to avoid build failures on ARM and other architectures that don't include these implicitly through another header. Signed-off-by: Arnd Bergmann --- drivers/thunderbolt/eeprom.c | 1 + drivers/thunderbolt/switch.c | 1 + 2 files changed, 2 insertions(+) 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 +#include #include "tb.h" /** 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 +#include #include "tb.h" -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/