linux_dsm_epyc7002/drivers/pci/pcie
Stefani Seibold 498d319bb5 kfifo API type safety
This patch enhances the type safety for the kfifo API.  It is now safe
to put const data into a non const FIFO and the API will now generate a
compiler warning when reading from the fifo where the destination
address is pointing to a const variable.

As a side effect the kfifo_put() does now expect the value of an element
instead a pointer to the element.  This was suggested Russell King.  It
make the handling of the kfifo_put easier since there is no need to
create a helper variable for getting the address of a pointer or to pass
integers of different sizes.

IMHO the API break is okay, since there are currently only six users of
kfifo_put().

The code is also cleaner by kicking out the "if (0)" expressions.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Stefani Seibold <stefani@seibold.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-11-15 09:32:23 +09:00
..
aer kfifo API type safety 2013-11-15 09:32:23 +09:00
aspm.c PCI: Fix kerneldoc for pci_disable_link_state() 2013-05-28 11:16:12 -06:00
Kconfig PCI changes for the v3.12 merge window: 2013-09-03 16:24:35 -07:00
Makefile PCI: PCIe: Move PCIe PME code to the pcie directory 2010-08-24 13:47:48 -07:00
pme.c PCI: Fix comment typo for pcie_pme_remove() 2013-06-10 10:58:26 -06:00
portdrv_acpi.c PCI: Fix missing prototype for pcie_port_acpi_setup() 2013-04-12 11:17:47 -06:00
portdrv_bus.c PCI: Introduce pci_pcie_type(dev) to replace pci_dev->pcie_type 2012-08-23 09:40:57 -06:00
portdrv_core.c PCI: Update pcie_ports 'auto' behavior for non-ACPI platforms 2013-11-01 09:25:16 -06:00
portdrv_pci.c PCI changes for the v3.10 merge window: 2013-04-29 09:30:25 -07:00
portdrv.h PCI: Remove "extern" from function declarations 2013-04-17 10:21:17 -06:00