Skip to contentSkip to conversation

bcma: add missing includes

PATCH In review Rafał Miłecki 2 participants 4 messages Mar 3, 2015 Broadcom specific amba driver (bcma)

lore
Share & tools
lore

Rafał Miłecki

author maintainer
#0 lore raw

PATCH 1/1 bcma: add missing includes

---
 drivers/bcma/driver_pci_host.c | 1 +
 drivers/bcma/driver_pcie2.c    | 1 +
 2 files changed, 2 insertions(+)
drivers/bcma/driver_pci_host.c +1 -0
index c8a6b74..c42cec7 100644
@@ -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>
drivers/bcma/driver_pcie2.c +1 -0
index 4568bc7..b1a6e32 100644
@@ -10,6 +10,7 @@
 
 #include "bcma_private.h"
 #include <linux/bcma/bcma.h>
+#include <linux/pci.h>
 
 /**************************************************
  * R/W ops.
Signature · 1 line
1.8.4.5
#1 lore raw
Quoted 1 line · Rafał Miłecki

Please, no empty commit logs. I don't (yet) require that with all patches, but this definitely needs one. Is this ok:

bcma: add missing includes

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':

Quoted 1 line
Quoted 1 line

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

Signature · 1 line
Kalle Valo
author maintainer
#2 lore raw
Quoted 13 lines · Kalle Valo
Quoted 1 line · Rafał Miłecki

Please, no empty commit logs. I don't (yet) require that with all patches, but this definitely needs one. Is this ok:

bcma: add missing includes

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':

Quoted 8 lines
Quoted 1 line
Quoted 1 line

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

You're right, I could to better :| Yes, your version looks OK.

Signature · 1 line
Rafał
#3 lore raw
Quoted 20 lines · Rafał Miłecki
Quoted 19 lines · Kalle Valo
Quoted 1 line · Rafał Miłecki

Please, no empty commit logs. I don't (yet) require that with all patches, but this definitely needs one. Is this ok:

bcma: add missing includes

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':

Quoted 1 line
Quoted 1 line

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

Quoted 4 lines
Quoted 2 lines

You're right, I could to better :| Yes, your version looks OK.

Thanks, I applied with my modifications.

Signature · 1 line
Kalle Valo