On 06/15/2017 04:21 PM, Florian Fainelli wrote: > ARM's fncpy implementation is actually suitable for a large number of > platforms since the only assumption it makes is just the function's > alignment (8 bytes) which also happens to fulfil other architectures, > including but not limited to ARM64. > > Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx> > --- > arch/arm/include/asm/fncpy.h | 77 ++---------------------------------- > include/asm-generic/fncpy.h | 94 ++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 97 insertions(+), 74 deletions(-) > create mode 100644 include/asm-generic/fncpy.h > > diff --git a/arch/arm/include/asm/fncpy.h b/arch/arm/include/asm/fncpy.h > index de5354746924..32465aef7932 100644 > --- a/arch/arm/include/asm/fncpy.h > +++ b/arch/arm/include/asm/fncpy.h > @@ -16,79 +16,8 @@ > * along with this program; if not, write to the Free Software > * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > */ > +#ifndef _ASMARM_FNCPY_H and of course I missed a #define _ASMARM_FNCPY_H I will wait for feedback on whether this is acceptable before resubmitting... -- Florian -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html