mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
866ba28418
commit
159d1ff8f6
3 changed files with 6 additions and 18 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include <asm/debug.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/irqflags.h>
|
||||
#include <asm/checksum.h>
|
||||
#include "sclp.h"
|
||||
|
||||
#define TRACE(x...) debug_sprintf_event(zcore_dbf, 1, x)
|
||||
|
|
@ -704,7 +705,8 @@ static int __init zcore_reipl_init(void)
|
|||
free_page((unsigned long) ipl_block);
|
||||
return rc;
|
||||
}
|
||||
if (cksm(ipl_block, ipl_block->hdr.len) != ipib_info.checksum) {
|
||||
if (csum_partial(ipl_block, ipl_block->hdr.len, 0) !=
|
||||
ipib_info.checksum) {
|
||||
TRACE("Checksum does not match\n");
|
||||
free_page((unsigned long) ipl_block);
|
||||
ipl_block = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue