[PATCHv4 1/5] arm64: Add support for hooks to handle undefined instructions
Catalin Marinas
catalin.marinas at arm.com
Fri Nov 14 09:28:06 PST 2014
On Wed, Nov 12, 2014 at 11:44:48AM +0000, Punit Agrawal wrote:
> +int register_undef_hook(struct undef_hook *hook)
> +{
> + unsigned long flags;
> +
> + raw_spin_lock_irqsave(&undef_lock, flags);
> + list_add(&hook->node, &undef_hook);
> + raw_spin_unlock_irqrestore(&undef_lock, flags);
> +
> + return 0;
> +}
I missed this. Why do we need this function to return something? I don't
see how it would fail.
--
Catalin
More information about the linux-arm-kernel
mailing list