diff options
author | Ramon Fried | 2018-06-06 00:38:59 +0300 |
---|---|---|
committer | Tom Rini | 2018-06-07 17:08:06 -0400 |
commit | 948f32c8563568a76153f61ee4094c5aafe21eaf (patch) | |
tree | 2f3102dd6f8799333ac7877da30165985ad07476 /drivers/usb/musb-new | |
parent | 46960ad6d09b948b5df5236029bc072f9800aeb3 (diff) |
bug.h: introduce WARN_ONCE
Add WARN_ONCE definition to allow single time notification
of warnings to the user.
Taken from Linux kernel (4.17) with slight changes
(Removed __section(.data.once))
Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
[trini: Drop the musb and dwc3 compat versions]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/usb/musb-new')
-rw-r--r-- | drivers/usb/musb-new/linux-compat.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/musb-new/linux-compat.h b/drivers/usb/musb-new/linux-compat.h index 7bb53d2b198..f366ae58e87 100644 --- a/drivers/usb/musb-new/linux-compat.h +++ b/drivers/usb/musb-new/linux-compat.h @@ -5,12 +5,6 @@ #include <linux/list.h> #include <linux/compat.h> -#define WARN(condition, fmt, args...) ({ \ - int ret_warn = !!condition; \ - if (ret_warn) \ - printf(fmt, ##args); \ - ret_warn; }) - #define device_init_wakeup(dev, a) do {} while (0) #define platform_data device_data |