Merge branch 'renesas/soc' into next/soc2
This commit is contained in:
@@ -818,17 +818,9 @@ static int __init fixup_activate(void *addr, enum debug_obj_state state)
|
||||
if (obj->static_init == 1) {
|
||||
debug_object_init(obj, &descr_type_test);
|
||||
debug_object_activate(obj, &descr_type_test);
|
||||
/*
|
||||
* Real code should return 0 here ! This is
|
||||
* not a fixup of some bad behaviour. We
|
||||
* merily call the debug_init function to keep
|
||||
* track of the object.
|
||||
*/
|
||||
return 1;
|
||||
} else {
|
||||
/* Real code needs to emit a warning here */
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
return 1;
|
||||
|
||||
case ODEBUG_STATE_ACTIVE:
|
||||
debug_object_deactivate(obj, &descr_type_test);
|
||||
@@ -967,7 +959,7 @@ static void __init debug_objects_selftest(void)
|
||||
|
||||
obj.static_init = 1;
|
||||
debug_object_activate(&obj, &descr_type_test);
|
||||
if (check_results(&obj, ODEBUG_STATE_ACTIVE, ++fixups, warnings))
|
||||
if (check_results(&obj, ODEBUG_STATE_ACTIVE, fixups, warnings))
|
||||
goto out;
|
||||
debug_object_init(&obj, &descr_type_test);
|
||||
if (check_results(&obj, ODEBUG_STATE_INIT, ++fixups, ++warnings))
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/dynamic_queue_limits.h>
|
||||
|
||||
#define POSDIFF(A, B) ((A) > (B) ? (A) - (B) : 0)
|
||||
|
||||
@@ -891,9 +891,15 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
||||
case 'U':
|
||||
return uuid_string(buf, end, ptr, spec, fmt);
|
||||
case 'V':
|
||||
return buf + vsnprintf(buf, end > buf ? end - buf : 0,
|
||||
((struct va_format *)ptr)->fmt,
|
||||
*(((struct va_format *)ptr)->va));
|
||||
{
|
||||
va_list va;
|
||||
|
||||
va_copy(va, *((struct va_format *)ptr)->va);
|
||||
buf += vsnprintf(buf, end > buf ? end - buf : 0,
|
||||
((struct va_format *)ptr)->fmt, va);
|
||||
va_end(va);
|
||||
return buf;
|
||||
}
|
||||
case 'K':
|
||||
/*
|
||||
* %pK cannot be used in IRQ context because its test
|
||||
|
||||
Reference in New Issue
Block a user