aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/zcore.c
diff options
context:
space:
mode:
authorFrank Munzert <munzert@de.ibm.com>2009-03-26 10:24:45 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-03-26 10:24:27 -0400
commit159d1ff8f6c38086ed75f8e892790d0a4f3a6b71 (patch)
treee980fc9305c1d8a604d5af37e68807a306fed244 /drivers/s390/char/zcore.c
parent866ba28418d30122d863c50182a202741f4dcf3e (diff)
[S390] Use csum_partial in checksum.h
The cksm function in system.h is duplicate to csum_partial in checksum.h. Remove cksm and use csum_partial instead. Signed-off-by: Frank Munzert <munzert@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/zcore.c')
-rw-r--r--drivers/s390/char/zcore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/s390/char/zcore.c b/drivers/s390/char/zcore.c
index cfe782ee6473..1bbae433fbd8 100644
--- a/drivers/s390/char/zcore.c
+++ b/drivers/s390/char/zcore.c
@@ -24,6 +24,7 @@
24#include <asm/debug.h> 24#include <asm/debug.h>
25#include <asm/processor.h> 25#include <asm/processor.h>
26#include <asm/irqflags.h> 26#include <asm/irqflags.h>
27#include <asm/checksum.h>
27#include "sclp.h" 28#include "sclp.h"
28 29
29#define TRACE(x...) debug_sprintf_event(zcore_dbf, 1, x) 30#define TRACE(x...) debug_sprintf_event(zcore_dbf, 1, x)
@@ -704,7 +705,8 @@ static int __init zcore_reipl_init(void)
704 free_page((unsigned long) ipl_block); 705 free_page((unsigned long) ipl_block);
705 return rc; 706 return rc;
706 } 707 }
707 if (cksm(ipl_block, ipl_block->hdr.len) != ipib_info.checksum) { 708 if (csum_partial(ipl_block, ipl_block->hdr.len, 0) !=
709 ipib_info.checksum) {
708 TRACE("Checksum does not match\n"); 710 TRACE("Checksum does not match\n");
709 free_page((unsigned long) ipl_block); 711 free_page((unsigned long) ipl_block);
710 ipl_block = NULL; 712 ipl_block = NULL;