Re: [PATCH 18/22] usb: gadget: serial: %pF is only for function pointers

From: Fabio Estevam
Date: Thu Mar 12 2015 - 12:44:05 EST


On Thu, Mar 12, 2015 at 1:40 PM, Scott Wood <scottwood@xxxxxxxxxxxxx> wrote:

> No. __builtin_return_address() returns a pointer to an instruction, not
> a function pointer descriptor. If you use %pF on the former, it'll
> print instruction opcodes as if they were the address.

Then you should mention this in the commit log.
--
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/