--- zzzz-none-000/linux-4.9.279/include/linux/kernel.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/include/linux/kernel.h 2023-02-08 11:43:43.000000000 +0000 @@ -1,3 +1,8 @@ +/* + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017, Intel Corporation. + */ + #ifndef _LINUX_KERNEL_H #define _LINUX_KERNEL_H @@ -259,8 +264,16 @@ extern struct atomic_notifier_head panic_notifier_list; extern long (*panic_blink)(int state); + +#ifdef CONFIG_FULL_PANIC __printf(1, 2) void panic(const char *fmt, ...) __noreturn __cold; +#else +#define panic(fmt, ...) tiny_panic(0, ## __VA_ARGS__) +void tiny_panic(int a, ...) + __noreturn __cold; +#endif + void nmi_panic(struct pt_regs *regs, const char *msg); extern void oops_enter(void); extern void oops_exit(void); @@ -395,6 +408,15 @@ return kstrtoint_from_user(s, count, base, res); } +/* kstrtox_from_user_strip_whitespaces version */ + +int __must_check kstrtouint_from_user_strip_whitespaces(const char __user *s, size_t count, unsigned int *res); +int __must_check kstrtoint_from_user_strip_whitespaces(const char __user *s, size_t count, int *res); +int __must_check kstrtos32_from_user_strip_whitespaces(const char __user *s, size_t count, s32 *res); +int __must_check kstrtou32_from_user_strip_whitespaces(const char __user *s, size_t count, u32 *res); +int __must_check kstrtou16_from_user_strip_whitespaces(const char __user *s, size_t count, u16 *res); +int __must_check kstrtou8_from_user_strip_whitespaces(const char __user *s, size_t count, u8 *res); + /* Obsolete, do not use. Use kstrto instead */ extern unsigned long simple_strtoul(const char *,char **,unsigned int);