ARM: rpc: ecard: use designated intializers
Subsystems (3)
PATCH 1/3 ARM: rpc: ecard: use designated intializers
From: Arnd Bergmann <[email protected]>
gcc-8 warns about the use of positional initializers:
arch/arm/mach-rpc/ecard.c:414:2: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
ecard_def_irq_enable,
Change to the designated initializer used elsewhere in the kernel.
--- arch/arm/mach-rpc/ecard.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm/mach-rpc/ecard.c +6 -6
@@ -411,12 +411,12 @@ static int ecard_def_fiq_pending(ecard_t *ec) }static expansioncard_ops_t ecard_default_ops = { - ecard_def_irq_enable, - ecard_def_irq_disable, - ecard_def_irq_pending, - ecard_def_fiq_enable, - ecard_def_fiq_disable, - ecard_def_fiq_pending + .irqenable = ecard_def_irq_enable, + .irqdisable = ecard_def_irq_disable, + .irqpending = ecard_def_irq_pending, + .fiqenable = ecard_def_fiq_enable, + .fiqdisable = ecard_def_fiq_disable, + .fiqpending = ecard_def_fiq_pending };/*
Signature · 7 lines
2.29.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 2/3 ARM: rpc: ecard: fix unused-function warning
From: Arnd Bergmann <[email protected]>
When CONFIG_PROC_FS is disabled, gcc warns about an unused function:
arch/arm/mach-rpc/ecard.c:650:12: error: unused function 'ecard_devices_proc_show' [-Werror,-Wunused-function]
Mark it as __maybe_unused to avoid adding an extra #ifdef.
--- arch/arm/mach-rpc/ecard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rpc/ecard.c +1 -1
@@ -647,7 +647,7 @@ static int ecard_prints(struct seq_file *m, ecard_t *ec)return 0 ; } -static int ecard_devices_proc_show (struct seq_file *m,void *v) +static int __maybe_unused ecard_devices_proc_show (struct seq_file *m,void *v) {ecard_t *ec = cards;
Signature · 7 lines
2.29.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 3/3 ARM: rpc: remove unused io-acorn.S
In reply to Arnd BergmannFrom: Arnd Bergmann <[email protected]>
When CONFIG_PRINTK is disabled, this causes a link failure:
arm-linux-gnueabi-ld: arch/arm/mach-rpc/io-acorn.o: in function `outsl':
(.text+0x38): undefined reference to `_printk'
It appears like these functions have never actually had any callers themselves and are not declared in a header, but were copied from an early version of the ebsa110 platform.
--- arch/arm/mach-rpc/Makefile | 2 +- arch/arm/mach-rpc/io-acorn.S | 28 ---------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 arch/arm/mach-rpc/io-acorn.S
arch/arm/mach-rpc/Makefile +1 -1
@@ -5,5 +5,5 @@ # Object file lists. -obj-y :=dma.o ecard.o ecard-loader.o fiq.o floppydma.o io-acorn.o irq.o \ +obj-y :=dma.o ecard.o ecard-loader.o fiq.o floppydma.o irq.o \ riscpc.o time.o
arch/arm/mach-rpc/io-acorn.S deleted +0 -28
@@ -1,28 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * linux/arch/arm/lib/io-acorn.S - * - * Copyright (C) 1995, 1996 Russell King - * - * 27/03/03 Ian Molton Clean up CONFIG_CPU - */ -#include <linux/linkage.h> -#include <linux/kern_levels.h> -#include <asm/assembler.h> - - .text - .align - -.Liosl_warning: - .ascii KERN_WARNING "insl/outsl not implemented, called from %08lX\0" - .align - -/* - * These make no sense on Acorn machines. - * Print a warning message. - */ -ENTRY(insl) -ENTRY(outsl) - adr r0, .Liosl_warning - mov r1, lr - b _printk
Signature · 7 lines
2.29.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel