UPSTREAM: arm64: mte: Remove unused mte_assign_mem_tag_range()
mte_assign_mem_tag_range() was added in commit85f49cae4d("arm64: mte: add in-kernel MTE helpers") in 5.11 but moved out of mte.S by commit2cb3427642("arm64: kasan: simplify and inline MTE functions") in 5.12 and renamed to mte_set_mem_tag_range().2cb3427642did not delete the old function prototypes in mte.h. Remove the unused prototype from mte.h. Cc: Will Deacon <will@kernel.org> Reported-by: Derrick McKee <derrick.mckee@gmail.com> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Link: https://lore.kernel.org/r/20210407133817.23053-1-vincenzo.frascino@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> (cherry picked from commitdf652a16a6) Signed-off-by: Alexander Potapenko <glider@google.com> Change-Id: Ife80a4c928a8e50e5747575bc6df4a65b6ad72b1
This commit is contained in:
parent
63990c63c3
commit
0aa48437bf
1 changed files with 0 additions and 6 deletions
|
|
@ -48,8 +48,6 @@ long get_mte_ctrl(struct task_struct *task);
|
|||
int mte_ptrace_copy_tags(struct task_struct *child, long request,
|
||||
unsigned long addr, unsigned long data);
|
||||
|
||||
void mte_assign_mem_tag_range(void *addr, size_t size);
|
||||
|
||||
#else /* CONFIG_ARM64_MTE */
|
||||
|
||||
/* unused if !CONFIG_ARM64_MTE, silence the compiler */
|
||||
|
|
@ -88,10 +86,6 @@ static inline int mte_ptrace_copy_tags(struct task_struct *child,
|
|||
return -EIO;
|
||||
}
|
||||
|
||||
static inline void mte_assign_mem_tag_range(void *addr, size_t size)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ARM64_MTE */
|
||||
|
||||
#ifdef CONFIG_KASAN_HW_TAGS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue