Merge branch 'for-4.16-print-symbol' into for-4.16
This commit is contained in:
@@ -100,9 +100,6 @@ extern int sprint_symbol(char *buffer, unsigned long address);
|
||||
extern int sprint_symbol_no_offset(char *buffer, unsigned long address);
|
||||
extern int sprint_backtrace(char *buffer, unsigned long address);
|
||||
|
||||
/* Look up a kernel symbol and print it to the kernel messages. */
|
||||
extern void __print_symbol(const char *fmt, unsigned long address);
|
||||
|
||||
int lookup_symbol_name(unsigned long addr, char *symname);
|
||||
int lookup_symbol_attrs(unsigned long addr, unsigned long *size, unsigned long *offset, char *modname, char *name);
|
||||
|
||||
@@ -172,23 +169,8 @@ static inline int kallsyms_show_value(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Stupid that this does nothing, but I didn't create this mess. */
|
||||
#define __print_symbol(fmt, addr)
|
||||
#endif /*CONFIG_KALLSYMS*/
|
||||
|
||||
/* This macro allows us to keep printk typechecking */
|
||||
static __printf(1, 2)
|
||||
void __check_printsym_format(const char *fmt, ...)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void print_symbol(const char *fmt, unsigned long addr)
|
||||
{
|
||||
__check_printsym_format(fmt, "");
|
||||
__print_symbol(fmt, (unsigned long)
|
||||
__builtin_extract_return_addr((void *)addr));
|
||||
}
|
||||
|
||||
static inline void print_ip_sym(unsigned long ip)
|
||||
{
|
||||
printk("[<%p>] %pS\n", (void *) ip, (void *) ip);
|
||||
|
Reference in New Issue
Block a user