Hi Catalin,
Catalin Marinas [off-list ref] writes:
On Wed, Nov 12, 2014 at 11:44:48AM +0000, Punit Agrawal wrote:
quoted
+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.
You're right. I don't remember why I changed the return type when
porting this over from arm. I'll update this and affected code.
Cheers,
Punit