Skip to content

Commit d0cc7ec

Browse files
committed
Merge tag 'microblaze-v5.13' of git://git.monstr.eu/linux-2.6-microblaze
Pull Microblaze updates from Michal Simek: "No new features, just about cleaning up some code and moving to generic syscall solution used by other architectures: - Switch to generic syscall scripts - Some small fixes" * tag 'microblaze-v5.13' of git://git.monstr.eu/linux-2.6-microblaze: microblaze: add 'fallthrough' to memcpy/memset/memmove microblaze: Fix a typo microblaze: tag highmem_setup() with __meminit microblaze: syscalls: switch to generic syscallhdr.sh microblaze: syscalls: switch to generic syscalltbl.sh
2 parents 77d5133 + 47de447 commit d0cc7ec

File tree

9 files changed

+18
-82
lines changed

9 files changed

+18
-82
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
22

3-
#define __SYSCALL(nr, entry, nargs) .long entry
3+
#define __SYSCALL(nr, entry) .long entry
44
ENTRY(sys_call_table)
55
#include <asm/syscall_table.h>
6-
#undef __SYSCALL

arch/microblaze/kernel/syscalls/Makefile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,14 @@ _dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
66
$(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)')
77

88
syscall := $(src)/syscall.tbl
9-
syshdr := $(srctree)/$(src)/syscallhdr.sh
10-
systbl := $(srctree)/$(src)/syscalltbl.sh
9+
syshdr := $(srctree)/scripts/syscallhdr.sh
10+
systbl := $(srctree)/scripts/syscalltbl.sh
1111

1212
quiet_cmd_syshdr = SYSHDR $@
13-
cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@' \
14-
'$(syshdr_abis_$(basetarget))' \
15-
'$(syshdr_pfx_$(basetarget))' \
16-
'$(syshdr_offset_$(basetarget))'
13+
cmd_syshdr = $(CONFIG_SHELL) $(syshdr) --emit-nr $< $@
1714

1815
quiet_cmd_systbl = SYSTBL $@
19-
cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@' \
20-
'$(systbl_abis_$(basetarget))' \
21-
'$(systbl_abi_$(basetarget))' \
22-
'$(systbl_offset_$(basetarget))'
16+
cmd_systbl = $(CONFIG_SHELL) $(systbl) $< $@
2317

2418
$(uapi)/unistd_32.h: $(syscall) $(syshdr) FORCE
2519
$(call if_changed,syshdr)

arch/microblaze/kernel/syscalls/syscallhdr.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

arch/microblaze/kernel/syscalls/syscalltbl.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

arch/microblaze/lib/memcpy.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ void *memcpy(void *v_dst, const void *v_src, __kernel_size_t c)
6868
case 1:
6969
*dst++ = *src++;
7070
--c;
71+
fallthrough;
7172
case 2:
7273
*dst++ = *src++;
7374
--c;
75+
fallthrough;
7476
case 3:
7577
*dst++ = *src++;
7678
--c;
@@ -176,8 +178,10 @@ void *memcpy(void *v_dst, const void *v_src, __kernel_size_t c)
176178
switch (c) {
177179
case 3:
178180
*dst++ = *src++;
181+
fallthrough;
179182
case 2:
180183
*dst++ = *src++;
184+
fallthrough;
181185
case 1:
182186
*dst++ = *src++;
183187
}

arch/microblaze/lib/memmove.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ void *memmove(void *v_dst, const void *v_src, __kernel_size_t c)
9090
case 3:
9191
*--dst = *--src;
9292
--c;
93+
fallthrough;
9394
case 2:
9495
*--dst = *--src;
9596
--c;
97+
fallthrough;
9698
case 1:
9799
*--dst = *--src;
98100
--c;
@@ -201,10 +203,13 @@ void *memmove(void *v_dst, const void *v_src, __kernel_size_t c)
201203
switch (c) {
202204
case 4:
203205
*--dst = *--src;
206+
fallthrough;
204207
case 3:
205208
*--dst = *--src;
209+
fallthrough;
206210
case 2:
207211
*--dst = *--src;
212+
fallthrough;
208213
case 1:
209214
*--dst = *--src;
210215
}

arch/microblaze/lib/memset.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ void *memset(void *v_src, int c, __kernel_size_t n)
6969
case 1:
7070
*src++ = c;
7171
--n;
72+
fallthrough;
7273
case 2:
7374
*src++ = c;
7475
--n;
76+
fallthrough;
7577
case 3:
7678
*src++ = c;
7779
--n;

arch/microblaze/lib/uaccess_old.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ w2: sw r4, r5, r3
188188
.text
189189

190190
.align 4 /* Alignment is important to keep icache happy */
191-
page: /* Create room on stack and save registers for storign values */
191+
page: /* Create room on stack and save registers for storing values */
192192
addik r1, r1, -40
193193
swi r5, r1, 0
194194
swi r6, r1, 4

arch/microblaze/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static void __init highmem_init(void)
5252
pkmap_page_table = virt_to_kpte(PKMAP_BASE);
5353
}
5454

55-
static void highmem_setup(void)
55+
static void __meminit highmem_setup(void)
5656
{
5757
unsigned long pfn;
5858

0 commit comments

Comments
 (0)