Skip to content

Commit

Permalink
ARM: 9211/1: domain: drop modify_domain()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Walleij authored and Russell King (Oracle) committed Jul 6, 2022
1 parent 598f0a9 commit cc45b83
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions arch/arm/include/asm/domain.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc45b83

Please sign in to comment.