diff options
author | Vamshi K Sthambamkadi <vamshi.k.sthambamkadi@gmail.com> | 2020-04-23 14:39:47 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-05-04 15:19:07 +0200 |
commit | 5fafbebc86a0043ca5bbd8d3ce4f63dc5a02ad8e (patch) | |
tree | 17967f7765cf269fc0e7cb0dc62fcb00581aa48f /arch/x86/boot/string.h | |
parent | x86/tboot: Mark tboot static (diff) | |
download | linux-5fafbebc86a0043ca5bbd8d3ce4f63dc5a02ad8e.tar.xz linux-5fafbebc86a0043ca5bbd8d3ce4f63dc5a02ad8e.zip |
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
Diffstat (limited to 'arch/x86/boot/string.h')
-rw-r--r-- | arch/x86/boot/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/boot/string.h b/arch/x86/boot/string.h index 38d8f2f5e47e..995f7b7ad512 100644 --- a/arch/x86/boot/string.h +++ b/arch/x86/boot/string.h @@ -30,4 +30,5 @@ extern unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); int kstrtoull(const char *s, unsigned int base, unsigned long long *res); +int boot_kstrtoul(const char *s, unsigned int base, unsigned long *res); #endif /* BOOT_STRING_H */ |