From 5ee7fb90c54b4f25cc5a68e45ef10a007f0a5442 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:23:30 +0100 Subject: ARM: interrupts: Avoid missing prototypes warning Add prototypes for various functions. Since these are called from assembly add the prototype in the C file itself. Signed-off-by: Sascha Hauer --- arch/arm/cpu/interrupts.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch') diff --git a/arch/arm/cpu/interrupts.c b/arch/arm/cpu/interrupts.c index 73f023bd71..b9b91f3153 100644 --- a/arch/arm/cpu/interrupts.c +++ b/arch/arm/cpu/interrupts.c @@ -28,6 +28,14 @@ #include #include +/* Avoid missing prototype warning, called from assembly */ +void do_undefined_instruction (struct pt_regs *pt_regs); +void do_software_interrupt (struct pt_regs *pt_regs); +void do_prefetch_abort (struct pt_regs *pt_regs); +void do_data_abort (struct pt_regs *pt_regs); +void do_fiq (struct pt_regs *pt_regs); +void do_irq (struct pt_regs *pt_regs); + /** * Display current register set content * @param[in] regs Guess what -- cgit v1.2.3 From 6621b8916a557a8227c912507ce6e5605235db6b Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:24:40 +0100 Subject: ARM: psci: Avoid missing prototypes warning Avoid missing prototypes warning by adding prototypes. Since these functions are called from assembly add the prototypes to the C file directly. Signed-off-by: Sascha Hauer --- arch/arm/cpu/psci.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch') diff --git a/arch/arm/cpu/psci.c b/arch/arm/cpu/psci.c index 1c8197aa3f..c4c8c64cbe 100644 --- a/arch/arm/cpu/psci.c +++ b/arch/arm/cpu/psci.c @@ -156,6 +156,10 @@ static unsigned long psci_system_reset(void) restart_machine(); } +/* Avoid missing prototype warning, called from assembly */ +void psci_entry(u32 r0, u32 r1, u32 r2, u32 r3, u32 r4, u32 r5, u32 r6, + struct arm_smccc_res *res); + void psci_entry(u32 r0, u32 r1, u32 r2, u32 r3, u32 r4, u32 r5, u32 r6, struct arm_smccc_res *res) { @@ -209,6 +213,9 @@ static int of_psci_fixup(struct device_node *root, void *unused) return 0; } +/* Avoid missing prototype warning, called from assembly */ +int psci_cpu_entry_c(void); + int psci_cpu_entry_c(void) { void (*entry)(u32 context); -- cgit v1.2.3 From cb9a692b7a3f800846871288784e7a930ab0d3c8 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:27:06 +0100 Subject: ARM: sm: Make locally used function static To avoid missing prototype warning. Signed-off-by: Sascha Hauer --- arch/arm/cpu/sm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch') diff --git a/arch/arm/cpu/sm.c b/arch/arm/cpu/sm.c index 6fad30adab..633c9e8c83 100644 --- a/arch/arm/cpu/sm.c +++ b/arch/arm/cpu/sm.c @@ -94,7 +94,7 @@ static unsigned long get_gicc_base_address(void) #define GICD_IGROUPRn 0x0080 -int armv7_init_nonsec(void) +static int armv7_init_nonsec(void) { void __iomem *gicd = IOMEM(get_gicd_base_address()); unsigned itlinesnr, i; -- cgit v1.2.3 From dbab91cbe825c433f752e76eb8e109da4b8fee53 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:28:59 +0100 Subject: ARM: start: Add missing include entry.h provides prototypes for some functions, so include it. Signed-off-by: Sascha Hauer --- arch/arm/cpu/start.c | 2 ++ arch/arm/cpu/uncompress.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'arch') diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c index a79d64eaa6..540480d04e 100644 --- a/arch/arm/cpu/start.c +++ b/arch/arm/cpu/start.c @@ -34,6 +34,8 @@ #include +#include "entry.h" + unsigned long arm_stack_top; static unsigned long arm_barebox_size; static void *barebox_boarddata; diff --git a/arch/arm/cpu/uncompress.c b/arch/arm/cpu/uncompress.c index 048bca0c95..21d72c58b2 100644 --- a/arch/arm/cpu/uncompress.c +++ b/arch/arm/cpu/uncompress.c @@ -34,6 +34,8 @@ #include +#include "entry.h" + unsigned long free_mem_ptr; unsigned long free_mem_end_ptr; -- cgit v1.2.3 From 1af3c82f731ae62a28e8eebf0996fb36db565d09 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:29:52 +0100 Subject: ARM: start: Add missing prototype start() has no prototype, add it. Since it is not called from anywhere in the barebox binary just add the prototype to the C file. Signed-off-by: Sascha Hauer --- arch/arm/cpu/start.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c index 540480d04e..0b3722e31d 100644 --- a/arch/arm/cpu/start.c +++ b/arch/arm/cpu/start.c @@ -239,6 +239,8 @@ void NAKED __section(.text_entry) start(void) } #else + +void start(unsigned long membase, unsigned long memsize, void *boarddata); /* * First function in the uncompressed image. We get here from * the pbl. The stack already has been set up by the pbl. -- cgit v1.2.3 From 20ac6a77ba6beb9f4d23ae1d8a854b7764830748 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:30:45 +0100 Subject: ARM: Add missing prototype for arm_mem_ramoops_get() To avoid missing prototype warning. Signed-off-by: Sascha Hauer --- arch/arm/include/asm/barebox-arm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h index c0c749ae34..e065b479e3 100644 --- a/arch/arm/include/asm/barebox-arm.h +++ b/arch/arm/include/asm/barebox-arm.h @@ -85,6 +85,8 @@ static inline void boarddata_create(void *adr, u32 machine) u32 barebox_arm_machine(void); +unsigned long arm_mem_ramoops_get(void); + struct barebox_arm_boarddata_compressed_dtb { #define BAREBOX_ARM_BOARDDATA_COMPRESSED_DTB_MAGIC 0x7b66bcbd u32 magic; -- cgit v1.2.3 From 70e4df9e6929ee195244b70d6db1273988b7dc22 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:32:07 +0100 Subject: ARM: i.MX50: Make locally used function static imx50_init_lowlevel_early() is only used locally, so make it static. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/imx50.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch') diff --git a/arch/arm/mach-imx/imx50.c b/arch/arm/mach-imx/imx50.c index 4fd5481670..b76e3794e3 100644 --- a/arch/arm/mach-imx/imx50.c +++ b/arch/arm/mach-imx/imx50.c @@ -86,7 +86,7 @@ int imx50_devices_init(void) return 0; } -void imx50_init_lowlevel_early(unsigned int cpufreq_mhz) +static void imx50_init_lowlevel_early(unsigned int cpufreq_mhz) { void __iomem *ccm = IOMEM(MX50_CCM_BASE_ADDR); u32 r; -- cgit v1.2.3 From 53079c5bfc19872961adeb9f81c7a05290990ce8 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:33:07 +0100 Subject: ARM: i.MX27: Add missing prototype for imx27_get_boot_source() imx27_get_boot_source() is exported, so add a prototype for it. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/include/mach/generic.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch') diff --git a/arch/arm/mach-imx/include/mach/generic.h b/arch/arm/mach-imx/include/mach/generic.h index dc537941a7..be58da4da2 100644 --- a/arch/arm/mach-imx/include/mach/generic.h +++ b/arch/arm/mach-imx/include/mach/generic.h @@ -19,6 +19,7 @@ void vf610_boot_save_loc(void); void imx8_boot_save_loc(void); void imx25_get_boot_source(enum bootsource *src, int *instance); +void imx27_get_boot_source(enum bootsource *src, int *instance); void imx35_get_boot_source(enum bootsource *src, int *instance); void imx51_get_boot_source(enum bootsource *src, int *instance); void imx53_get_boot_source(enum bootsource *src, int *instance); -- cgit v1.2.3 From 14690f5364d82a14bf94388a7ede3d1068522765 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:34:11 +0100 Subject: ARM: i.MX: add missing include mach/imx-nand.h provides the prototype for imx_nand_set_layout() which this file implements, so include the header file. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/nand.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch') diff --git a/arch/arm/mach-imx/nand.c b/arch/arm/mach-imx/nand.c index f298a36046..7574fe80b2 100644 --- a/arch/arm/mach-imx/nand.c +++ b/arch/arm/mach-imx/nand.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #define RCSR_NFC_FMS (1 << 8) -- cgit v1.2.3 From 88fe2471d5021f17ad3ba9021c26b0a6f05f460b Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 10:35:10 +0100 Subject: ARM: i.MX6 usb: Add missing include include header file providing the protype for functions that usb-imx6.c implements. Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/usb-imx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch') diff --git a/arch/arm/mach-imx/usb-imx6.c b/arch/arm/mach-imx/usb-imx6.c index 5e3df10e44..4236bcb772 100644 --- a/arch/arm/mach-imx/usb-imx6.c +++ b/arch/arm/mach-imx/usb-imx6.c @@ -20,6 +20,7 @@ #include #include #include +#include #define SET 0x4 #define CLR 0x8 @@ -33,7 +34,6 @@ #define USB_UH1_USBCMD 0x340 #define USB_CMD_RUNSTOP (1 << 0) -#define USB_CMD_RESET (1 << 1) #define USB_OVER_CUR_DIS (1 << 7) #define USBPHY_CTRL_SFTRST (1 << 31) -- cgit v1.2.3 From 86c0c27585f07d40e9a96d0bef517b742be0a014 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 19 Nov 2018 09:25:46 +0100 Subject: ARM: start: Add missing prototype Signed-off-by: Sascha Hauer --- arch/arm/cpu/start.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/arm/cpu/start.c b/arch/arm/cpu/start.c index 0b3722e31d..768fa9e1b2 100644 --- a/arch/arm/cpu/start.c +++ b/arch/arm/cpu/start.c @@ -233,6 +233,8 @@ __noreturn void barebox_non_pbl_start(unsigned long membase, #ifndef CONFIG_PBL_IMAGE +void start(void); + void NAKED __section(.text_entry) start(void) { barebox_arm_head(); -- cgit v1.2.3 From 1669abb89015f318ebcc44975d6f6db7094b7566 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 19 Nov 2018 09:26:05 +0100 Subject: ARM: samsung: remove unused function s3c24_get_uclk() is unused, remove it. Signed-off-by: Sascha Hauer --- arch/arm/mach-samsung/clocks-s3c24xx.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'arch') diff --git a/arch/arm/mach-samsung/clocks-s3c24xx.c b/arch/arm/mach-samsung/clocks-s3c24xx.c index 13e68678e1..a958352556 100644 --- a/arch/arm/mach-samsung/clocks-s3c24xx.c +++ b/arch/arm/mach-samsung/clocks-s3c24xx.c @@ -108,15 +108,6 @@ uint32_t s3c_get_pclk(void) return p_clk; } -/** - * Calculate the UCLK frequency used by the USB host device - * @return Current frequency in Hz - */ -uint32_t s3c24_get_uclk(void) -{ - return s3c_get_upllclk(); -} - /** * Return correct UART frequency based on the UCON register */ -- cgit v1.2.3 From a77a74399c290cc8b1967c8cc22f5572489b6149 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 19 Nov 2018 09:26:39 +0100 Subject: ARM: samsung: make locally used function static Signed-off-by: Sascha Hauer --- arch/arm/mach-samsung/clocks-s3c24xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch') diff --git a/arch/arm/mach-samsung/clocks-s3c24xx.c b/arch/arm/mach-samsung/clocks-s3c24xx.c index a958352556..34b38f345c 100644 --- a/arch/arm/mach-samsung/clocks-s3c24xx.c +++ b/arch/arm/mach-samsung/clocks-s3c24xx.c @@ -128,7 +128,7 @@ unsigned s3c_get_uart_clk(unsigned src) /** * Show the user the current clock settings */ -int s3c24xx_dump_clocks(void) +static int s3c24xx_dump_clocks(void) { printf("refclk: %7d kHz\n", S3C24XX_CLOCK_REFERENCE / 1000); printf("mpll: %7d kHz\n", s3c_get_mpllclk() / 1000); -- cgit v1.2.3 From 6a864d6d6cad849571c10502f05c80f7c6b1af07 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 19 Nov 2018 09:26:55 +0100 Subject: ARM: samsung: provide prototype for nand_boot() Signed-off-by: Sascha Hauer --- arch/arm/mach-samsung/include/mach/s3c24xx-nand.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/arm/mach-samsung/include/mach/s3c24xx-nand.h b/arch/arm/mach-samsung/include/mach/s3c24xx-nand.h index f9c6d91b5b..52642ee81f 100644 --- a/arch/arm/mach-samsung/include/mach/s3c24xx-nand.h +++ b/arch/arm/mach-samsung/include/mach/s3c24xx-nand.h @@ -52,4 +52,6 @@ struct s3c24x0_nand_platform_data { * @brief Basic declaration to use the s3c24x0 NAND driver */ +void nand_boot(void); + #endif /* MACH_S3C24XX_NAND_H */ -- cgit v1.2.3 From 96aff8ed4c2493bcc9b15fe6969259b5314d4628 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 19 Nov 2018 09:28:05 +0100 Subject: ARM: samsung: Add missing include Signed-off-by: Sascha Hauer --- arch/arm/boards/a9m2440/a9m2410dev.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/arm/boards/a9m2440/a9m2410dev.c b/arch/arm/boards/a9m2440/a9m2410dev.c index f12a0b9652..b115c4a954 100644 --- a/arch/arm/boards/a9m2440/a9m2410dev.c +++ b/arch/arm/boards/a9m2440/a9m2410dev.c @@ -28,6 +28,8 @@ #include #include +#include "baseboards.h" + /** * Initialize the CPU to be able to work with the a9m2410dev evaluation board */ -- cgit v1.2.3 From cac6573ddf5865fae25a256d9066699a0fd8b364 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 19 Nov 2018 09:43:10 +0100 Subject: ARM: omap: Add missing includes Include header files that provide the prototypes for functions implemented in that C files. Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/am33xx_bbu_emmc.c | 1 + arch/arm/mach-omap/am33xx_bbu_nand.c | 1 + arch/arm/mach-omap/am33xx_bbu_spi_mlo.c | 1 + arch/arm/mach-omap/am33xx_clock.c | 1 + 4 files changed, 4 insertions(+) (limited to 'arch') diff --git a/arch/arm/mach-omap/am33xx_bbu_emmc.c b/arch/arm/mach-omap/am33xx_bbu_emmc.c index 1fd7222ddc..29e13de778 100644 --- a/arch/arm/mach-omap/am33xx_bbu_emmc.c +++ b/arch/arm/mach-omap/am33xx_bbu_emmc.c @@ -18,6 +18,7 @@ #include #include #include +#include #define PART_TABLE_SIZE 66 #define PART_TABLE_OFFSET 0x1BE diff --git a/arch/arm/mach-omap/am33xx_bbu_nand.c b/arch/arm/mach-omap/am33xx_bbu_nand.c index 6fc6e7e40f..4c1a28d37e 100644 --- a/arch/arm/mach-omap/am33xx_bbu_nand.c +++ b/arch/arm/mach-omap/am33xx_bbu_nand.c @@ -22,6 +22,7 @@ #include #include #include +#include struct nand_bbu_handler { struct bbu_handler bbu_handler; diff --git a/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c b/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c index 03477dbaf1..7d2ef1f0f2 100644 --- a/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c +++ b/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c @@ -20,6 +20,7 @@ #include #include #include +#include /* * AM35xx, AM33xx chips use big endian MLO for SPI NOR flash diff --git a/arch/arm/mach-omap/am33xx_clock.c b/arch/arm/mach-omap/am33xx_clock.c index ad735cb216..e63e93601e 100644 --- a/arch/arm/mach-omap/am33xx_clock.c +++ b/arch/arm/mach-omap/am33xx_clock.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #define PRCM_MOD_EN 0x2 -- cgit v1.2.3 From 01b9c1d1b0e673bf6444e4a0a01b8126fef9ce68 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 9 Nov 2018 09:47:47 +0100 Subject: Make: Add -Wmissing-prototypes -Wmissing-prototypes is a useful warning, so add it to the build. With this we can detect conflicting function prototypes. When a file implements a function but doesn't include the header file which provides the prototype for it then conflicting prototypes would go unnoticed without this warning. MIPS already had that warning, so we can remove it from the MIPS Makefile. Signed-off-by: Sascha Hauer --- Makefile | 2 +- arch/mips/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'arch') diff --git a/Makefile b/Makefile index 10e1b74a6d..21f39c03ba 100644 --- a/Makefile +++ b/Makefile @@ -307,7 +307,7 @@ CPPFLAGS := -D__KERNEL__ -D__BAREBOX__ $(LINUXINCLUDE) -fno-builtin -ffre CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -Werror-implicit-function-declaration \ - -fno-strict-aliasing -fno-common -Os -pipe + -fno-strict-aliasing -fno-common -Os -pipe -Wmissing-prototypes AFLAGS := -D__ASSEMBLY__ LDFLAGS_barebox := -Map barebox.map diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 3342e0eafd..6338dc174d 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -12,7 +12,7 @@ endif CPPFLAGS += -D__MIPS__ -fno-strict-aliasing -fno-merge-constants cflags-y += -G 0 -mno-abicalls -fno-pic -pipe -cflags-y += -Wall -Wmissing-prototypes -Wstrict-prototypes \ +cflags-y += -Wall -Wstrict-prototypes \ -Wno-uninitialized -Wno-format -Wno-main ifdef CONFIG_32BIT -- cgit v1.2.3 From 568641ec02f0ccd8523e01c0c705c65739abab9b Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 30 Nov 2018 14:12:58 +0100 Subject: ARM: mmu64: include dma.h dma.h provides the prototypes for the different dma_alloc_* functions, so we should include it to make sure the prototypes are consistent. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- arch/arm/cpu/mmu_64.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch') diff --git a/arch/arm/cpu/mmu_64.c b/arch/arm/cpu/mmu_64.c index 69d1b20718..99ddd5a441 100644 --- a/arch/arm/cpu/mmu_64.c +++ b/arch/arm/cpu/mmu_64.c @@ -19,6 +19,7 @@ #define pr_fmt(fmt) "mmu: " fmt #include +#include #include #include #include -- cgit v1.2.3 From f9dcdf637a6eb292e9a6d61758a19d6e82100bc7 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 30 Nov 2018 14:12:59 +0100 Subject: ARM: nxp-imx8mq-evk: add missing prototype for nxp_imx8mq_evk_ddr_cfg_phy Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- arch/arm/boards/nxp-imx8mq-evk/ddr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch') diff --git a/arch/arm/boards/nxp-imx8mq-evk/ddr.h b/arch/arm/boards/nxp-imx8mq-evk/ddr.h index 2c25e3f98c..8f494ae7a2 100644 --- a/arch/arm/boards/nxp-imx8mq-evk/ddr.h +++ b/arch/arm/boards/nxp-imx8mq-evk/ddr.h @@ -19,6 +19,7 @@ #define ddr_cfg_phy nxp_imx8mq_evk_ddr_cfg_phy void nxp_imx8mq_evk_ddr_init(void); +void nxp_imx8mq_evk_ddr_cfg_phy(void); #define FW_1D_IMAGE imx_lpddr4_pmu_train_1d_imem_bin, \ imx_lpddr4_pmu_train_1d_dmem_bin -- cgit v1.2.3 From b61709db83bfa737f8eaa5a285bdf57b62bc68e2 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 30 Nov 2018 14:13:00 +0100 Subject: ARM: ptrace: add mssing show_regs prototype in aarch64 path Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- arch/arm/include/asm/ptrace.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/arm/include/asm/ptrace.h b/arch/arm/include/asm/ptrace.h index 7fbd8d9b6f..042e0cef70 100644 --- a/arch/arm/include/asm/ptrace.h +++ b/arch/arm/include/asm/ptrace.h @@ -23,6 +23,8 @@ struct pt_regs { unsigned long regs[31]; }; +void show_regs(struct pt_regs *); + #endif /* __ASSEMBLY__ */ #else /* CONFIG_CPU_64 */ -- cgit v1.2.3 From 7bd0eca21f25d6cbc1c0ca9971c3ff992dc721b9 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 30 Nov 2018 14:13:01 +0100 Subject: ARM: interrupts64: add missing prototypes Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- arch/arm/cpu/interrupts_64.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arch') diff --git a/arch/arm/cpu/interrupts_64.c b/arch/arm/cpu/interrupts_64.c index f6f0c9d095..e8475d2e47 100644 --- a/arch/arm/cpu/interrupts_64.c +++ b/arch/arm/cpu/interrupts_64.c @@ -25,6 +25,16 @@ #include #include +/* Avoid missing prototype warning, called from assembly */ +void do_bad_sync (struct pt_regs *pt_regs); +void do_bad_irq (struct pt_regs *pt_regs); +void do_bad_fiq (struct pt_regs *pt_regs); +void do_bad_error (struct pt_regs *pt_regs); +void do_fiq (struct pt_regs *pt_regs); +void do_irq (struct pt_regs *pt_regs); +void do_error (struct pt_regs *pt_regs); +void do_sync(struct pt_regs *pt_regs, unsigned int esr, unsigned long far); + static const char *esr_class_str[] = { [0 ... ESR_ELx_EC_MAX] = "UNRECOGNIZED EC", [ESR_ELx_EC_UNKNOWN] = "Unknown/Uncategorized", -- cgit v1.2.3 From 78eb1a49cbb2110cc8ec88970bcb65448d522847 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 30 Nov 2018 14:13:02 +0100 Subject: ARM: add prototype for mmu_early_disable This is only provided by aarch64 for now and not actually used, but raher than deleting this potentially useful chunk of code, just provide the prototype to shut up the warning. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- arch/arm/include/asm/mmu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch') diff --git a/arch/arm/include/asm/mmu.h b/arch/arm/include/asm/mmu.h index 99833ac5b4..417808bfcc 100644 --- a/arch/arm/include/asm/mmu.h +++ b/arch/arm/include/asm/mmu.h @@ -56,5 +56,6 @@ void __dma_inv_range(unsigned long, unsigned long); void mmu_early_enable(unsigned long membase, unsigned long memsize, unsigned long ttb); +void mmu_early_disable(void); #endif /* __ASM_MMU_H */ -- cgit v1.2.3 From 1ef8adb77b36153b996c09294310d1b662291ba5 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 30 Nov 2018 14:13:03 +0100 Subject: ARM64: backtrace: fix missing prototypes Include header for unwind_backtrace prototype and mark dump_backtrace_entry as static. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- arch/arm/lib64/stacktrace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch') diff --git a/arch/arm/lib64/stacktrace.c b/arch/arm/lib64/stacktrace.c index b8352c1454..4391188446 100644 --- a/arch/arm/lib64/stacktrace.c +++ b/arch/arm/lib64/stacktrace.c @@ -11,6 +11,7 @@ #include #include +#include #define THREAD_SIZE 16384 @@ -45,7 +46,7 @@ int unwind_frame(struct stackframe *frame) return 0; } -void dump_backtrace_entry(unsigned long where, unsigned long from) +static void dump_backtrace_entry(unsigned long where, unsigned long from) { #ifdef CONFIG_KALLSYMS printf("[<%08lx>] (%pS) from [<%08lx>] (%pS)\n", where, (void *)where, from, (void *)from); -- cgit v1.2.3