Re: [PATCH v15 1/6] x86/boot: Copy kstrtoull() to boot/string.c instead of using simple_strtoull()

2019-01-09 Thread Chao Fan
On Wed, Jan 09, 2019 at 01:48:53PM +0100, Borislav Petkov wrote: >On Mon, Jan 07, 2019 at 11:22:38AM +0800, Chao Fan wrote: >> Copy kstrtoull() and necessary functions from lib/kstrtox.c to >> boot/string.c so that code in boot/ can use kstrtoull() and the old >> simple_strtoull() can be replaced.

Re: [PATCH v15 1/6] x86/boot: Copy kstrtoull() to boot/string.c instead of using simple_strtoull()

2019-01-09 Thread Borislav Petkov
On Mon, Jan 07, 2019 at 11:22:38AM +0800, Chao Fan wrote: > Copy kstrtoull() and necessary functions from lib/kstrtox.c to > boot/string.c so that code in boot/ can use kstrtoull() and the old > simple_strtoull() can be replaced. > > In boot/string.c, using div_u64() from math64.h directly will ca

[PATCH v15 1/6] x86/boot: Copy kstrtoull() to boot/string.c instead of using simple_strtoull()

2019-01-06 Thread Chao Fan
Copy kstrtoull() and necessary functions from lib/kstrtox.c to boot/string.c so that code in boot/ can use kstrtoull() and the old simple_strtoull() can be replaced. In boot/string.c, using div_u64() from math64.h directly will cause the dividend handled as 64-bit value and bring ld error. The sol