LinuxKPI; factor out parts of device.h into device/devres.hIn [1] it was pointed out that devm_kmemdup_* have moved apparentlyin Linux 7.0 into their own device/devres.h header file from device.h.
LinuxKPI; factor out parts of device.h into device/devres.hIn [1] it was pointed out that devm_kmemdup_* have moved apparentlyin Linux 7.0 into their own device/devres.h header file from device.h.Move them and other parts (some being dependencies) along.device/devres.h gets included from device.h so all that changes isprototype, macro, and inline function ordering.This should prepare us in case drivers start directly includingthe sub-header. It also helps to keep device.h more reasable.Suggested by: dumbbell (in D56396) [1]MFC after: 3 daysReviewed by: emasteDifferential Revision: https://reviews.freebsd.org/D60213
show more ...
LinuxKPI: add general module_driver(), use it for module_pci_driver()Factor out module_pci_driver() from 366d68f283793 into a generalmodule_driver() so other bus attachments can also use the same
LinuxKPI: add general module_driver(), use it for module_pci_driver()Factor out module_pci_driver() from 366d68f283793 into a generalmodule_driver() so other bus attachments can also use the same kindof macro without duplicating all the lines.Redefine module_pci_driver() using the new general macro.No functional changes intended.Sponsored by: The FreeBSD FoundationMFC after: 3 daysReviewed by: manuDifferential Revision: https://reviews.freebsd.org/D46467