Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/device.h
Context not available. | |||||
#include <sys/bus.h> | #include <sys/bus.h> | ||||
enum irqreturn { IRQ_NONE = 0, IRQ_HANDLED, IRQ_WAKE_THREAD, }; | |||||
typedef enum irqreturn irqreturn_t; | |||||
struct device; | struct device; | ||||
struct fwnode_handle; | struct fwnode_handle; | ||||
Context not available. | |||||
#define dev_notice(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) | #define dev_notice(dev, fmt, ...) device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) | ||||
#define dev_dbg(dev, fmt, ...) do { } while (0) | #define dev_dbg(dev, fmt, ...) do { } while (0) | ||||
#define dev_printk(lvl, dev, fmt, ...) \ | #define dev_printk(lvl, dev, fmt, ...) \ | ||||
device_printf((dev)->bsddev, fmt, ##__VA_ARGS__) | device_printf(((const struct device *)dev)->bsddev, fmt, ##__VA_ARGS__) | ||||
markj: Not sure what this is accomplishing. | |||||
Done Inline ActionsFix a compile error johalun0_gmail.com: Fix a compile error | |||||
Done Inline ActionsI'd prefer if you fix the code causing the compile error instead of this macro. hselasky: I'd prefer if you fix the code causing the compile error instead of this macro. | |||||
Done Inline ActionsThat means patching Linux code which will in the future cause merge conflicts and other pains when updating... But fortunately it's not in many places so I'll do that. johalun0_gmail.com: That means patching Linux code which will in the future cause merge conflicts and other pains… | |||||
#define dev_err_ratelimited(dev, ...) do { \ | #define dev_err_ratelimited(dev, ...) do { \ | ||||
static linux_ratelimit_t __ratelimited; \ | static linux_ratelimit_t __ratelimited; \ | ||||
Context not available. |
Not sure what this is accomplishing.