All of lore.kernel.org
 help / color / mirror / Atom feed
From: js07.lee@samsung.com (Jungseung Lee)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm: mm: export set_memory_x and set_meory_nx
Date: Thu, 01 Sep 2016 18:45:25 +0900	[thread overview]
Message-ID: <20160901094525.8296-1-js07.lee@samsung.com> (raw)

This patch exports set_memory_x and set_memory_nx functions.
It is still allowed for modules to use these functions in other
architectures. In a similar manner to arm, export these functions.

Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
---
 arch/arm/mm/pageattr.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c
index d19b1ad..abf6695 100644
--- a/arch/arm/mm/pageattr.c
+++ b/arch/arm/mm/pageattr.c
@@ -88,6 +88,7 @@ int set_memory_nx(unsigned long addr, int numpages)
 					__pgprot(L_PTE_XN),
 					__pgprot(0));
 }
+EXPORT_SYMBOL_GPL(set_memory_nx);
 
 int set_memory_x(unsigned long addr, int numpages)
 {
@@ -95,3 +96,4 @@ int set_memory_x(unsigned long addr, int numpages)
 					__pgprot(0),
 					__pgprot(L_PTE_XN));
 }
+EXPORT_SYMBOL_GPL(set_memory_x);
-- 
1.7.9.5

             reply	other threads:[~2016-09-01  9:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-01  9:45 Jungseung Lee [this message]
2016-09-01  9:56 ` [PATCH] arm: mm: export set_memory_x and set_meory_nx Russell King - ARM Linux

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=20160901094525.8296-1-js07.lee@samsung.com \
    --to=js07.lee@samsung.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.