x86/boot: Add kstrtoul() from lib/
authorVamshi K Sthambamkadi <vamshi.k.sthambamkadi@gmail.com>
Thu, 23 Apr 2020 12:39:47 +0000 (18:09 +0530)
committerBorislav Petkov <bp@suse.de>
Mon, 4 May 2020 13:19:07 +0000 (15:19 +0200)
commit5fafbebc86a0043ca5bbd8d3ce4f63dc5a02ad8e
tree17967f7765cf269fc0e7cb0dc62fcb00581aa48f
parent767dea211cd0c68d8116d8c3b5104e82454fb44b
x86/boot: Add kstrtoul() from lib/

Add kstrtoul() to ../boot/ to be used by facilities there too.

 [
   bp: Massage, make _kstrtoul() static. Prepend function names with
   "boot_". This is a temporary workaround for build errors like:

   ld: arch/x86/boot/compressed/acpi.o: in function `count_immovable_mem_regions':
   acpi.c:(.text+0x463): undefined reference to `_kstrtoul'
   make[2]: *** [arch/x86/boot/compressed/Makefile:117: arch/x86/boot/compressed/vmlinux] Error 1

   due to the namespace clash between x86/boot/ and kernel proper.
   Future reorg will get rid of the linux/linux/ namespace as much as
   possible so that x86/boot/ can be independent from kernel proper. ]

Signed-off-by: Vamshi K Sthambamkadi <vamshi.k.sthambamkadi@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/1587645588-7130-2-git-send-email-vamshi.k.sthambamkadi@gmail.com
arch/x86/boot/string.c
arch/x86/boot/string.h