Re: [RFC PATCH 04/11] asm-generic: fncpy: Add function copying macros

2013-09-17 Thread Geert Uytterhoeven
On Tue, Sep 17, 2013 at 2:43 PM, Russ Dill wrote: > +++ b/arch/alpha/include/asm/fncpy.h > @@ -0,0 +1 @@ > +#include Please add generic-y += fncpy.h to arch//include/asm/Kbuild instead. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyon

[RFC PATCH 04/11] asm-generic: fncpy: Add function copying macros

2013-09-17 Thread Russ Dill
Under certain arches (ARM) function pointers cannot be used naively. Specifically, for thumb functions, their 0 bit is set, but they are contained on a word aligned address. Add a fncpy macro to perform function copies correctly along with two helpers, fnptr_to_address, and fnptr_translate. Signe