Skip to content

Commit c658cab

Browse files
committed
Merge tag 's390-5.19-6' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Alexander Gordeev: - Fix building of out-of-tree kernel modules without a pre-built kernel in case CONFIG_EXPOLINE_EXTERN=y. - Fix a reference counting error that could prevent unloading of zcrypt modules. * tag 's390-5.19-6' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/ap: fix error handling in __verify_queue_reservations() s390/nospec: remove unneeded header includes s390/nospec: build expoline.o for modules_prepare target
2 parents ab6efe6 + 2f23256 commit c658cab

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

arch/s390/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ endif
8282

8383
ifdef CONFIG_EXPOLINE
8484
ifdef CONFIG_EXPOLINE_EXTERN
85-
KBUILD_LDFLAGS_MODULE += arch/s390/lib/expoline.o
85+
KBUILD_LDFLAGS_MODULE += arch/s390/lib/expoline/expoline.o
8686
CC_FLAGS_EXPOLINE := -mindirect-branch=thunk-extern
8787
CC_FLAGS_EXPOLINE += -mfunction-return=thunk-extern
8888
else
@@ -163,6 +163,12 @@ vdso_prepare: prepare0
163163
$(Q)$(MAKE) $(build)=arch/s390/kernel/vdso64 include/generated/vdso64-offsets.h
164164
$(if $(CONFIG_COMPAT),$(Q)$(MAKE) \
165165
$(build)=arch/s390/kernel/vdso32 include/generated/vdso32-offsets.h)
166+
167+
ifdef CONFIG_EXPOLINE_EXTERN
168+
modules_prepare: expoline_prepare
169+
expoline_prepare:
170+
$(Q)$(MAKE) $(build)=arch/s390/lib/expoline arch/s390/lib/expoline/expoline.o
171+
endif
166172
endif
167173

168174
# Don't use tabs in echo arguments

arch/s390/include/asm/nospec-insn.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#ifndef _ASM_S390_NOSPEC_ASM_H
33
#define _ASM_S390_NOSPEC_ASM_H
44

5-
#include <asm/alternative-asm.h>
6-
#include <asm/asm-offsets.h>
75
#include <asm/dwarf.h>
86

97
#ifdef __ASSEMBLY__

arch/s390/lib/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ lib-y += delay.o string.o uaccess.o find.o spinlock.o
77
obj-y += mem.o xor.o
88
lib-$(CONFIG_KPROBES) += probes.o
99
lib-$(CONFIG_UPROBES) += probes.o
10-
obj-$(CONFIG_EXPOLINE_EXTERN) += expoline.o
1110
obj-$(CONFIG_S390_KPROBES_SANITY_TEST) += test_kprobes_s390.o
1211
test_kprobes_s390-objs += test_kprobes_asm.o test_kprobes.o
1312

@@ -22,3 +21,5 @@ obj-$(CONFIG_S390_MODULES_SANITY_TEST) += test_modules.o
2221
obj-$(CONFIG_S390_MODULES_SANITY_TEST_HELPERS) += test_modules_helpers.o
2322

2423
lib-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o
24+
25+
obj-$(CONFIG_EXPOLINE_EXTERN) += expoline/

arch/s390/lib/expoline/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
obj-y += expoline.o
File renamed without changes.

drivers/s390/crypto/ap_bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ static int __verify_queue_reservations(struct device_driver *drv, void *data)
14351435
if (ap_drv->in_use) {
14361436
rc = ap_drv->in_use(ap_perms.apm, newaqm);
14371437
if (rc)
1438-
return -EBUSY;
1438+
rc = -EBUSY;
14391439
}
14401440

14411441
/* release the driver's module */

0 commit comments

Comments
 (0)