linux-stable/arch
Nathan Chancellor 5054cdc89d MIPS: lantiq: Explicitly compare LTQ_EBU_PCC_ISTAT against 0
[ Upstream commit c6f2a9e17b ]

When building xway_defconfig with clang:

arch/mips/lantiq/irq.c:305:48: error: use of logical '&&' with constant
operand [-Werror,-Wconstant-logical-operand]
        if ((irq == LTQ_ICU_EBU_IRQ) && (module == 0) && LTQ_EBU_PCC_ISTAT)
                                                      ^ ~~~~~~~~~~~~~~~~~
arch/mips/lantiq/irq.c:305:48: note: use '&' for a bitwise operation
        if ((irq == LTQ_ICU_EBU_IRQ) && (module == 0) && LTQ_EBU_PCC_ISTAT)
                                                      ^~
                                                      &
arch/mips/lantiq/irq.c:305:48: note: remove constant to silence this
warning
        if ((irq == LTQ_ICU_EBU_IRQ) && (module == 0) && LTQ_EBU_PCC_ISTAT)
                                                     ~^~~~~~~~~~~~~~~~~~~~
1 error generated.

Explicitly compare the constant LTQ_EBU_PCC_ISTAT against 0 to fix the
warning. Additionally, remove the unnecessary parentheses as this is a
simple conditional statement and shorthand '== 0' to '!'.

Fixes: 3645da0276 ("OF: MIPS: lantiq: implement irq_domain support")
Link: https://github.com/ClangBuiltLinux/linux/issues/807
Reported-by: Dmitry Golovin <dima@golovin.in>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-03 18:22:41 +01:00
..
alpha alpha: fix annotation of io{read,write}{16,32}be() 2020-08-26 10:29:57 +02:00
arc arch/arc: add copy_user_page() to <asm/page.h> to fix build error on ARC 2021-01-23 15:48:42 +01:00
arm ARM: dts: Configure missing thermal interrupt for 4430 2021-03-03 18:22:38 +01:00
arm64 arm64: dts: msm8916: Fix reserved and rfsa nodes unit address 2021-03-03 18:22:39 +01:00
blackfin
c6x
cris
frv
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-23 14:00:33 +01:00
hexagon
ia64 ia64: fix build error with !COREDUMP 2020-11-05 11:07:03 +01:00
m32r
m68k m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:12:26 +02:00
metag
microblaze
mips MIPS: lantiq: Explicitly compare LTQ_EBU_PCC_ISTAT against 0 2021-03-03 18:22:41 +01:00
mn10300
nios2
openrisc openrisc: Fix issue with argument clobbering for clone/fork 2020-06-25 15:41:56 +02:00
parisc parisc: Implement __smp_store_release and __smp_load_acquire barriers 2020-08-21 09:48:16 +02:00
powerpc powerpc: Fix incorrect stw{, ux, u, x} instructions in __set_pte_at 2021-01-17 13:58:57 +01:00
s390 s390/smp: perform initial CPU reset also for SMT siblings 2020-12-29 13:47:05 +01:00
score
sh sh: dma: fix kconfig dependency for G2_DMA 2021-01-30 13:31:15 +01:00
sparc sparc64: remove mm_cpumask clearing to fix kthread_use_mm race 2020-11-05 11:06:53 +01:00
tile
um um: chan_xterm: Fix fd leak 2020-12-29 13:47:01 +01:00
unicore32
x86 Xen/x86: also check kernel mapping in set_foreign_p2m_mapping() 2021-02-23 14:00:33 +01:00
xtensa xtensa: disable preemption around cache alias management calls 2020-11-24 13:05:56 +01:00
.gitignore
Kconfig mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race 2020-11-18 18:28:03 +01:00