diff options
author | Takashi Iwai <tiwai@suse.de> | 2022-01-08 12:06:41 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-01-08 12:06:41 +0100 |
commit | fd52bf336ae406b1eba10412e53bb7a49080e55b (patch) | |
tree | 5964daa8407a0a05959a039237bae963ee18e068 | |
parent | 04a1fdf55b9ccf2610af3e83e5b641d5dff624b1 (diff) | |
download | hda-emu-fd52bf336ae406b1eba10412e53bb7a49080e55b.tar.gz |
Workaround for dev_name() and devm_kasprintf()
Both are broken, just dummy funcs
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | include/linux/device.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 293af0b..33dd661 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -123,4 +123,13 @@ struct device_attribute { #define devm_kmalloc(dev, size, gfp) kmalloc(size, gfp) #define devm_kzalloc(dev, size, gfp) kzalloc(size, gfp) +#define dev_name(dev) "XXX" + +static inline void *devm_kasprintf(struct device *dev, unsigned int flags, + const char *fmt, ...) +{ + // XXX + return NULL; +} + #endif /* __LINUX_DEVICE_H */ |