]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixes and updates for the Linux compatibility layer:
authorhselasky <hselasky@FreeBSD.org>
Tue, 6 Jan 2015 10:02:14 +0000 (10:02 +0000)
committerhselasky <hselasky@FreeBSD.org>
Tue, 6 Jan 2015 10:02:14 +0000 (10:02 +0000)
commitff9d81bf5b98e98550d75c454cbd7b6d5002e628
treef5c0366ac2a1cb4aa81c464bb330af4079c5561b
parent18328f686ae182dc43496ef6a7a7cc0a2e9212c4
Fixes and updates for the Linux compatibility layer:
- Remove unsupported "bus" field from "struct pci_dev".
- Fix logic inside "pci_enable_msix()" when the number of allocated
  interrupts are less than the number of available interrupts.
- Update header files included from "list.h".
- Ensure that "idr_destroy()" removes all entries before destroying
  the IDR root node(s).
- Set the "device->release" function so that we don't leak memory at
  device destruction.
- Use FreeBSD's "log()" function for certain debug printouts.
- Put parenthesis around arguments inside the min, max, min_t and max_t macros.
- Make sure we don't leak file descriptors by dropping the extra file
  reference counts done by the FreeBSD kernel when calling falloc()
  and fget_unlocked().

MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/ofed/drivers/infiniband/hw/mlx4/main.c
sys/ofed/drivers/net/mlx4/main.c
sys/ofed/include/linux/file.h
sys/ofed/include/linux/kernel.h
sys/ofed/include/linux/linux_compat.c
sys/ofed/include/linux/linux_idr.c
sys/ofed/include/linux/list.h
sys/ofed/include/linux/pci.h