linux_dsm_epyc7002/drivers/isdn/hisax
Nathan Chancellor a1930a9877 isdn: hfc_{pci,sx}: Avoid empty body if statements
Clang warns:

drivers/isdn/hisax/hfc_pci.c:131:34: error: if statement has empty body
[-Werror,-Wempty-body]
        if (Read_hfc(cs, HFCPCI_INT_S1));
                                        ^
drivers/isdn/hisax/hfc_pci.c:131:34: note: put the semicolon on a
separate line to silence this warning

In my attempt to hide the warnings because I thought they didn't serve
any purpose[1], Masahiro Yamada pointed out that {Read,Write}_hfc in
hci_pci.c should be using a standard register access method; otherwise,
the compiler will just remove the if statements.

For hfc_pci, use the versions of {Read,Write}_hfc found in
drivers/isdn/hardware/mISDN/hfc_pCI.h while converting pci_io to be
'void __iomem *' (and clean up ioremap) then remove the empty if
statements.

For hfc_sx, {Read,Write}_hfc are already use a proper register accessor
(inb, outb) so just remove the unnecessary if statements.

[1]: https://lore.kernel.org/lkml/20181016021454.11953-1-natechancellor@gmail.com/

Link: https://github.com/ClangBuiltLinux/linux/issues/66
Suggested-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-22 19:24:48 -07:00
..
amd7930_fn.c isdn/hisax: amd7930_fn: Remove unnecessary parentheses 2018-10-10 22:28:50 -07:00
amd7930_fn.h
arcofi.c
arcofi.h
asuscom.c
avm_a1.c
avm_a1p.c
avm_pci.c isdn: mark expected switch fall-throughs 2018-07-04 22:17:32 +09:00
avma1_cs.c
bkm_a4t.c
bkm_a8.c
bkm_ax.h
callc.c isdn: hisax: callc: Replace GFP_ATOMIC with GFP_KERNEL in init_PStack() 2018-07-26 21:23:16 -07:00
config.c isdn: hisax: config: Replace GFP_ATOMIC with GFP_KERNEL 2018-07-26 21:23:47 -07:00
diva.c
elsa_cs.c
elsa_ser.c
elsa.c
enternow_pci.c
fsm.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
fsm.h
gazel.c isdn: mark expected switch fall-throughs 2018-07-04 22:17:32 +09:00
hfc4s8s_l1.c
hfc4s8s_l1.h
hfc_2bds0.c
hfc_2bds0.h
hfc_2bs0.c
hfc_2bs0.h
hfc_pci.c isdn: hfc_{pci,sx}: Avoid empty body if statements 2018-10-22 19:24:48 -07:00
hfc_pci.h isdn: hfc_{pci,sx}: Avoid empty body if statements 2018-10-22 19:24:48 -07:00
hfc_sx.c isdn: hfc_{pci,sx}: Avoid empty body if statements 2018-10-22 19:24:48 -07:00
hfc_sx.h
hfc_usb.c isdn: hisax: hfc_usb: use usb_fill_int_urb() 2018-06-22 13:54:39 +09:00
hfc_usb.h
hfcscard.c
hisax_cfg.h
hisax_debug.h
hisax_fcpcipnp.c
hisax_fcpcipnp.h
hisax_if.h
hisax_isac.c
hisax_isac.h
hisax.h isdn: hfc_{pci,sx}: Avoid empty body if statements 2018-10-22 19:24:48 -07:00
hscx_irq.c
hscx.c
hscx.h
icc.c
icc.h
ipac.h
ipacx.c
ipacx.h
isac.c
isac.h
isar.c isdn: mark expected switch fall-throughs 2018-07-04 22:17:32 +09:00
isar.h
isdnl1.c
isdnl1.h
isdnl2.c
isdnl2.h
isdnl3.c
isdnl3.h
isurf.c
ix1_micro.c
jade_irq.c
jade.c
jade.h
Kconfig
l3_1tr6.c isdn: mark expected switch fall-throughs 2018-07-04 22:17:32 +09:00
l3_1tr6.h
l3dss1.c isdn: mark expected switch fall-throughs 2018-07-04 22:17:32 +09:00
l3dss1.h
l3ni1.c
l3ni1.h
lmgr.c
Makefile
mic.c
netjet.c
netjet.h
niccy.c
nj_s.c
nj_u.c
q931.c
s0box.c
saphir.c
sedlbauer_cs.c
sedlbauer.c
sportster.c
st5481_b.c
st5481_d.c
st5481_init.c
st5481_usb.c isdn: hisax: st5481_usb: use usb_fill_int_urb() 2018-06-22 13:54:39 +09:00
st5481.h
tei.c
teleint.c
teles0.c
teles3.c
teles_cs.c
telespci.c
w6692.c isdn/hisax: Fix fall-through annotation 2018-10-02 11:22:09 -07:00
w6692.h