mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl/boot: Make kdump_os_info_check() argument a const.
Make 'struct os_info *os_info' a const to ensure/indicate that no changes are made to the given structure. Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
5af2e30d9a
commit
b06ca88cd4
@@ -21,7 +21,7 @@ void kdump_failed(unsigned long reason)
|
||||
panic(reason, "Dump failed: Check disabled wait code");
|
||||
}
|
||||
|
||||
void kdump_os_info_check(struct os_info *os_info)
|
||||
void kdump_os_info_check(const struct os_info *os_info)
|
||||
{
|
||||
if (os_info == NULL)
|
||||
kdump_failed(EOS_INFO_MISSING);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
#define OS_INFO_VERSION_MAJOR_SUPPORTED 1
|
||||
|
||||
void kdump_os_info_check(struct os_info *os_info);
|
||||
void kdump_os_info_check(const struct os_info *os_info);
|
||||
void kdump_failed(unsigned long reason);
|
||||
|
||||
#endif /* KDUMP_H */
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
void kdump_stage2(unsigned long config_nr)
|
||||
{
|
||||
struct os_info *os_info = (struct os_info *)S390_lowcore.os_info;
|
||||
const struct os_info *os_info = (struct os_info *)S390_lowcore.os_info;
|
||||
unsigned long crash_size;
|
||||
void *crash_base;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ static void copy_from_hsa(unsigned long dst, unsigned long src, int cnt)
|
||||
static void kdump_stage3_scsi(unsigned long *base, unsigned long *size)
|
||||
{
|
||||
unsigned long os_info_addr, crash_base, crash_size, crash_end, hsa_page;
|
||||
struct os_info *os_info;
|
||||
const struct os_info *os_info;
|
||||
unsigned long hsa_size;
|
||||
|
||||
hsa_page = get_zeroed_page();
|
||||
|
||||
Reference in New Issue
Block a user