* [PATCH 00/10] Compiler warning fixes
@ 2020-09-15 12:25 Sascha Hauer
2020-09-15 12:25 ` [PATCH 01/10] ARM: dts: beaglebone: Remove unnecessary tps65217.dtsi Sascha Hauer
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
This contains a bunch of annoying compiler warnings.
Sascha Hauer (10):
ARM: dts: beaglebone: Remove unnecessary tps65217.dtsi
arm: Add prototypes for functions called from assembly
openrisc: Add prototypes for functions called from assembly
ARM: tx28: provide header file with function prototype
ARM: tegra20-colibri-iris: drop regulators node
ARM: versatile: Remove unused function
openrisc: Add missing includes
openrisc: Make locally used functions static
scripts: tegra: Add missing include
ARM: zync: Fix include path
arch/arm/boards/edb93xx/flash_cfg.c | 3 ++
arch/arm/boards/edb93xx/pll_cfg.c | 3 ++
arch/arm/boards/edb93xx/sdram_cfg.c | 3 ++
arch/arm/boards/karo-tx28/tx28-stk5.c | 2 +
arch/arm/boards/karo-tx28/tx28.c | 4 +-
arch/arm/boards/karo-tx28/tx28.h | 3 ++
arch/arm/dts/tegra20-colibri-iris.dts | 36 ++++++++---------
arch/arm/dts/tps65217.dtsi | 56 ---------------------------
arch/arm/mach-ep93xx/header.c | 2 +
arch/arm/mach-versatile/core.c | 13 -------
arch/openrisc/cpu/cache.c | 3 +-
arch/openrisc/cpu/exceptions.c | 4 ++
arch/openrisc/lib/board.c | 3 ++
arch/openrisc/lib/cpuinfo.c | 2 +-
images/Makefile.zynq | 2 +-
scripts/tegra/context.c | 1 +
16 files changed, 46 insertions(+), 94 deletions(-)
create mode 100644 arch/arm/boards/karo-tx28/tx28.h
delete mode 100644 arch/arm/dts/tps65217.dtsi
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 01/10] ARM: dts: beaglebone: Remove unnecessary tps65217.dtsi
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
2020-09-15 12:25 ` [PATCH 02/10] arm: Add prototypes for functions called from assembly Sascha Hauer
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
tps65217.dtsi should be used from the upstream dts sources instead.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/dts/tps65217.dtsi | 56 --------------------------------------
1 file changed, 56 deletions(-)
delete mode 100644 arch/arm/dts/tps65217.dtsi
diff --git a/arch/arm/dts/tps65217.dtsi b/arch/arm/dts/tps65217.dtsi
deleted file mode 100644
index a63272422d..0000000000
--- a/arch/arm/dts/tps65217.dtsi
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-/*
- * Integrated Power Management Chip
- * http://www.ti.com/lit/ds/symlink/tps65217.pdf
- */
-
-&tps {
- compatible = "ti,tps65217";
-
- regulators {
- #address-cells = <1>;
- #size-cells = <0>;
-
- dcdc1_reg: regulator@0 {
- reg = <0>;
- regulator-compatible = "dcdc1";
- };
-
- dcdc2_reg: regulator@1 {
- reg = <1>;
- regulator-compatible = "dcdc2";
- };
-
- dcdc3_reg: regulator@2 {
- reg = <2>;
- regulator-compatible = "dcdc3";
- };
-
- ldo1_reg: regulator@3 {
- reg = <3>;
- regulator-compatible = "ldo1";
- };
-
- ldo2_reg: regulator@4 {
- reg = <4>;
- regulator-compatible = "ldo2";
- };
-
- ldo3_reg: regulator@5 {
- reg = <5>;
- regulator-compatible = "ldo3";
- };
-
- ldo4_reg: regulator@6 {
- reg = <6>;
- regulator-compatible = "ldo4";
- };
- };
-};
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 02/10] arm: Add prototypes for functions called from assembly
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
2020-09-15 12:25 ` [PATCH 01/10] ARM: dts: beaglebone: Remove unnecessary tps65217.dtsi Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
2020-09-15 12:25 ` [PATCH 03/10] openrisc: " Sascha Hauer
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
Some functions are called from assembly only. There's no prototype
for them so this leads to -Wmissing-prototypes warnings. Add a prototype
right aboce the functions to avoid these warnings.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/boards/edb93xx/flash_cfg.c | 3 +++
arch/arm/boards/edb93xx/pll_cfg.c | 3 +++
arch/arm/boards/edb93xx/sdram_cfg.c | 3 +++
| 2 ++
4 files changed, 11 insertions(+)
diff --git a/arch/arm/boards/edb93xx/flash_cfg.c b/arch/arm/boards/edb93xx/flash_cfg.c
index 6b742f967c..8400db69de 100644
--- a/arch/arm/boards/edb93xx/flash_cfg.c
+++ b/arch/arm/boards/edb93xx/flash_cfg.c
@@ -11,6 +11,9 @@
SMC_BCR_BLE | 2 << SMC_BCR_WST2_SHIFT | \
1 << SMC_BCR_MW_SHIFT)
+/* Called from assembly */
+void flash_cfg(void);
+
void flash_cfg(void)
{
struct smc_regs *smc = (struct smc_regs *)SMC_BASE;
diff --git a/arch/arm/boards/edb93xx/pll_cfg.c b/arch/arm/boards/edb93xx/pll_cfg.c
index 1f03acf915..1a1c01aba2 100644
--- a/arch/arm/boards/edb93xx/pll_cfg.c
+++ b/arch/arm/boards/edb93xx/pll_cfg.c
@@ -9,6 +9,9 @@
#include "pll_cfg.h"
#include "early_udelay.h"
+/* Called from assembly */
+void pll_cfg(void);
+
void pll_cfg(void)
{
struct syscon_regs *syscon = (struct syscon_regs *)SYSCON_BASE;
diff --git a/arch/arm/boards/edb93xx/sdram_cfg.c b/arch/arm/boards/edb93xx/sdram_cfg.c
index a9f591f197..3cee834910 100644
--- a/arch/arm/boards/edb93xx/sdram_cfg.c
+++ b/arch/arm/boards/edb93xx/sdram_cfg.c
@@ -17,6 +17,9 @@ static void precharge_all_banks(void);
static void setup_refresh_timer(void);
static void program_mode_registers(void);
+/* Called from assembly */
+void sdram_cfg(void);
+
void sdram_cfg(void)
{
struct sdram_regs *sdram = (struct sdram_regs *)SDRAM_BASE;
--git a/arch/arm/mach-ep93xx/header.c b/arch/arm/mach-ep93xx/header.c
index 4e6a2e57c8..a9dde2d8b0 100644
--- a/arch/arm/mach-ep93xx/header.c
+++ b/arch/arm/mach-ep93xx/header.c
@@ -2,6 +2,8 @@
#include <linux/compiler.h>
#include <asm/barebox-arm-head.h>
+void go(void);
+
void __naked __section(.flash_header_start) go(void)
{
barebox_arm_head();
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 03/10] openrisc: Add prototypes for functions called from assembly
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
2020-09-15 12:25 ` [PATCH 01/10] ARM: dts: beaglebone: Remove unnecessary tps65217.dtsi Sascha Hauer
2020-09-15 12:25 ` [PATCH 02/10] arm: Add prototypes for functions called from assembly Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
2020-09-15 12:25 ` [PATCH 04/10] ARM: tx28: provide header file with function prototype Sascha Hauer
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
Some functions are called from assembly only. There's no prototype
for them so this leads to -Wmissing-prototypes warnings. Add a prototype
right aboce the functions to avoid these warnings.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/openrisc/cpu/exceptions.c | 3 +++
arch/openrisc/lib/board.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/arch/openrisc/cpu/exceptions.c b/arch/openrisc/cpu/exceptions.c
index d01fbfbb1c..4c52feb51c 100644
--- a/arch/openrisc/cpu/exceptions.c
+++ b/arch/openrisc/cpu/exceptions.c
@@ -69,6 +69,9 @@ static void exception_hang(int vect)
hang();
}
+/* Called from assembly */
+void exception_handler(int vect);
+
void exception_handler(int vect)
{
int exception = vect >> 8;
diff --git a/arch/openrisc/lib/board.c b/arch/openrisc/lib/board.c
index 67ea96fc02..9591120fee 100644
--- a/arch/openrisc/lib/board.c
+++ b/arch/openrisc/lib/board.c
@@ -19,6 +19,9 @@
#include <memory.h>
#include <asm-generic/memory_layout.h>
+/* Called from assembly */
+void openrisc_start_barebox(void);
+
void __noreturn openrisc_start_barebox(void)
{
mem_malloc_init((void *)(OPENRISC_SOPC_TEXT_BASE - MALLOC_SIZE),
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 04/10] ARM: tx28: provide header file with function prototype
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
` (2 preceding siblings ...)
2020-09-15 12:25 ` [PATCH 03/10] openrisc: " Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
2020-09-15 12:25 ` [PATCH 05/10] ARM: tegra20-colibri-iris: drop regulators node Sascha Hauer
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
base_board_init() doesn't have a prototype anywhere, add a header file
for it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/boards/karo-tx28/tx28-stk5.c | 2 ++
arch/arm/boards/karo-tx28/tx28.c | 4 ++--
arch/arm/boards/karo-tx28/tx28.h | 3 +++
3 files changed, 7 insertions(+), 2 deletions(-)
create mode 100644 arch/arm/boards/karo-tx28/tx28.h
diff --git a/arch/arm/boards/karo-tx28/tx28-stk5.c b/arch/arm/boards/karo-tx28/tx28-stk5.c
index c9b947953b..56211d7a3a 100644
--- a/arch/arm/boards/karo-tx28/tx28-stk5.c
+++ b/arch/arm/boards/karo-tx28/tx28-stk5.c
@@ -22,6 +22,8 @@
#include <mach/iomux.h>
#include <generated/mach-types.h>
+#include "tx28.h"
+
static struct mxs_mci_platform_data mci_pdata = {
.caps = MMC_CAP_4_BIT_DATA,
.voltages = MMC_VDD_32_33 | MMC_VDD_33_34, /* fixed to 3.3 V */
diff --git a/arch/arm/boards/karo-tx28/tx28.c b/arch/arm/boards/karo-tx28/tx28.c
index 52f74b5f36..8bd2252410 100644
--- a/arch/arm/boards/karo-tx28/tx28.c
+++ b/arch/arm/boards/karo-tx28/tx28.c
@@ -15,6 +15,8 @@
#include <mach/iomux.h>
#include <asm/mmu.h>
+#include "tx28.h"
+
/* setup the CPU card internal signals */
static const uint32_t tx28_pad_setup[] = {
/* NAND interface */
@@ -61,8 +63,6 @@ static const uint32_t tx28_pad_setup[] = {
};
-extern void base_board_init(void);
-
static int tx28_devices_init(void)
{
int i;
diff --git a/arch/arm/boards/karo-tx28/tx28.h b/arch/arm/boards/karo-tx28/tx28.h
new file mode 100644
index 0000000000..5fb1e13412
--- /dev/null
+++ b/arch/arm/boards/karo-tx28/tx28.h
@@ -0,0 +1,3 @@
+
+void base_board_init(void);
+
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 05/10] ARM: tegra20-colibri-iris: drop regulators node
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
` (3 preceding siblings ...)
2020-09-15 12:25 ` [PATCH 04/10] ARM: tx28: provide header file with function prototype Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
2020-09-15 12:25 ` [PATCH 06/10] ARM: versatile: Remove unused function Sascha Hauer
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
Grouping the fixed regulators in an extra regulators node is deprecated.
Move the regulators up one level and drop the reg properties to avoid
dtc warnings.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/dts/tegra20-colibri-iris.dts | 36 ++++++++++++---------------
1 file changed, 16 insertions(+), 20 deletions(-)
diff --git a/arch/arm/dts/tegra20-colibri-iris.dts b/arch/arm/dts/tegra20-colibri-iris.dts
index 9c615816ca..da5ef7a7e7 100644
--- a/arch/arm/dts/tegra20-colibri-iris.dts
+++ b/arch/arm/dts/tegra20-colibri-iris.dts
@@ -75,26 +75,22 @@
vqmmc-supply = <&vcc_sd_reg>;
};
- regulators {
- regulator@0 {
- compatible = "regulator-fixed";
- reg = <0>;
- regulator-name = "usb_host_vbus";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- regulator-boot-on;
- regulator-always-on;
- gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
- };
+ regulator_usb_host_vbus {
+ compatible = "regulator-fixed";
+ regulator-name = "usb_host_vbus";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ regulator-boot-on;
+ regulator-always-on;
+ gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_HIGH>;
+ };
- vcc_sd_reg: regulator@1 {
- compatible = "regulator-fixed";
- reg = <1>;
- regulator-name = "vcc_sd";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- regulator-boot-on;
- regulator-always-on;
- };
+ vcc_sd_reg: regulator_vcc_sd {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc_sd";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-boot-on;
+ regulator-always-on;
};
};
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 06/10] ARM: versatile: Remove unused function
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
` (4 preceding siblings ...)
2020-09-15 12:25 ` [PATCH 05/10] ARM: tegra20-colibri-iris: drop regulators node Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
2020-09-15 12:25 ` [PATCH 07/10] openrisc: Add missing includes Sascha Hauer
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
vpb_clk_create() is unused in the codebase. Remove it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/mach-versatile/core.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c
index 7c6e9523a2..006d4e7231 100644
--- a/arch/arm/mach-versatile/core.c
+++ b/arch/arm/mach-versatile/core.c
@@ -75,19 +75,6 @@ void clk_disable(struct clk *clk)
}
EXPORT_SYMBOL(clk_disable);
-/* Create a clock structure with the given name */
-int vpb_clk_create(struct clk *clk, const char *dev_id)
-{
- struct clk_lookup *clkdev;
-
- clkdev = clkdev_alloc(clk, NULL, dev_id);
- if (!clkdev)
- return -ENOMEM;
-
- clkdev_add(clkdev);
- return 0;
-}
-
/* 1Mhz / 256 */
#define TIMER_FREQ (1000000/256)
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 07/10] openrisc: Add missing includes
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
` (5 preceding siblings ...)
2020-09-15 12:25 ` [PATCH 06/10] ARM: versatile: Remove unused function Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
2020-09-15 12:25 ` [PATCH 08/10] openrisc: Make locally used functions static Sascha Hauer
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
Add missing includes to avoid -Wmissing-prototypes warnings.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/openrisc/cpu/cache.c | 1 +
arch/openrisc/cpu/exceptions.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/openrisc/cpu/cache.c b/arch/openrisc/cpu/cache.c
index 1da2380c03..db6403634a 100644
--- a/arch/openrisc/cpu/cache.c
+++ b/arch/openrisc/cpu/cache.c
@@ -17,6 +17,7 @@
#include <common.h>
#include <init.h>
#include <asm/system.h>
+#include <asm/cache.h>
void flush_dcache_range(unsigned long addr, unsigned long stop)
{
diff --git a/arch/openrisc/cpu/exceptions.c b/arch/openrisc/cpu/exceptions.c
index 4c52feb51c..c69ceafe80 100644
--- a/arch/openrisc/cpu/exceptions.c
+++ b/arch/openrisc/cpu/exceptions.c
@@ -16,6 +16,7 @@
#include <common.h>
#include <asm/system.h>
+#include <asm/openrisc_exc.h>
static const char * const excp_table[] = {
"Unknown exception",
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 08/10] openrisc: Make locally used functions static
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
` (6 preceding siblings ...)
2020-09-15 12:25 ` [PATCH 07/10] openrisc: Add missing includes Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
2020-09-15 12:25 ` [PATCH 09/10] scripts: tegra: Add missing include Sascha Hauer
2020-09-15 12:25 ` [PATCH 10/10] ARM: zync: Fix include path Sascha Hauer
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
Make only locally used functions static to avoid -Wmissing-prototypes
warnings.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/openrisc/cpu/cache.c | 2 +-
arch/openrisc/lib/cpuinfo.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/openrisc/cpu/cache.c b/arch/openrisc/cpu/cache.c
index db6403634a..a124d6612c 100644
--- a/arch/openrisc/cpu/cache.c
+++ b/arch/openrisc/cpu/cache.c
@@ -131,7 +131,7 @@ void icache_disable(void)
mtspr(SPR_SR, mfspr(SPR_SR) & ~SPR_SR_ICE);
}
-int cache_init(void)
+static int cache_init(void)
{
if (mfspr(SPR_UPR) & SPR_UPR_ICP) {
icache_disable();
diff --git a/arch/openrisc/lib/cpuinfo.c b/arch/openrisc/lib/cpuinfo.c
index 4c52a65421..d94178ea59 100644
--- a/arch/openrisc/lib/cpuinfo.c
+++ b/arch/openrisc/lib/cpuinfo.c
@@ -95,7 +95,7 @@ static void cpu_implementation(ulong vr2, char *string)
}
}
-int checkcpu(void)
+static int checkcpu(void)
{
ulong upr = mfspr(SPR_UPR);
ulong vr = mfspr(SPR_VR);
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 09/10] scripts: tegra: Add missing include
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
` (7 preceding siblings ...)
2020-09-15 12:25 ` [PATCH 08/10] openrisc: Make locally used functions static Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
2020-09-15 12:25 ` [PATCH 10/10] ARM: zync: Fix include path Sascha Hauer
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
Include context.h to get the prototypes for the functions defined in
context.c
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
scripts/tegra/context.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/tegra/context.c b/scripts/tegra/context.c
index 9d2fb27dc9..47e65d570b 100644
--- a/scripts/tegra/context.c
+++ b/scripts/tegra/context.c
@@ -17,6 +17,7 @@
#include "cbootimage.h"
#include "data_layout.h"
#include "set.h"
+#include "context.h"
void
cleanup_context(build_image_context *context)
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 10/10] ARM: zync: Fix include path
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
` (8 preceding siblings ...)
2020-09-15 12:25 ` [PATCH 09/10] scripts: tegra: Add missing include Sascha Hauer
@ 2020-09-15 12:25 ` Sascha Hauer
9 siblings, 0 replies; 11+ messages in thread
From: Sascha Hauer @ 2020-09-15 12:25 UTC (permalink / raw)
To: Barebox List
When building out of tree we must explicitly include an absolute path
starting with $(srctree) as a relative path would be relative to
$(objtree).
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
images/Makefile.zynq | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/images/Makefile.zynq b/images/Makefile.zynq
index 062496ac7d..b00e748697 100644
--- a/images/Makefile.zynq
+++ b/images/Makefile.zynq
@@ -3,7 +3,7 @@
#
zynqcfg_cpp_flags = -Wp,-MD,$(depfile) -nostdinc -x assembler-with-cpp \
- -I arch/arm/mach-zynq/include
+ -I $(srctree)/arch/arm/mach-zynq/include
zynqcfg-tmp = $(subst $(comma),_,$(dot-target).zynqcfg.tmp)
--
2.28.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-09-15 12:26 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15 12:25 [PATCH 00/10] Compiler warning fixes Sascha Hauer
2020-09-15 12:25 ` [PATCH 01/10] ARM: dts: beaglebone: Remove unnecessary tps65217.dtsi Sascha Hauer
2020-09-15 12:25 ` [PATCH 02/10] arm: Add prototypes for functions called from assembly Sascha Hauer
2020-09-15 12:25 ` [PATCH 03/10] openrisc: " Sascha Hauer
2020-09-15 12:25 ` [PATCH 04/10] ARM: tx28: provide header file with function prototype Sascha Hauer
2020-09-15 12:25 ` [PATCH 05/10] ARM: tegra20-colibri-iris: drop regulators node Sascha Hauer
2020-09-15 12:25 ` [PATCH 06/10] ARM: versatile: Remove unused function Sascha Hauer
2020-09-15 12:25 ` [PATCH 07/10] openrisc: Add missing includes Sascha Hauer
2020-09-15 12:25 ` [PATCH 08/10] openrisc: Make locally used functions static Sascha Hauer
2020-09-15 12:25 ` [PATCH 09/10] scripts: tegra: Add missing include Sascha Hauer
2020-09-15 12:25 ` [PATCH 10/10] ARM: zync: Fix include path Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox