Skip to content

Commit cc45b83

Browse files
linuswRussell King (Oracle)
authored andcommitted
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: 8ac6f5d ("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>
1 parent 598f0a9 commit cc45b83

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

arch/arm/include/asm/domain.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,6 @@ static __always_inline void set_domain(unsigned int val)
112112
}
113113
#endif
114114

115-
#ifdef CONFIG_CPU_USE_DOMAINS
116-
#define modify_domain(dom,type) \
117-
do { \
118-
unsigned int domain = get_domain(); \
119-
domain &= ~domain_mask(dom); \
120-
domain = domain | domain_val(dom, type); \
121-
set_domain(domain); \
122-
} while (0)
123-
124-
#else
125-
static inline void modify_domain(unsigned dom, unsigned type) { }
126-
#endif
127-
128115
/*
129116
* Generate the T (user) versions of the LDR/STR and related
130117
* instructions (inline assembly)

0 commit comments

Comments
 (0)