aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/domain.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2022-06-19 20:39:29 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2022-07-06 22:44:49 +0100
commitcc45b836388f0ccc6831288a08f77a33845f10b0 (patch)
tree12f2ebf392920e0aa81edd5cd00840eed2b7fb6d /arch/arm/include/asm/domain.h
parentARM: 9210/1: Mark the FDT_FIXED sections as shareable (diff)
downloadlinux-dev-cc45b836388f0ccc6831288a08f77a33845f10b0.tar.xz
linux-dev-cc45b836388f0ccc6831288a08f77a33845f10b0.zip
ARM: 9211/1: domain: drop modify_domain()
This function/macro isn't used anywhere in the kernel. The only user was set_fs() and was deleted in the set_fs() removal patch set. Fixes: 8ac6f5d7f84b ("ARM: 9113/1: uaccess: remove set_fs() implementation") Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to '')
-rw-r--r--arch/arm/include/asm/domain.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/include/asm/domain.h b/arch/arm/include/asm/domain.h
index f1d0a7807cd0..41536feb4392 100644
--- a/arch/arm/include/asm/domain.h
+++ b/arch/arm/include/asm/domain.h
@@ -112,19 +112,6 @@ static __always_inline void set_domain(unsigned int val)
}
#endif
-#ifdef CONFIG_CPU_USE_DOMAINS
-#define modify_domain(dom,type) \
- do { \
- unsigned int domain = get_domain(); \
- domain &= ~domain_mask(dom); \
- domain = domain | domain_val(dom, type); \
- set_domain(domain); \
- } while (0)
-
-#else
-static inline void modify_domain(unsigned dom, unsigned type) { }
-#endif
-
/*
* Generate the T (user) versions of the LDR/STR and related
* instructions (inline assembly)