bcma: add missing includes
authorRafał Miłecki <zajec5@gmail.com>
Tue, 3 Mar 2015 06:32:57 +0000 (07:32 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Mar 2015 13:26:38 +0000 (15:26 +0200)
kbuild found out that commit 804e27dee49e ("bcma: support bringing up
bus hosted on PCIe Gen 2") broke the build on m68k:

   drivers/bcma/driver_pcie2.c: In function 'bcma_core_pcie2_up':
>> drivers/bcma/driver_pcie2.c:196:2: error: implicit declaration of function 'pcie_set_readrq' [-Werror\
=implicit-function-declaration]
     err = pcie_set_readrq(dev, pcie2->reqsize);
     ^
   cc1: some warnings being treated as errors

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/bcma/driver_pci_host.c
drivers/bcma/driver_pcie2.c

index c8a6b741967b390e20470f15d55d493fa9bc8ce8..c42cec7c7ecc0a88f649b315c8c8616a0439c2f8 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "bcma_private.h"
 #include <linux/pci.h>
+#include <linux/slab.h>
 #include <linux/export.h>
 #include <linux/bcma/bcma.h>
 #include <asm/paccess.h>
index 4568bc7bd54af2fe192b22045167d8b21149806b..b1a6e327cb23d44d10a2952d9e0aa5f356528b24 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "bcma_private.h"
 #include <linux/bcma/bcma.h>
+#include <linux/pci.h>
 
 /**************************************************
  * R/W ops.