Skip to contentSkip to conversation

staging: fsl-mc: Add missing header

PATCH In review Bogdan Purcareata 2 participants 2 messages Feb 13, 2017 – Feb 15, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: fsl-mc: Add missing header

Compiling the fsl-mc bus driver will yield a couple of static analysis errors:
warning: symbol 'fsl_mc_msi_domain_alloc_irqs' was not declared
warning: symbol 'fsl_mc_msi_domain_free_irqs' was not declared.
warning: symbol 'its_fsl_mc_msi_init' was not declared.
warning: symbol 'its_fsl_mc_msi_cleanup' was not declared.

Since these are properly declared, but the header is not included, add it in the source files. This way the symbol is properly exported.

---
Sent against staging-testing.

 drivers/staging/fsl-mc/bus/fsl-mc-msi.c                | 1 +
 drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c | 1 +
 2 files changed, 2 insertions(+)
drivers/staging/fsl-mc/bus/fsl-mc-msi.c +1 -0
index 7975c6e..b8b2c86 100644
@@ -17,6 +17,7 @@
 #include <linux/irqdomain.h>
 #include <linux/msi.h>
 #include "../include/mc-bus.h"
+#include "fsl-mc-private.h"
 
 /*
  * Generate a unique ID identifying the interrupt (only used within the MSI
drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c +1 -0
index 0e2c1b5..87e4471 100644
@@ -17,6 +17,7 @@
 #include <linux/of.h>
 #include <linux/of_irq.h>
 #include "../include/mc-bus.h"
+#include "fsl-mc-private.h"
 
 static struct irq_chip its_msi_irq_chip = {
 	.name = "ITS-fMSI",
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 36 lines · Bogdan Purcareata

Compiling the fsl-mc bus driver will yield a couple of static analysis errors:
warning: symbol 'fsl_mc_msi_domain_alloc_irqs' was not declared
warning: symbol 'fsl_mc_msi_domain_free_irqs' was not declared.
warning: symbol 'its_fsl_mc_msi_init' was not declared.
warning: symbol 'its_fsl_mc_msi_cleanup' was not declared.

Since these are properly declared, but the header is not included, add it in the source files. This way the symbol is properly exported.

---
Sent against staging-testing.

  drivers/staging/fsl-mc/bus/fsl-mc-msi.c                | 1 +
  drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c | 1 +
  2 files changed, 2 insertions(+)
drivers/staging/fsl-mc/bus/fsl-mc-msi.c +1 -0
index 7975c6e..b8b2c86 100644
@@ -17,6 +17,7 @@
  #include <linux/irqdomain.h>
  #include <linux/msi.h>
  #include "../include/mc-bus.h"
+#include "fsl-mc-private.h"
 
  /*
   * Generate a unique ID identifying the interrupt (only used within the MSI
drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c +0 -0
index 0e2c1b5..87e4471 100644

drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c line 23

Quoted 7 lines
drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c +1 -0
@@ -17,6 +17,7 @@
  #include <linux/of.h>
  #include <linux/of_irq.h>
  #include "../include/mc-bus.h"
+#include "fsl-mc-private.h"
 
  static struct irq_chip its_msi_irq_chip = {
  	.name = "ITS-fMSI",

---
Best Regards, Laurentiu