Re: [PATCH v3 2/9] liblockdep: Wrap kernel/lockdep.c to allow usagefrom userspace

From: Peter Zijlstra
Date: Fri May 10 2013 - 09:59:49 EST


On Thu, May 09, 2013 at 11:58:02AM -0400, Sasha Levin wrote:
> +#ifndef CALLER_ADDR0
> +#define _THIS_IP_ CALLER_ADDR0
> +#define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))
> +#endif

That's wrong.. _THIS_IP_ should be the address of 'here'. What you have there is _RET_IP_.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/