From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752557AbdFOXXz (ORCPT ); Thu, 15 Jun 2017 19:23:55 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35694 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbdFOXXx (ORCPT ); Thu, 15 Jun 2017 19:23:53 -0400 Subject: Re: [PATCH 1/3] ARM: Generalize fncpy implementation To: linux-arm-kernel@lists.infradead.org Cc: Russell King , Catalin Marinas , Will Deacon , Arnd Bergmann , Greg Kroah-Hartman , open list , "open list:GENERIC INCLUDE/ASM HEADER FILES" , Dave Gerlach , Tony Lindgren , Keerthy J , Alexandre Belloni , linux-omap@vger.kernel.org, Shawn Guo References: <20170615232117.29727-1-f.fainelli@gmail.com> <20170615232117.29727-2-f.fainelli@gmail.com> From: Florian Fainelli Message-ID: <577f22f3-ff16-05a0-8204-39e86d47dd9f@gmail.com> Date: Thu, 15 Jun 2017 16:23:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170615232117.29727-2-f.fainelli@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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