mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
Merge tag 'core_guards_for_6.5_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue
Pull scope-based resource management infrastructure from Peter Zijlstra: "These are the first few patches in the Scope-based Resource Management series that introduce the infrastructure but not any conversions as of yet. Adding the infrastructure now allows multiple people to start using them. Of note is that Sparse will need some work since it doesn't yet understand this attribute and might have decl-after-stmt issues" * tag 'core_guards_for_6.5_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue: kbuild: Drop -Wdeclaration-after-statement locking: Introduce __cleanup() based infrastructure apparmor: Free up __cleanup() name dmaengine: ioat: Free up __cleanup() name
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include <linux/device/bus.h>
|
||||
#include <linux/device/class.h>
|
||||
#include <linux/device/driver.h>
|
||||
#include <linux/cleanup.h>
|
||||
#include <asm/device.h>
|
||||
|
||||
struct device;
|
||||
@@ -1019,6 +1020,9 @@ void device_unregister(struct device *dev);
|
||||
void device_initialize(struct device *dev);
|
||||
int __must_check device_add(struct device *dev);
|
||||
void device_del(struct device *dev);
|
||||
|
||||
DEFINE_FREE(device_del, struct device *, if (_T) device_del(_T))
|
||||
|
||||
int device_for_each_child(struct device *dev, void *data,
|
||||
int (*fn)(struct device *dev, void *data));
|
||||
int device_for_each_child_reverse(struct device *dev, void *data,
|
||||
@@ -1186,6 +1190,9 @@ extern int (*platform_notify_remove)(struct device *dev);
|
||||
*/
|
||||
struct device *get_device(struct device *dev);
|
||||
void put_device(struct device *dev);
|
||||
|
||||
DEFINE_FREE(put_device, struct device *, if (_T) put_device(_T))
|
||||
|
||||
bool kill_device(struct device *dev);
|
||||
|
||||
#ifdef CONFIG_DEVTMPFS
|
||||
|
Reference in New Issue
Block a user