summaryrefslogtreecommitdiff
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2023-04-04 14:18:41 -0700
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2023-04-05 10:20:00 +0200
commit275aca650e76e203e3efc71835d7195e18d2e718 (patch)
tree30bdf37b525ac3eb3c9f2855a035b9e59ceb9e0f /arch/mips/kernel
parentc86df6c0d4fee0028bb208705bcceae548164fde (diff)
downloadlinux-275aca650e76e203e3efc71835d7195e18d2e718.tar.gz
linux-275aca650e76e203e3efc71835d7195e18d2e718.tar.bz2
linux-275aca650e76e203e3efc71835d7195e18d2e718.zip
MIPS: Drop unused positional parameter in local_irq_{dis,en}able
When building with clang's integrated assembler, it points out that the CONFIG_CPU_HAS_DIEI versions of local_irq_enable and local_irq_disable have a named parameter that is not used in the body of the macro and it thinks that $8 is a positional parameter, rather than a register: arch/mips/include/asm/asmmacro.h:48:2: warning: macro defined with named parameters which are not used in macro body, possible positional parameter found in body which will have no effect .macro local_irq_enable reg=$8 ^ The comment above the function that performs this check in LLVM notes that the warning may trigger in this case, even though it is not problematic. It is easy enough to clean this up by just omitting the named parameter for this version of the macro, as it is entirely unused. Reported-by: Nick Desaulniers <ndesaulniers@google.com> Link: https://github.com/ClangBuiltLinux/linux/issues/1415 Link: https://github.com/llvm/llvm-project/commit/81c944cadb7f9e55b3517b7423a820e2577b9279 Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/kernel')
0 files changed, 0 insertions, 0 deletions