[PATCH 1/3] ARM: Generalize fncpy implementation
From: f.fainelli@gmail.com (Florian Fainelli)
Date: 2017-06-15 23:23:55
Also in:
linux-arch, linux-omap, lkml
From: f.fainelli@gmail.com (Florian Fainelli)
Date: 2017-06-15 23:23:55
Also in:
linux-arch, linux-omap, lkml
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@gmail.com> --- 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.hdiff --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