linux_dsm_epyc7002/drivers/misc
Luc Van Oostenryck 16d79cd4e2 PCI: Use 'pci_channel_state_t' instead of 'enum pci_channel_state'
The method struct pci_error_handlers.error_detected() is defined and
documented as taking an 'enum pci_channel_state' for the second argument,
but most drivers use 'pci_channel_state_t' instead.

This 'pci_channel_state_t' is not a typedef for the enum but a typedef for
a bitwise type in order to have better/stricter typechecking.

Consolidate everything by using 'pci_channel_state_t' in the method's
definition, in the related helpers and in the drivers.

Enforce use of 'pci_channel_state_t' by replacing 'enum pci_channel_state'
with an anonymous 'enum'.

Note: Currently, from a typechecking point of view this patch changes
nothing because only the constants defined by the enum are bitwise, not the
enum itself (sparse doesn't have the notion of 'bitwise enum'). This may
change in some not too far future, hence the patch.

[bhelgaas: squash in
  https://lore.kernel.org/r/20200702162651.49526-3-luc.vanoostenryck@gmail.com
  https://lore.kernel.org/r/20200702162651.49526-4-luc.vanoostenryck@gmail.com]
Link: https://lore.kernel.org/r/20200702162651.49526-2-luc.vanoostenryck@gmail.com
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2020-07-07 17:11:52 -05:00
..
altera-stapl
c2port
cardreader Char/Misc driver patches for 5.8-rc1 2020-06-07 10:59:32 -07:00
cb710
cxl mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
echo treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
eeprom
genwqe PCI: Use 'pci_channel_state_t' instead of 'enum pci_channel_state' 2020-07-07 17:11:52 -05:00
habanalabs habanalabs: correctly cast u64 to void* 2020-06-01 09:08:10 +02:00
ibmasm
lis3lv02d
lkdtm lkdtm: bugs: Fix spelling mistake 2020-04-23 16:30:09 +02:00
mei Merge branches 'pm-core' and 'pm-sleep' 2020-06-01 15:19:08 +02:00
mic virtio: features, fixes 2020-06-10 13:42:09 -07:00
ocxl ocxl: Fix misleading comment 2020-05-20 23:39:57 +10:00
sgi-gru mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
sgi-xp sgi-xp: make some symbols static in xpc_main.c 2020-04-23 16:55:23 +02:00
ti-st
uacce uacce: Remove mm_exit() op 2020-05-29 14:52:53 +02:00
vmw_vmci vmci_host: get rid of pointless access_ok() 2020-05-29 11:06:38 -04:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel_tclib.c
atmel-ssc.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fastrpc.c misc: fastrpc: fix potential fastrpc_invoke_ctx leak 2020-05-15 16:21:08 +02:00
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
kgdbts.c
lattice-ecp3-config.c
Makefile bus: vexpress-config: Merge vexpress-syscfg into vexpress-config 2020-05-13 12:42:46 -05:00
pch_phub.c
pci_endpoint_test.c misc: pci_endpoint_test: Add Device ID for RZ/G2E PCIe controller 2020-05-19 16:46:12 +02:00
phantom.c
pti.c
pvpanic.c
qcom-coincell.c
sram-exec.c
sram.c
sram.h
tifm_7xx1.c
tifm_core.c
tsl2550.c
vmw_balloon.c
xilinx_sdfec.c misc: xilinx-sdfec: convert get_user_pages() --> pin_user_pages() 2020-05-27 11:09:26 +02:00