Skip to content

Commit 24318ae

Browse files
committed
Merge tag 'sh-for-5.16' of git://git.libc.org/linux-sh
Pull arch/sh updates from Rich Felker. * tag 'sh-for-5.16' of git://git.libc.org/linux-sh: sh: pgtable-3level: Fix cast to pointer from integer of different size sh: fix READ/WRITE redefinition warnings sh: define __BIG_ENDIAN for math-emu sh: math-emu: drop unused functions sh: fix kconfig unmet dependency warning for FRAME_POINTER sh: Cleanup about SPARSE_IRQ sh: kdump: add some attribute to function maple: fix wrong return value of maple_bus_init(). sh: boot: avoid unneeded rebuilds under arch/sh/boot/compressed/ sh: boot: add intermediate vmlinux.bin* to targets instead of extra-y sh: boards: Fix the cacography in irq.c sh: check return code of request_irq sh: fix trivial misannotations
2 parents 6ea45c5 + 8518e69 commit 24318ae

File tree

21 files changed

+78
-180
lines changed

21 files changed

+78
-180
lines changed

arch/sh/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ config SUPERH
5656
select HAVE_STACKPROTECTOR
5757
select HAVE_SYSCALL_TRACEPOINTS
5858
select IRQ_FORCED_THREADING
59-
select MAY_HAVE_SPARSE_IRQ
6059
select MODULES_USE_ELF_RELA
6160
select NEED_SG_DMA_LENGTH
6261
select NO_DMA if !MMU && !DMA_COHERENT

arch/sh/Kconfig.debug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ config DUMP_CODE
5454

5555
config DWARF_UNWINDER
5656
bool "Enable the DWARF unwinder for stacktraces"
57+
depends on DEBUG_KERNEL
5758
select FRAME_POINTER
5859
default n
5960
help

arch/sh/boards/mach-landisk/irq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ enum {
2626
PCI_INTD, /* PCI int D */
2727
ATA, /* ATA */
2828
FATA, /* CF */
29-
POWER, /* Power swtich */
30-
BUTTON, /* Button swtich */
29+
POWER, /* Power switch */
30+
BUTTON, /* Button switch */
3131
};
3232

3333
/* Vectors for LANDISK */

arch/sh/boot/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ suffix-$(CONFIG_KERNEL_XZ) := xz
2727
suffix-$(CONFIG_KERNEL_LZO) := lzo
2828

2929
targets := zImage vmlinux.srec romImage uImage uImage.srec uImage.gz \
30-
uImage.bz2 uImage.lzma uImage.xz uImage.lzo uImage.bin
31-
extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma \
30+
uImage.bz2 uImage.lzma uImage.xz uImage.lzo uImage.bin \
31+
vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma \
3232
vmlinux.bin.xz vmlinux.bin.lzo
3333
subdir- := compressed romimage
3434

arch/sh/boot/compressed/.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
ashiftrt.S
3-
ashldi3.c
4-
ashlsi3.S
5-
ashrsi3.S
6-
lshrsi3.S
72
vmlinux.bin.*

arch/sh/boot/compressed/Makefile

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@
55
# create a compressed vmlinux image from the original vmlinux
66
#
77

8-
targets := vmlinux vmlinux.bin vmlinux.bin.gz \
9-
vmlinux.bin.bz2 vmlinux.bin.lzma \
10-
vmlinux.bin.xz vmlinux.bin.lzo \
11-
head_32.o misc.o piggy.o
8+
OBJECTS := head_32.o misc.o cache.o piggy.o \
9+
ashiftrt.o ashldi3.o ashrsi3.o ashlsi3.o lshrsi3.o
10+
11+
# These were previously generated files. When you are building the kernel
12+
# with O=, make sure to remove the stale files in the output tree. Otherwise,
13+
# the build system wrongly compiles the stale ones.
14+
ifdef building_out_of_srctree
15+
$(shell rm -f $(addprefix $(obj)/, ashiftrt.S ashldi3.c ashrsi3.S ashlsi3.S lshrsi3.S))
16+
endif
1217

13-
OBJECTS = $(obj)/head_32.o $(obj)/misc.o $(obj)/cache.o
18+
targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \
19+
vmlinux.bin.lzma vmlinux.bin.xz vmlinux.bin.lzo $(OBJECTS)
1420

1521
GCOV_PROFILE := n
1622

@@ -33,21 +39,9 @@ ccflags-remove-$(CONFIG_MCOUNT) += -pg
3339
LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(IMAGE_OFFSET) -e startup \
3440
-T $(obj)/../../kernel/vmlinux.lds
3541

36-
#
37-
# Pull in the necessary libgcc bits from the in-kernel implementation.
38-
#
39-
lib1funcs-y := ashiftrt.S ashldi3.c ashrsi3.S ashlsi3.S lshrsi3.S
40-
lib1funcs-obj := \
41-
$(addsuffix .o, $(basename $(addprefix $(obj)/, $(lib1funcs-y))))
42-
43-
lib1funcs-dir := $(srctree)/arch/$(SRCARCH)/lib
44-
45-
KBUILD_CFLAGS += -I$(lib1funcs-dir) -DDISABLE_BRANCH_PROFILING
46-
47-
$(addprefix $(obj)/,$(lib1funcs-y)): $(obj)/%: $(lib1funcs-dir)/% FORCE
48-
$(call cmd,shipped)
42+
KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
4943

50-
$(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(lib1funcs-obj) FORCE
44+
$(obj)/vmlinux: $(addprefix $(obj)/, $(OBJECTS)) FORCE
5145
$(call if_changed,ld)
5246

5347
$(obj)/vmlinux.bin: vmlinux FORCE

arch/sh/boot/compressed/ashiftrt.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
#include "../../lib/ashiftrt.S"

arch/sh/boot/compressed/ashldi3.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
#include "../../lib/ashldi3.c"

arch/sh/boot/compressed/ashlsi3.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
#include "../../lib/ashlsi3.S"

arch/sh/boot/compressed/ashrsi3.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
#include "../../lib/ashrsi3.S"

0 commit comments

Comments
 (0)