zipl/boot: move load_wait_psw() location

`load_wait_psw` is defined in include/boot/s390.h but is implemented in
zipl/boot/libc.c. This results in a dangling definition for s390.h users
other than zipl, due to the missing implementation. Since the function
is only relevant for zipl, move the definition to the corresponding
header file zipl/boot/libc.h

Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Steffen Eiden
2023-06-28 07:43:14 +02:00
parent 8058921f58
commit dad7fce7a1
2 changed files with 2 additions and 2 deletions

View File

@@ -40,8 +40,6 @@
".long (" #_target ")\n" \
".previous\n"
void load_wait_psw(uint64_t, struct psw_t *);
struct subchannel_id {
uint32_t cssid:8;
uint32_t:4;

View File

@@ -15,6 +15,7 @@
#include <stddef.h>
#include "lib/zt_common.h"
#include "boot/psw.h"
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
@@ -65,6 +66,7 @@ void __noreturn start(void);
void pgm_check_handler(void);
void pgm_check_handler_fn(void);
void panic_notify(unsigned long reason);
void load_wait_psw(uint64_t, struct psw_t *);
#define panic(reason, ...) \
do { \