From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 2/6] powerpc: Add missing includes
Date: Tue, 15 Sep 2020 09:03:01 +0200 [thread overview]
Message-ID: <20200915070305.15763-3-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20200915070305.15763-1-s.hauer@pengutronix.de>
Add missing includes to avoid -Wmissing-prototypes warnings.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c | 2 ++
arch/powerpc/boards/freescale-p1022ds/p1022ds.c | 2 ++
arch/powerpc/mach-mpc5xxx/reginfo.c | 1 +
arch/powerpc/mach-mpc5xxx/speed.c | 1 +
arch/powerpc/mach-mpc85xx/cpu.c | 1 +
arch/powerpc/mach-mpc85xx/cpuid.c | 1 +
arch/powerpc/mach-mpc85xx/fsl_i2c.c | 1 +
7 files changed, 9 insertions(+)
diff --git a/arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c b/arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c
index b163327597..f2f6d00b77 100644
--- a/arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c
+++ b/arch/powerpc/boards/freescale-p1010rdb/p1010rdb.c
@@ -37,6 +37,8 @@
#include <mach/early_udelay.h>
#include <of.h>
+#include "p1010rdb.h"
+
static struct gfar_info_struct gfar_info[] = {
{
.phyaddr = 1,
diff --git a/arch/powerpc/boards/freescale-p1022ds/p1022ds.c b/arch/powerpc/boards/freescale-p1022ds/p1022ds.c
index d80c234ea9..956b830c5d 100644
--- a/arch/powerpc/boards/freescale-p1022ds/p1022ds.c
+++ b/arch/powerpc/boards/freescale-p1022ds/p1022ds.c
@@ -34,6 +34,8 @@
#include <mach/clock.h>
#include <mach/early_udelay.h>
+#include "p1022ds.h"
+
/* Define attributes for eTSEC1 and eTSEC2 */
static struct gfar_info_struct gfar_info[] = {
{
diff --git a/arch/powerpc/mach-mpc5xxx/reginfo.c b/arch/powerpc/mach-mpc5xxx/reginfo.c
index e41d235a5d..8b646e7d04 100644
--- a/arch/powerpc/mach-mpc5xxx/reginfo.c
+++ b/arch/powerpc/mach-mpc5xxx/reginfo.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <common.h>
#include <config.h>
#include <mach/mpc5xxx.h>
#include <asm/io.h>
diff --git a/arch/powerpc/mach-mpc5xxx/speed.c b/arch/powerpc/mach-mpc5xxx/speed.c
index 0cec9522e5..8aa20bd373 100644
--- a/arch/powerpc/mach-mpc5xxx/speed.c
+++ b/arch/powerpc/mach-mpc5xxx/speed.c
@@ -19,6 +19,7 @@
#include <init.h>
#include <asm/processor.h>
#include <types.h>
+#include <mach/clock.h>
/* Bus-to-Core Multipliers */
diff --git a/arch/powerpc/mach-mpc85xx/cpu.c b/arch/powerpc/mach-mpc85xx/cpu.c
index 7c8a59edc9..1d5a69c999 100644
--- a/arch/powerpc/mach-mpc85xx/cpu.c
+++ b/arch/powerpc/mach-mpc85xx/cpu.c
@@ -28,6 +28,7 @@
#include <asm-generic/memory_layout.h>
#include <mach/mmu.h>
#include <mach/immap_85xx.h>
+#include <mach/mpc85xx.h>
static void __noreturn mpc85xx_restart_soc(struct restart_handler *rst)
{
diff --git a/arch/powerpc/mach-mpc85xx/cpuid.c b/arch/powerpc/mach-mpc85xx/cpuid.c
index ae82e3fd3f..28f08ca292 100644
--- a/arch/powerpc/mach-mpc85xx/cpuid.c
+++ b/arch/powerpc/mach-mpc85xx/cpuid.c
@@ -23,6 +23,7 @@
#include <asm/cache.h>
#include <asm/io.h>
#include <mach/immap_85xx.h>
+#include <mach/mpc85xx.h>
struct cpu_type cpu_type_list[] = {
CPU_TYPE_ENTRY(8544, 8544, 1),
diff --git a/arch/powerpc/mach-mpc85xx/fsl_i2c.c b/arch/powerpc/mach-mpc85xx/fsl_i2c.c
index 51fcc64c26..8cf80713f6 100644
--- a/arch/powerpc/mach-mpc85xx/fsl_i2c.c
+++ b/arch/powerpc/mach-mpc85xx/fsl_i2c.c
@@ -21,6 +21,7 @@
#include <mach/clock.h>
#include <mach/immap_85xx.h>
#include <mach/early_udelay.h>
+#include <mach/fsl_i2c.h>
/* FSL I2C registers */
#define FSL_I2C_ADR 0x00
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2020-09-15 7:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-15 7:02 [PATCH 0/6] powerpc: Fix compiler warnings Sascha Hauer
2020-09-15 7:03 ` [PATCH 1/6] powerpc: Add prototypes to header file Sascha Hauer
2020-09-15 7:03 ` Sascha Hauer [this message]
2020-09-15 7:03 ` [PATCH 3/6] powerpc: Make locally used functions static Sascha Hauer
2020-09-15 7:03 ` [PATCH 4/6] powerpc: Add prototypes for functions called from assembly Sascha Hauer
2020-09-15 7:03 ` [PATCH 5/6] powerpc: Remove unused functions Sascha Hauer
2020-09-15 7:03 ` [PATCH 6/6] powerpc: Add function prototypes for exception handlers Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200915070305.15763-3-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox