From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 03/10] arm64: add <asm/export.h>
Date: Mon, 26 Nov 2018 14:21:54 +0000 [thread overview]
Message-ID: <20181126142154.GB29684@arm.com> (raw)
In-Reply-To: <20181105130649.29429-4-mark.rutland@arm.com>
On Mon, Nov 05, 2018 at 01:06:42PM +0000, Mark Rutland wrote:
> So that we can export symbols directly from assembly files, let's make
> use of the generic <asm/export.h>. We have a few symbols that we'll want
> to conditionally export for !KASAN kernel builds, so we add a helepr for
> that.
>
> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will.deacon@arm.com>
> ---
> arch/arm64/include/asm/export.h | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
> create mode 100644 arch/arm64/include/asm/export.h
>
> diff --git a/arch/arm64/include/asm/export.h b/arch/arm64/include/asm/export.h
> new file mode 100644
> index 000000000000..d7a82246816e
> --- /dev/null
> +++ b/arch/arm64/include/asm/export.h
> @@ -0,0 +1,13 @@
> +/* SPDX-License-Identifier: GPL-2.0 */
> +
> +#ifndef __ASM_EXPORT_H
> +#define __ASM_EXPORT_H
> +#include <asm-generic/export.h>
> +
> +#ifdef CONFIG_KASAN
> +#define EXPORT_SYMBOL_NOKASAN(name)
> +#else
> +#define EXPORT_SYMBOL_NOKASAN(name) EXPORT_SYMBOL(name)
> +#endif
> +
> +#endif /* __ASM_EXPORT_H */
It feels a bit OTT to create a new arch header for this. Could we either
put it in the core code, or move it into asm/assembler.h instead?
Will
next prev parent reply other threads:[~2018-11-26 14:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-05 13:06 [PATCH 00/10] arm64: assembly export cleanup Mark Rutland
2018-11-05 13:06 ` [PATCH 01/10] arm64: remove bitop exports Mark Rutland
2018-11-05 13:06 ` [PATCH 02/10] arm64: move memstart_addr export inline Mark Rutland
2018-11-05 13:06 ` [PATCH 03/10] arm64: add <asm/export.h> Mark Rutland
2018-11-26 14:21 ` Will Deacon [this message]
2018-11-05 13:06 ` [PATCH 04/10] arm64: tishift: use asm EXPORT_SYMBOL() Mark Rutland
2018-11-05 13:06 ` [PATCH 05/10] arm64: smccc: " Mark Rutland
2018-11-05 13:06 ` [PATCH 06/10] arm64: page: " Mark Rutland
2018-11-05 13:06 ` [PATCH 07/10] arm64: uaccess: " Mark Rutland
2018-11-05 13:06 ` [PATCH 08/10] arm64: string: " Mark Rutland
2018-11-05 13:06 ` [PATCH 09/10] arm64: frace: " Mark Rutland
2018-11-05 13:06 ` [PATCH 10/10] arm64: remove arm64ksyms.c Mark Rutland
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=20181126142154.GB29684@arm.com \
--to=will.deacon@arm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.