diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-03 16:42:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-03 16:42:17 -0400 |
commit | 6553698be05983056f5561cef6aaee0cc6afe7a0 (patch) | |
tree | c1cc0611c15786973d2c6c2a06c838d9093cc2c7 | |
parent | 25e09ca52459586eb6171209635bc8b436a56d79 (diff) | |
parent | e8ad8bc403f49f8cb95448acfdeee39b459eded4 (diff) |
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cleanups from Ingo Molnar:
"Two small cleanups"
* 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/paravirt: Remove unnecessary return from void function
x86/boot: Add missing strchr() declaration
-rw-r--r-- | arch/x86/boot/string.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/paravirt.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/boot/string.h b/arch/x86/boot/string.h index 113588ddb43f..f274a50db5fa 100644 --- a/arch/x86/boot/string.h +++ b/arch/x86/boot/string.h | |||
@@ -22,6 +22,7 @@ extern int strcmp(const char *str1, const char *str2); | |||
22 | extern int strncmp(const char *cs, const char *ct, size_t count); | 22 | extern int strncmp(const char *cs, const char *ct, size_t count); |
23 | extern size_t strlen(const char *s); | 23 | extern size_t strlen(const char *s); |
24 | extern char *strstr(const char *s1, const char *s2); | 24 | extern char *strstr(const char *s1, const char *s2); |
25 | extern char *strchr(const char *s, int c); | ||
25 | extern size_t strnlen(const char *s, size_t maxlen); | 26 | extern size_t strnlen(const char *s, size_t maxlen); |
26 | extern unsigned int atou(const char *s); | 27 | extern unsigned int atou(const char *s); |
27 | extern unsigned long long simple_strtoull(const char *cp, char **endp, | 28 | extern unsigned long long simple_strtoull(const char *cp, char **endp, |
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 55fa56fe4e45..a3dcf8944cb9 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h | |||
@@ -118,7 +118,7 @@ static inline u64 paravirt_read_msr(unsigned msr) | |||
118 | static inline void paravirt_write_msr(unsigned msr, | 118 | static inline void paravirt_write_msr(unsigned msr, |
119 | unsigned low, unsigned high) | 119 | unsigned low, unsigned high) |
120 | { | 120 | { |
121 | return PVOP_VCALL3(pv_cpu_ops.write_msr, msr, low, high); | 121 | PVOP_VCALL3(pv_cpu_ops.write_msr, msr, low, high); |
122 | } | 122 | } |
123 | 123 | ||
124 | static inline u64 paravirt_read_msr_safe(unsigned msr, int *err) | 124 | static inline u64 paravirt_read_msr_safe(unsigned msr, int *err) |