From: f.fainelli@gmail.com (Florian Fainelli)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] ARM: Generalize fncpy implementation
Date: Thu, 15 Jun 2017 16:23:44 -0700 [thread overview]
Message-ID: <577f22f3-ff16-05a0-8204-39e86d47dd9f@gmail.com> (raw)
In-Reply-To: <20170615232117.29727-2-f.fainelli@gmail.com>
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.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
next prev parent reply other threads:[~2017-06-15 23:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-15 23:21 [PATCH 0/3] Generalize fncpy availability Florian Fainelli
2017-06-15 23:21 ` [PATCH 1/3] ARM: Generalize fncpy implementation Florian Fainelli
2017-06-15 23:23 ` Florian Fainelli [this message]
2017-06-16 8:35 ` Tony Lindgren
2017-06-16 11:58 ` Russell King - ARM Linux
2017-06-15 23:21 ` [PATCH 2/3] arm64: Provide a fncpy implenentation Florian Fainelli
2017-06-15 23:21 ` [PATCH 3/3] misc: sram: Allow ARM64 to select SRAM_EXEC Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=577f22f3-ff16-05a0-8204-39e86d47dd9f@gmail.com \
--to=f.fainelli@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).